imx: i.MX8MN: Enable loading TASR and TCALIV from fuse
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:19:53 +0000 (22:19 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
Like iMX8MM, iMX8MN also needs SW to load TMU TASR and TCALIV registers
value from fuse before enabling TMU calibration. Otherwise the calibration
is not exact.

Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx8m/soc.c

index dcec83e62488852d050be5a1430b73fd84c4ef94..a1d9470f3d9291a79a96fb4e6db7c2f08c743ca6 100644 (file)
@@ -451,7 +451,7 @@ int arch_misc_init(void)
 
 void imx_tmu_arch_init(void *reg_base)
 {
-       if (is_imx8mm()) {
+       if (is_imx8mm() || is_imx8mn()) {
                /* Load TCALIV and TASR from fuses */
                struct ocotp_regs *ocotp =
                        (struct ocotp_regs *)OCOTP_BASE_ADDR;