ARM: DRA7xx: Update the board_name env variable
PATCH 1/1 ARM: DRA7xx: Update the board_name env variable
Update the board_name env variable and accordingly populate the dtb file.
Signed-off-by Lokesh Vutla <[email protected]>
--- board/ti/dra7xx/evm.c | 6 ++++++ include/configs/ti_omap5_common.h | 3 +++ 2 files changed, 9 insertions(+)
board/ti/dra7xx/evm.c +6 -0
@@ -82,6 +82,12 @@ int board_init(void)int board_late_init (void ) { +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG +if (omap_revision () ==DRA722_ES1_0 ) +setenv ("board_name" ,"dra72x" ); +else +setenv ("board_name" ,"dra7xx" ); +#endif init_sata (0 );return 0 ; }
include/configs/ti_omap5_common.h +3 -0
@@ -67,6 +67,7 @@#define PARTS_DEFAULT #endif +#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG #define CONFIG_EXTRA_ENV_SETTINGS \ DEFAULT_LINUX_BOOT_ENV \ "console=" CONSOLEDEV ",115200n8\0" \
@@ -116,6 +117,8 @@"setenv fdtfile omap5-uevm.dtb; fi; " \"if test $board_name = dra7xx; then " \"setenv fdtfile dra7-evm.dtb; fi;" \ +"if test $board_name = dra72x; then " \ +"setenv fdtfile dra72-evm.dtb; fi;" \"if test $fdtfile = undefined; then " \"echo WARNING: Could not determine device tree to use; fi; \0" \"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile};\0" \
Signature · 1 line
1.7.9.5
PATCH 1/1 ARM: DRA7xx: Update the board_name env variable
Quoted 4 lines · Lokesh Vutla
Update the
board_nameenv variable and accordingly populate the dtb file.Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
... but I'd really like to see if we can figure something better out moving forward. We're tying the SoC to the board when that's not always true and thus making things less clear when its time to make a custom board what goes where.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140714/906150ca/attachment.pgp>