From 0e6bbe0b01a4f7142c8d740b163265cd92499539 Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Thu, 19 Jan 2017 18:27:34 +0800 Subject: MLK-13761 board: imx7ulp: Fix system reset after a7 rtc alarm expired. The board will reboot if A7 core enter mem mode by rtc, then M4 core enter VLLS mode after the RTC alarm expired. Enable the dumb PMIC mode to fix this issue. Signed-off-by: Bai Ping (cherry picked from commit 5aa5974f487e0b4c2e963a86203161c5f05e2fdf) --- arch/arm/cpu/armv7/mx7ulp/soc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm/cpu/armv7/mx7ulp') diff --git a/arch/arm/cpu/armv7/mx7ulp/soc.c b/arch/arm/cpu/armv7/mx7ulp/soc.c index a6118af..cba65b5 100644 --- a/arch/arm/cpu/armv7/mx7ulp/soc.c +++ b/arch/arm/cpu/armv7/mx7ulp/soc.c @@ -146,6 +146,9 @@ void s_init(void) /* clock configuration. */ clock_init(); + /* enable dumb pmic */ + writel((readl(SNVS_LP_LPCR) | 0x20), SNVS_LP_LPCR); + return; } -- cgit v1.1