summaryrefslogtreecommitdiff
path: root/board/ti/panda/panda.c
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2013-04-18 06:29:53 +0000
committerTom Rini <trini@ti.com>2013-05-10 08:25:55 -0400
commit34f667bbc4819607735dd56df17c8f1789af40d1 (patch)
treef8aa82b45688eadfbff598eaff5d03297b2222c0 /board/ti/panda/panda.c
parent0b1b60c77954df19b5a601e2ba87614f2d0bbb8b (diff)
downloadu-boot-imx-34f667bbc4819607735dd56df17c8f1789af40d1.zip
u-boot-imx-34f667bbc4819607735dd56df17c8f1789af40d1.tar.gz
u-boot-imx-34f667bbc4819607735dd56df17c8f1789af40d1.tar.bz2
ARM:Panda:Fix device tree loading for the panda-es
Fix the device tree loading for panda(4430) and panda-es(4460) Modify the board name if a 4460 panda or panda-es is detected at run time. In the findfdt add a check for the panda-es board name and load the panda-es device tree blob. Signed-off-by: Dan Murphy <dmurphy@ti.com>
Diffstat (limited to 'board/ti/panda/panda.c')
-rw-r--r--board/ti/panda/panda.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/ti/panda/panda.c b/board/ti/panda/panda.c
index cab0598..2bbe392 100644
--- a/board/ti/panda/panda.c
+++ b/board/ti/panda/panda.c
@@ -82,6 +82,12 @@ int misc_init_r(void)
if (omap_revision() == OMAP4430_ES1_0)
return 0;
+#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
+ if (omap_revision() >= OMAP4460_ES1_0 ||
+ omap_revision() <= OMAP4460_ES1_1)
+ setenv("board_name", strcat(CONFIG_SYS_BOARD, "-es"));
+#endif
+
gpio_direction_input(PANDA_ULPI_PHY_TYPE_GPIO);
phy_type = gpio_get_value(PANDA_ULPI_PHY_TYPE_GPIO);