aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2021-08-07 16:01:07 +0800
committerStefano Babic <sbabic@denx.de>2021-08-09 14:46:51 +0200
commit27b6a4504e8d190177bbe8ece5a079cd7e83de4d (patch)
treed716aa9283920dd8e16a42423e37e3519e4d43b0
parent8a58897e0e380fa03438809e71aa7d91b80aec95 (diff)
downloadu-boot-27b6a4504e8d190177bbe8ece5a079cd7e83de4d.zip
u-boot-27b6a4504e8d190177bbe8ece5a079cd7e83de4d.tar.gz
u-boot-27b6a4504e8d190177bbe8ece5a079cd7e83de4d.tar.bz2
imx8ulp: Use DGO_GP5 to get boot config
Since CMC1 MR0 only reflects high 16 bits boot cfg used for AP domian, it does not connect to low 16 bits for RTD. So we can't get the correct boot mode. Change to use DGO_GP5 of SEC_SIM which is set by ROM. Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r--arch/arm/mach-imx/imx8ulp/soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c
index 9bdbe3c..96d6569 100644
--- a/arch/arm/mach-imx/imx8ulp/soc.c
+++ b/arch/arm/mach-imx/imx8ulp/soc.c
@@ -120,7 +120,7 @@ enum bt_mode get_boot_mode(void)
{
u32 bt0_cfg = 0;
- bt0_cfg = readl(CMC1_BASE_ADDR + 0xa0);
+ bt0_cfg = readl(SIM_SEC_BASE_ADDR + 0x24);
bt0_cfg &= (BT0CFG_LPBOOT_MASK | BT0CFG_DUALBOOT_MASK);
if (!(bt0_cfg & BT0CFG_LPBOOT_MASK)) {