summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mx6
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-08-08 09:55:52 +0000
committerStefano Babic <sbabic@denx.de>2019-10-08 16:33:45 +0200
commit81ae46c2e69f2864d73caa59a35e0887d155705e (patch)
treebe00c2ac228676eaaaa9ece7517b4ddf9fbd030b /arch/arm/mach-imx/mx6
parent939a9644f0d02f63756dd92b7503f752919d6140 (diff)
downloadu-boot-81ae46c2e69f2864d73caa59a35e0887d155705e.tar.gz
imx: add i.MX6ULZ cpu type
Add i.MX6ULZ cpu type and helper. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Diffstat (limited to 'arch/arm/mach-imx/mx6')
-rw-r--r--arch/arm/mach-imx/mx6/soc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index 075d2467ce..d37d3856d3 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -85,6 +85,10 @@ u32 get_cpu_rev(void)
type = MXC_CPU_MX6D;
}
+ if (type == MXC_CPU_MX6ULL) {
+ if (readl(SRC_BASE_ADDR + 0x1c) & (1 << 6))
+ type = MXC_CPU_MX6ULZ;
+ }
}
major = ((reg >> 8) & 0xff);
if ((major >= 1) &&