summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorCooper Jr., Franklin <fcooper@ti.com>2017-06-16 22:25:27 (GMT)
committerTom Rini <trini@konsulko.com>2017-07-10 18:25:59 (GMT)
commit92761fcc2fdad58e74dd54e24b55e645adca1241 (patch)
tree362e9d5b5599463743bbcc0e957372495dd98a88 /board
parent4f490402c4acbca5c189db24c445220b10557cee (diff)
downloadu-boot-fsl-qoriq-92761fcc2fdad58e74dd54e24b55e645adca1241.tar.xz
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')
-rw-r--r--board/ti/ks2_evm/board_k2g.c6
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 9001255..fcab9c6 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