[PATCH] configs: lx2160a: load device-tree in RAM for distro boot
Priyanka Jain
priyanka.jain at nxp.com
Wed Aug 18 09:07:03 CEST 2021
Update boot-commands to load device-tree from
boot-device at 'fdt_addr_r' address in DDR
during distro-boot.
Signed-off-by: Priyanka Jain <priyanka.jain at nxp.com>
---
include/configs/lx2160a_common.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index 93391235bb..d8c37853a2 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -199,6 +199,7 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
#define XSPI_MC_INIT_CMD \
"sf probe 0:0 && " \
"sf read 0x80640000 0x640000 0x80000 && " \
+ "sf read $fdt_addr_r 0xf00000 0x10000 && " \
"env exists secureboot && " \
"esbc_validate 0x80640000 && " \
"esbc_validate 0x80680000; " \
@@ -209,6 +210,7 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
#define SD_MC_INIT_CMD \
"mmc read 0x80a00000 0x5000 0x1200;" \
"mmc read 0x80e00000 0x7000 0x800;" \
+ "mmc read $fdt_addr_r 0x7800 0x400;" \
"env exists secureboot && " \
"mmc read 0x80640000 0x3200 0x20 && " \
"mmc read 0x80680000 0x3400 0x20 && " \
@@ -219,6 +221,7 @@ int select_i2c_ch_pca9547_sec(unsigned char ch);
#define SD2_MC_INIT_CMD \
"mmc dev 1; mmc read 0x80a00000 0x5000 0x1200;" \
"mmc read 0x80e00000 0x7000 0x800;" \
+ "mmc read $fdt_addr_r 0x7800 0x400;" \
"env exists secureboot && " \
"mmc read 0x80640000 0x3200 0x20 && " \
"mmc read 0x80680000 0x3400 0x20 && " \
--
2.17.1
More information about the U-Boot
mailing list