imx: Also clear powerdown enable bit for WDOG3 on i.MX6ULL
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 23 Nov 2017 11:18:54 +0000 (09:18 -0200)
committerStefano Babic <sbabic@denx.de>
Mon, 27 Nov 2017 09:34:40 +0000 (10:34 +0100)
Clear powerdown enable bit for WDOG3 on i.MX6ULL to avoid unwanted
kernel reboots.

Suggested-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/init.c

index 720ad672a674bc49dbb9aacfafabfb995dd557fe..2a05c596422acc50d5f3b4d38d98a6e574730f51 100644 (file)
@@ -78,7 +78,7 @@ void imx_set_wdog_powerdown(bool enable)
        writew(enable, &wdog1->wmcr);
        writew(enable, &wdog2->wmcr);
 
-       if (is_mx6sx() || is_mx6ul() || is_mx7())
+       if (is_mx6sx() || is_mx6ul() || is_mx6ull() || is_mx7())
                writew(enable, &wdog3->wmcr);
 #ifdef CONFIG_MX7D
        writew(enable, &wdog4->wmcr);