]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx9: soc: Mask the wdog reset in src by default on i.mx9
authorJacky Bai <ping.bai@nxp.com>
Thu, 19 Sep 2024 04:01:28 +0000 (12:01 +0800)
committerFabio Estevam <festevam@gmail.com>
Thu, 19 Sep 2024 03:12:41 +0000 (00:12 -0300)
Normally, the wdog will be used for trigger external PMIC reset
through the WDOG_ANY pin. If the PMIC chip has debounce logic for
the reset signal, in some corner case the wdog can NOT trigger
external PMIC reset if the SoC has been reset internal before the
PMIC captures the WDOG_ANY pin reset, so need to keep the WDOG3-5
reset masked in the SRC to let the PMIC to do the reset safely.

Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/soc.c

index 44e2166509d5a814976dc173b9d88ebc7d1b68fb..0d909c3e853ec9481ff72d55f10e8fbfc4b1f9b4 100644 (file)
@@ -240,15 +240,9 @@ static void disable_wdog(void __iomem *wdog_base)
 
 void init_wdog(void)
 {
-       u32 src_val;
-
        disable_wdog((void __iomem *)WDG3_BASE_ADDR);
        disable_wdog((void __iomem *)WDG4_BASE_ADDR);
        disable_wdog((void __iomem *)WDG5_BASE_ADDR);
-
-       src_val = readl(0x54460018); /* reset mask */
-       src_val &= ~0x1c;
-       writel(src_val, 0x54460018);
 }
 
 static struct mm_region imx93_mem_map[] = {