rk312x: not gating gpios clock
author许盛飞 <xsf@rock-chips.com>
Tue, 2 Sep 2014 07:07:26 +0000 (15:07 +0800)
committer许盛飞 <xsf@rock-chips.com>
Tue, 2 Sep 2014 07:07:26 +0000 (15:07 +0800)
Signed-off-by: 许盛飞 <xsf@rock-chips.com>
arch/arm/mach-rockchip/pm-rk312x.c

index d0c51dea90fe1b9d51069b052c0251dff022166d..b5842f512368299f2c21855234ff6d5a91e2a6c0 100644 (file)
@@ -910,7 +910,7 @@ void PIE_FUNC(pwm_regulator_suspend)(void)
        int clk_gates8;
 
        clk_gates8 = cru_readl(0xf0);
-       cru_writel(0x1e001e00, 0xf0);
+       cru_writel(0x1e000000, 0xf0);
        if (rkpm_chk_sram_ctrbit(RKPM_CTR_VOL_PWM0)) {
                grf_writel(0x00100000, 0xb4);/*iomux  gpio0d2*/
                gpio0_inout = readl_relaxed(RK_GPIO_VIRT(0) + 0x04);
@@ -950,7 +950,7 @@ void PIE_FUNC(pwm_regulator_resume)(void)
        int clk_gates8;
 
        clk_gates8 = cru_readl(0xf0);
-       cru_writel(0x1e001e00, 0xf0);
+       cru_writel(0x1e000000, 0xf0);
        if (rkpm_chk_sram_ctrbit(RKPM_CTR_VOL_PWM0)) {
                gpio0_inout = readl_relaxed(RK_GPIO_VIRT(0) + 0x04);
                gpio0_ddr = readl_relaxed(RK_GPIO_VIRT(0));