Commit b6765ef4a0f8d6c7dac8c1bcc7af4776b5b7f3ca

Authored by Ye Li
1 parent b09ab38559

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 <ye.li@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 9fb7f904ff6a03e2951a770daba12a522373c8ae)
(cherry picked from commit 005e994bb358d8bf68d1688563ce4f2df4fd7b2c)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/arm/mach-imx/imx8m/soc.c
... ... @@ -868,7 +868,7 @@
868 868  
869 869 void nxp_tmu_arch_init(void *reg_base)
870 870 {
871   - if (is_imx8mm()) {
  871 + if (is_imx8mm() || is_imx8mn()) {
872 872 /* Load TCALIV and TASR from fuses */
873 873 struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
874 874 struct fuse_bank *bank = &ocotp->bank[3];