diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-07-08 16:57:06 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-07-10 15:12:25 +0800 |
commit | abb476cd4c74246e14dab7aff5b9f90eb0652e0d (patch) | |
tree | 704b8452340853dcafec10980cdf8efffcbe1c9f /arch/arm/mach-imx/anatop.c | |
parent | b9eb888d55d5e77d653bcd021936967457152322 (diff) |
MLK-24369 ARM: imx: Add dummy soc id for imx6ulz lite
for i.MX6ULZ Lite, there is no dedicated SOC id for it,
so add a dummy ID and identify it by checking the MARK
bit in fuse.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx/anatop.c')
-rw-r--r-- | arch/arm/mach-imx/anatop.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c index 7716fd5fe58a..6ee51d79d83a 100644 --- a/arch/arm/mach-imx/anatop.c +++ b/arch/arm/mach-imx/anatop.c @@ -235,6 +235,20 @@ void __init imx_init_revision_from_anatop(void) digprog &= ~(0xff << 16); digprog |= (MXC_CPU_IMX6ULZ << 16); } + + /* dummy ID for i.MX6ULZ Lite */ + np = of_find_compatible_node(NULL, NULL, "fsl,imx6ull-ocotp"); + if (np) { + src_base = of_iomap(np, 0); + WARN_ON(!src_base); + sbmr2 = readl_relaxed(src_base + 0x460); + iounmap(src_base); + } + if (sbmr2 & BIT(2)) { + digprog &= ~(0xff << 16); + digprog |= (MXC_CPU_IMX6ULZL << 16); + } + } /* |