mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-25 21:54:23 +01:00
imx: ventana: make model env var automatic and non-overridable
We want to model env var to always reflect what was in the EEPROM. There is no point in allowing a user to override this. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
9a83a81545
commit
40c746758c
1 changed files with 1 additions and 6 deletions
|
|
@ -685,8 +685,7 @@ int misc_init_r(void)
|
|||
memset(str, 0, sizeof(str));
|
||||
for (i = 0; i < (sizeof(str)-1) && info->model[i]; i++)
|
||||
str[i] = tolower(info->model[i]);
|
||||
if (!getenv("model"))
|
||||
setenv("model", str);
|
||||
setenv("model", str);
|
||||
if (!getenv("fdt_file")) {
|
||||
sprintf(fdt, "%s-%s.dtb", cputype, str);
|
||||
setenv("fdt_file", fdt);
|
||||
|
|
@ -827,10 +826,6 @@ int ft_board_setup(void *blob, bd_t *bd)
|
|||
printf(" Set display timings for %s...\n", display);
|
||||
}
|
||||
|
||||
if (!model) {
|
||||
puts("invalid board info: Leaving FDT fully enabled\n");
|
||||
return 0;
|
||||
}
|
||||
printf(" Adjusting FDT per EEPROM for %s...\n", model);
|
||||
|
||||
/* board serial number */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue