ARM: rockchip: disable watchdog during suspend
authorChris Zhong <zyw@rock-chips.com>
Mon, 9 Feb 2015 13:12:23 +0000 (21:12 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 11 Mar 2015 21:41:02 +0000 (22:41 +0100)
commita0307d186f5015ee3d77e209e5c06190cbf02478
tree70c79ae52220faedf009ad84da0fe9f4062ad545
parentaefc7c7512455c26574ae7118429920dc3de60ae
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>
arch/arm/mach-rockchip/pm.c
arch/arm/mach-rockchip/pm.h