]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mp: Set default SNSR25C for TMU probe1
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:19:55 +0000 (22:19 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
So far u-boot only load SNSR25C for TMU main probe (probe 0). However,
kernel enables two probes. So it also needs to set default SNSR25C of
TCALIV1 for blank samples.

Reviewed-by: Peng Fan <peng.fan@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 ea0430c207f78f0b231396bc8c1f3f14eea9af8a..347fd6d0ade45409a3ba9d6fd7ebd8f9aa41bc31 100644 (file)
@@ -491,7 +491,9 @@ void imx_tmu_arch_init(void *reg_base)
            !fuse->ana_trim4 && !fuse2->ana_trim5) {
                /* Use a default 25C binary codes */
                tca25[0] = 1596;
+               tca25[1] = 1596;
                writel(tca25[0], (ulong)reg_base + 0x30);
+               writel(tca25[1], (ulong)reg_base + 0x34);
                return;
        }