aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/pm.h
diff options
context:
space:
mode:
authorChris Zhong <zyw@rock-chips.com>2015-02-09 21:12:23 +0800
committerHeiko Stuebner <heiko@sntech.de>2015-03-11 22:41:02 +0100
commita0307d186f5015ee3d77e209e5c06190cbf02478 (patch)
tree70c79ae52220faedf009ad84da0fe9f4062ad545 /arch/arm/mach-rockchip/pm.h
parentaefc7c7512455c26574ae7118429920dc3de60ae (diff)
downloadlinux-linaro-stable-a0307d186f5015ee3d77e209e5c06190cbf02478.tar.gz
ARM: rockchip: disable watchdog during suspend
The watchdog clock should be disable in dw_wdt_suspend, but we set a dummy clock to watchdog for rk3288. So the watchdog will continue to work during suspend. And we switch the system clock to 32khz from 24Mhz, during suspend, so the watchdog timer over count will increase to 755 times, about 12.5 hours, the original value is 60 seconds. So watchdog will reset the system over a night, but voltage are all incorrect, then it hang on reset. Signed-off-by: Chris Zhong <zyw@rock-chips.com> Signed-off-by: Daniel Kurtz <djkurtz@google.com> Reviewed-by: Doug Anderson <dianders@chromium.org> Tested-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/mach-rockchip/pm.h')
-rw-r--r--arch/arm/mach-rockchip/pm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/pm.h b/arch/arm/mach-rockchip/pm.h
index 91a542df5791..03ff31d8282d 100644
--- a/arch/arm/mach-rockchip/pm.h
+++ b/arch/arm/mach-rockchip/pm.h
@@ -50,6 +50,8 @@ static inline void rockchip_suspend_init(void)
#define RK3288_SGRF_SOC_CON0 (0x0000)
#define RK3288_SGRF_FAST_BOOT_ADDR (0x0120)
+#define SGRF_PCLK_WDT_GATE BIT(6)
+#define SGRF_PCLK_WDT_GATE_WRITE BIT(22)
#define SGRF_FAST_BOOT_EN BIT(8)
#define SGRF_FAST_BOOT_EN_WRITE BIT(24)