From 005e994bb358d8bf68d1688563ce4f2df4fd7b2c Mon Sep 17 00:00:00 2001 From: Ye Li Date: Sun, 11 Aug 2019 20:42:27 -0700 Subject: [PATCH] MLK-22425 TMU: iMX8MN: Enable loading TASR and TCALIV from fuse 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. Signed-off-by: Ye Li Reviewed-by: Anson Huang (cherry picked from commit 9fb7f904ff6a03e2951a770daba12a522373c8ae) --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 6f2efe5f78..7bf8aacf65 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -884,7 +884,7 @@ int imx8m_usb_power(int usb_id, bool on) void nxp_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; struct fuse_bank *bank = &ocotp->bank[3]; -- 2.17.1