From: Ye Li Date: Mon, 12 Aug 2019 03:42:27 +0000 (-0700) Subject: MLK-22425 TMU: iMX8MN: Enable loading TASR and TCALIV from fuse X-Git-Tag: rel_imx_4.19.35_1.1.0~79 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=005e994bb358d8bf68d1688563ce4f2df4fd7b2c;p=u-boot.git 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) --- 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];