From 782dd903135e3114485cf9ad11da34710de06990 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=AE=B8=E7=9B=9B=E9=A3=9E?= Date: Fri, 12 Sep 2014 17:39:45 +0800 Subject: [PATCH] rk312x: for the bug of suspend-resume MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: 许盛飞 --- arch/arm/mach-rockchip/pm-rk312x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/pm-rk312x.c b/arch/arm/mach-rockchip/pm-rk312x.c index 23863a88b214..71a2892df5c5 100644 --- a/arch/arm/mach-rockchip/pm-rk312x.c +++ b/arch/arm/mach-rockchip/pm-rk312x.c @@ -919,11 +919,12 @@ void PIE_FUNC(pwm_regulator_suspend)(void) rkpm_pwm_duty2 = readl_relaxed(RK_PWM_VIRT + 0x28); writel_relaxed(PWM_VOLTAGE, RK_PWM_VIRT + 0x28); } + rkpm_udelay(30); } void PIE_FUNC(pwm_regulator_resume)(void) { - cru_writel(0x1e000000, 0xf0); + rkpm_udelay(30); if (rkpm_chk_sram_ctrbit(RKPM_CTR_VOL_PWM0)) writel_relaxed(rkpm_pwm_duty0, RK_PWM_VIRT + 0x08); @@ -932,6 +933,7 @@ void PIE_FUNC(pwm_regulator_resume)(void) if (rkpm_chk_sram_ctrbit(RKPM_CTR_VOL_PWM2)) writel_relaxed(rkpm_pwm_duty2, RK_PWM_VIRT + 0x28); + rkpm_udelay(30); } static void reg_pread(void) -- 2.34.1