Commit 4ec3f6e5104034e113f6ea8ab356f78ff4ad00b8
Committed by
Tom Rini
1 parent
75e6cd2799
Exists in
v2017.01-smarct4x
and in
40 other branches
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>
Showing 2 changed files with 9 additions and 0 deletions Side-by-side Diff
board/ti/dra7xx/evm.c
... | ... | @@ -82,6 +82,12 @@ |
82 | 82 | |
83 | 83 | int board_late_init(void) |
84 | 84 | { |
85 | +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG | |
86 | + if (omap_revision() == DRA722_ES1_0) | |
87 | + setenv("board_name", "dra72x"); | |
88 | + else | |
89 | + setenv("board_name", "dra7xx"); | |
90 | +#endif | |
85 | 91 | init_sata(0); |
86 | 92 | return 0; |
87 | 93 | } |
include/configs/ti_omap5_common.h
... | ... | @@ -67,6 +67,7 @@ |
67 | 67 | #define PARTS_DEFAULT |
68 | 68 | #endif |
69 | 69 | |
70 | +#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG | |
70 | 71 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
71 | 72 | DEFAULT_LINUX_BOOT_ENV \ |
72 | 73 | "console=" CONSOLEDEV ",115200n8\0" \ |
... | ... | @@ -116,6 +117,8 @@ |
116 | 117 | "setenv fdtfile omap5-uevm.dtb; fi; " \ |
117 | 118 | "if test $board_name = dra7xx; then " \ |
118 | 119 | "setenv fdtfile dra7-evm.dtb; fi;" \ |
120 | + "if test $board_name = dra72x; then " \ | |
121 | + "setenv fdtfile dra72-evm.dtb; fi;" \ | |
119 | 122 | "if test $fdtfile = undefined; then " \ |
120 | 123 | "echo WARNING: Could not determine device tree to use; fi; \0" \ |
121 | 124 | "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile};\0" \ |