mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-19 13:11:30 +00:00
imx: imx8qxp: update fdt_file according to m4 state
Update fdt_file according to m4 parts state Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
e825d3089a
commit
a6c36f15eb
2 changed files with 14 additions and 1 deletions
|
@ -146,10 +146,23 @@ int board_mmc_get_env_dev(int devno)
|
||||||
|
|
||||||
int board_late_init(void)
|
int board_late_init(void)
|
||||||
{
|
{
|
||||||
|
char *fdt_file;
|
||||||
|
bool m4_booted;
|
||||||
|
|
||||||
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||||
env_set("board_name", "MEK");
|
env_set("board_name", "MEK");
|
||||||
env_set("board_rev", "iMX8QXP");
|
env_set("board_rev", "iMX8QXP");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
fdt_file = env_get("fdt_file");
|
||||||
|
m4_booted = m4_parts_booted();
|
||||||
|
|
||||||
|
if (fdt_file && !strcmp(fdt_file, "undefined")) {
|
||||||
|
if (m4_booted)
|
||||||
|
env_set("fdt_file", "imx8qxp-mek-rpmsg.dtb");
|
||||||
|
else
|
||||||
|
env_set("fdt_file", "imx8qxp-mek.dtb");
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
"fdt_addr=0x83000000\0" \
|
"fdt_addr=0x83000000\0" \
|
||||||
"fdt_high=0xffffffffffffffff\0" \
|
"fdt_high=0xffffffffffffffff\0" \
|
||||||
"boot_fdt=try\0" \
|
"boot_fdt=try\0" \
|
||||||
"fdt_file=imx8qxp-mek.dtb\0" \
|
"fdt_file=undefined\0" \
|
||||||
"initrd_addr=0x83800000\0" \
|
"initrd_addr=0x83800000\0" \
|
||||||
"initrd_high=0xffffffffffffffff\0" \
|
"initrd_high=0xffffffffffffffff\0" \
|
||||||
"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
|
"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue