From: 黄涛 Date: Fri, 4 Jan 2013 06:05:28 +0000 (+0800) Subject: rk30: pm: keep pwm23 when first gating X-Git-Tag: firefly_0821_release~8014 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1cf2069b389512bcfbeafc4c58c5be98be64dbfe;p=firefly-linux-kernel-4.4.55.git rk30: pm: keep pwm23 when first gating --- diff --git a/arch/arm/mach-rk30/pm.c b/arch/arm/mach-rk30/pm.c index a73e57a2f864..9ab51da4b473 100755 --- a/arch/arm/mach-rk30/pm.c +++ b/arch/arm/mach-rk30/pm.c @@ -616,8 +616,9 @@ static int rk30_pm_enter(suspend_state_t state) , clkgt_regs[5], CRU_CLKGATES_CON(5), 0xffff); gate_save_soc_clk(0, clkgt_regs[6], CRU_CLKGATES_CON(6), 0xffff); gate_save_soc_clk(0 - |(1 << CLK_GATE_PCLK_PWM23%16) - , clkgt_regs[7], CRU_CLKGATES_CON(7), 0xffff); + | (1 << CLK_GATE_PCLK_PWM01 % 16) + | (1 << CLK_GATE_PCLK_PWM23 % 16) + , clkgt_regs[7], CRU_CLKGATES_CON(7), 0xffff); gate_save_soc_clk(0 , clkgt_regs[8], CRU_CLKGATES_CON(8), 0x01ff); gate_save_soc_clk(0 | (1 << CLK_GATE_CLK_L2C % 16)