1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Configuration header file for K3 AM654 EVM
5 * Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
6 * Lokesh Vutla <lokeshvutla@ti.com>
9 #ifndef __CONFIG_AM654_EVM_H
10 #define __CONFIG_AM654_EVM_H
12 #include <linux/sizes.h>
13 #include <environment/ti/mmc.h>
14 #include <environment/ti/k3_rproc.h>
15 #include <environment/ti/k3_dfu.h>
17 /* DDR Configuration */
18 #define CFG_SYS_SDRAM_BASE1 0x880000000
20 #define PARTS_DEFAULT \
21 /* Linux partitions */ \
22 "name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}\0"
24 /* U-Boot general configuration */
25 #define EXTRA_ENV_AM65X_BOARD_SETTINGS \
27 "setenv name_fdt k3-am654-base-board.dtb;" \
28 "setenv fdtfile ${name_fdt}\0" \
30 "console=ttyS2,115200n8\0" \
31 "stdin=serial,usbkbd\0" \
32 "args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 " \
34 "run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" \
36 /* U-Boot MMC-specific configuration */
37 #define EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC \
43 "init_mmc=run args_all args_mmc\0" \
44 "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \
46 "fdt address ${fdtaddr};" \
47 "fdt resize 0x100000;" \
48 "for overlay in $name_overlays;" \
50 "load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay};" \
51 "fdt apply ${dtboaddr};" \
53 "get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \
54 "${bootdir}/${name_kern}\0" \
55 "get_fit_mmc=load mmc ${bootpart} ${addr_fit} " \
56 "${bootdir}/${name_fit}\0" \
57 "partitions=" PARTS_DEFAULT
62 #define DEFAULT_RPROCS "" \
63 "0 /lib/firmware/am65x-mcu-r5f0_0-fw " \
64 "1 /lib/firmware/am65x-mcu-r5f0_1-fw "
66 #define EXTRA_ENV_AM65X_BOARD_SETTINGS_UBI \
67 "init_ubi=run args_all args_ubi; sf probe; " \
68 "ubi part ospi.rootfs; ubifsmount ubi:rootfs;\0" \
69 "get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}\0" \
70 "get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}\0" \
71 "args_ubi=setenv bootargs console=${console} ${optargs} " \
72 "rootfstype=ubifs root=ubi0:rootfs rw ubi.mtd=ospi.rootfs\0"
74 #define EXTRA_ENV_DFUARGS \
80 #ifdef CONFIG_TARGET_AM654_A53_EVM
81 #define BOOT_TARGET_DEVICES(func) \
85 #include <config_distro_bootcmd.h>
90 /* Incorporate settings into the U-Boot environment */
91 #define CONFIG_EXTRA_ENV_SETTINGS \
92 DEFAULT_LINUX_BOOT_ENV \
95 EXTRA_ENV_AM65X_BOARD_SETTINGS \
96 EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC \
97 EXTRA_ENV_AM65X_BOARD_SETTINGS_UBI \
98 EXTRA_ENV_RPROC_SETTINGS \
102 /* Now for the remaining common defines */
103 #include <configs/ti_armv7_common.h>
105 #endif /* __CONFIG_AM654_EVM_H */