Commit 34f667bbc4819607735dd56df17c8f1789af40d1
Committed by
Tom Rini
1 parent
0b1b60c779
Exists in
master
and in
53 other branches
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>
Showing 2 changed files with 9 additions and 1 deletions Side-by-side Diff
board/ti/panda/panda.c
... | ... | @@ -82,6 +82,12 @@ |
82 | 82 | if (omap_revision() == OMAP4430_ES1_0) |
83 | 83 | return 0; |
84 | 84 | |
85 | +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG | |
86 | + if (omap_revision() >= OMAP4460_ES1_0 || | |
87 | + omap_revision() <= OMAP4460_ES1_1) | |
88 | + setenv("board_name", strcat(CONFIG_SYS_BOARD, "-es")); | |
89 | +#endif | |
90 | + | |
85 | 91 | gpio_direction_input(PANDA_ULPI_PHY_TYPE_GPIO); |
86 | 92 | phy_type = gpio_get_value(PANDA_ULPI_PHY_TYPE_GPIO); |
87 | 93 |
include/configs/omap4_common.h
... | ... | @@ -176,7 +176,9 @@ |
176 | 176 | "if test $board_name = sdp4430; then " \ |
177 | 177 | "setenv fdtfile omap4-sdp.dtb; fi; " \ |
178 | 178 | "if test $board_name = panda; then " \ |
179 | - "setenv fdtfile omap4-panda-es.dtb; fi\0" \ | |
179 | + "setenv fdtfile omap4-panda.dtb; fi;" \ | |
180 | + "if test $board_name = panda-es; then " \ | |
181 | + "setenv fdtfile omap4-panda-es.dtb; fi; \0" \ | |
180 | 182 | "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \ |
181 | 183 | |
182 | 184 | #define CONFIG_BOOTCOMMAND \ |