mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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>
This commit is contained in:
parent
75e6cd2799
commit
4ec3f6e510
2 changed files with 9 additions and 0 deletions
|
@ -82,6 +82,12 @@ int board_init(void)
|
||||||
|
|
||||||
int board_late_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);
|
init_sata(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
#define PARTS_DEFAULT
|
#define PARTS_DEFAULT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
DEFAULT_LINUX_BOOT_ENV \
|
DEFAULT_LINUX_BOOT_ENV \
|
||||||
"console=" CONSOLEDEV ",115200n8\0" \
|
"console=" CONSOLEDEV ",115200n8\0" \
|
||||||
|
@ -116,6 +117,8 @@
|
||||||
"setenv fdtfile omap5-uevm.dtb; fi; " \
|
"setenv fdtfile omap5-uevm.dtb; fi; " \
|
||||||
"if test $board_name = dra7xx; then " \
|
"if test $board_name = dra7xx; then " \
|
||||||
"setenv fdtfile dra7-evm.dtb; fi;" \
|
"setenv fdtfile dra7-evm.dtb; fi;" \
|
||||||
|
"if test $board_name = dra72x; then " \
|
||||||
|
"setenv fdtfile dra72-evm.dtb; fi;" \
|
||||||
"if test $fdtfile = undefined; then " \
|
"if test $fdtfile = undefined; then " \
|
||||||
"echo WARNING: Could not determine device tree to use; fi; \0" \
|
"echo WARNING: Could not determine device tree to use; fi; \0" \
|
||||||
"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile};\0" \
|
"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile};\0" \
|
||||||
|
|
Loading…
Reference in a new issue