summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rockchip/pm.c
diff options
context:
space:
mode:
authorChris Zhong <zyw@rock-chips.com>2015-02-09 14:12:22 +0100
committerHeiko Stuebner <heiko@sntech.de>2015-03-11 22:40:59 +0100
commitaefc7c7512455c26574ae7118429920dc3de60ae (patch)
tree7add9a7ac1299ea35a487bd6a8428e272f98e658 /arch/arm/mach-rockchip/pm.c
parentARM: rockchip: Constify struct regmap_config and staticize local function (diff)
downloadlinux-aefc7c7512455c26574ae7118429920dc3de60ae.tar.xz
linux-aefc7c7512455c26574ae7118429920dc3de60ae.zip
ARM: rockchip: decrease the wait time for resume
The register-default delay time for wait the 24MHz OSC stabilization as well as PMU stabilization is 750ms, let's decrease them to a still safe 30ms. Signed-off-by: Chris Zhong <zyw@rock-chips.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.c')
-rw-r--r--arch/arm/mach-rockchip/pm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c
index 50cb781aaa36..a3ab3979923c 100644
--- a/arch/arm/mach-rockchip/pm.c
+++ b/arch/arm/mach-rockchip/pm.c
@@ -209,6 +209,9 @@ static int rk3288_suspend_init(struct device_node *np)
memcpy(rk3288_bootram_base, rockchip_slp_cpu_resume,
rk3288_bootram_sz);
+ regmap_write(pmu_regmap, RK3288_PMU_OSC_CNT, OSC_STABL_CNT_THRESH);
+ regmap_write(pmu_regmap, RK3288_PMU_STABL_CNT, PMU_STABL_CNT_THRESH);
+
return 0;
}