summaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2014-07-14 19:57:58 +0530
committerTom Rini <trini@ti.com>2014-07-14 11:16:38 -0400
commit4ec3f6e5104034e113f6ea8ab356f78ff4ad00b8 (patch)
tree2075824e2fe1919b223407f549a79cfc69f2be8b /board/ti
parent75e6cd2799f0d6bf994a1154107cb950b232aa59 (diff)
downloadu-boot-imx-4ec3f6e5104034e113f6ea8ab356f78ff4ad00b8.zip
u-boot-imx-4ec3f6e5104034e113f6ea8ab356f78ff4ad00b8.tar.gz
u-boot-imx-4ec3f6e5104034e113f6ea8ab356f78ff4ad00b8.tar.bz2
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 <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/dra7xx/evm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 073d151..7f19655 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -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;
}