MLK-19645 mx6ulz_evk: Fix fdt_file variable issue

Since we set the fdt_file value when running on iMX6ULZ. This
cause the saved fdt_file change be overwritten. So users can't
set to their own fdt_file.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Ye Li 2018-09-20 02:20:51 -07:00
parent 9018cc2ba3
commit 389161ef31
2 changed files with 3 additions and 1 deletions

View File

@ -503,7 +503,7 @@ int board_late_init(void)
env_set("board_rev", "14X14");
if (is_cpu_type(MXC_CPU_MX6ULZ)) {
env_set("fdt_file", "imx6ulz-14x14-evk.dtb");
env_set("board_name", "ULZ-EVK");
env_set("usb_net_cmd", "usb start");
}
#endif

View File

@ -197,6 +197,8 @@
"fi;\0" \
"findfdt="\
"if test $fdt_file = undefined; then " \
"if test $board_name = ULZ-EVK && test $board_rev = 14X14; then " \
"setenv fdt_file imx6ulz-14x14-evk.dtb; fi; " \
"if test $board_name = EVK && test $board_rev = 9X9; then " \
"setenv fdt_file imx6ull-9x9-evk.dtb; fi; " \
"if test $board_name = EVK && test $board_rev = 14X14; then " \