aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2021-08-07 16:00:47 +0800
committerStefano Babic <sbabic@denx.de>2021-08-09 14:46:51 +0200
commit981f040a9a56ea4085308d4a6cf83561e02ed95f (patch)
treebb11a11f8c0bb0119442b982fef255f76c2500db
parent744c5fde977accbd29532a988da1782bdddb6f66 (diff)
downloadu-boot-981f040a9a56ea4085308d4a6cf83561e02ed95f.zip
u-boot-981f040a9a56ea4085308d4a6cf83561e02ed95f.tar.gz
u-boot-981f040a9a56ea4085308d4a6cf83561e02ed95f.tar.bz2
arm: imx8ulp: soc: Change to use CMC1 to get bootcfg
CMC1 also has a MR register for bootcfg 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 6f4b506..cddcdc2 100644
--- a/arch/arm/mach-imx/imx8ulp/soc.c
+++ b/arch/arm/mach-imx/imx8ulp/soc.c
@@ -23,7 +23,7 @@ enum bt_mode get_boot_mode(void)
{
u32 bt0_cfg = 0;
- bt0_cfg = readl(CMC0_RBASE + 0x80);
+ bt0_cfg = readl(CMC1_BASE_ADDR + 0xa0);
bt0_cfg &= (BT0CFG_LPBOOT_MASK | BT0CFG_DUALBOOT_MASK);
if (!(bt0_cfg & BT0CFG_LPBOOT_MASK)) {