diff options
author | Cooper Jr., Franklin <fcooper@ti.com> | 2017-06-16 17:25:27 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-10 14:25:59 -0400 |
commit | 92761fcc2fdad58e74dd54e24b55e645adca1241 (patch) | |
tree | 362e9d5b5599463743bbcc0e957372495dd98a88 /board/ti | |
parent | 4f490402c4acbca5c189db24c445220b10557cee (diff) | |
download | u-boot-92761fcc2fdad58e74dd54e24b55e645adca1241.tar.gz u-boot-92761fcc2fdad58e74dd54e24b55e645adca1241.tar.xz u-boot-92761fcc2fdad58e74dd54e24b55e645adca1241.zip |
ARM: k2g: Update board_name u-boot env variable at runtime
Enable CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to allow "board_name" to
be set depending on the board it is being ran on.
Update findfdt to use this new dynamic board_name value to determine
which dtb should be used.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti')
-rw-r--r-- | board/ti/ks2_evm/board_k2g.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c index 9001255f82..fcab9c6c6e 100644 --- a/board/ti/ks2_evm/board_k2g.c +++ b/board/ti/ks2_evm/board_k2g.c @@ -306,6 +306,12 @@ int board_late_init(void) board_ti_set_ethaddr(1); #endif +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG + if (board_is_k2g_gp()) + setenv("board_name", "66AK2GGP\0"); + else if (board_is_k2g_ice()) + setenv("board_name", "66AK2GIC\0"); +#endif return 0; } #endif |