Skip to content

Commit 41fe6a0

Browse files
committed
ARM: rockchip: rename osc_switch_to_32k variable
The variable name is misleading, as the deep suspend mode always switches the main supplying clock to the 32kHz source. Additionally the main oscillator remains running in some cases, which this var indicates. So rename it to osc_disable to clarity. Signed-off-by: Heiko Stuebner <[email protected]> Reviewed-by: Chris Zhong <[email protected]> Tested-by: Chris Zhong <[email protected]> Reviewed-by: Douglas Anderson <[email protected]>
1 parent cb8cc37 commit 41fe6a0

File tree

1 file changed

+2
-2
lines changed
  • arch/arm/mach-rockchip

1 file changed

+2
-2
lines changed

arch/arm/mach-rockchip/pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static bool rk3288_slp_disable_osc(void)
9696
static void rk3288_slp_mode_set(int level)
9797
{
9898
u32 mode_set, mode_set1;
99-
bool osc_switch_to_32k = rk3288_slp_disable_osc();
99+
bool osc_disable = rk3288_slp_disable_osc();
100100

101101
regmap_read(sgrf_regmap, RK3288_SGRF_CPU_CON0, &rk3288_sgrf_cpu_con0);
102102
regmap_read(sgrf_regmap, RK3288_SGRF_SOC_CON0, &rk3288_sgrf_soc_con0);
@@ -140,7 +140,7 @@ static void rk3288_slp_mode_set(int level)
140140
BIT(PMU_DDR1IO_RET_EN) | BIT(PMU_DDR0IO_RET_EN) |
141141
BIT(PMU_ALIVE_USE_LF) | BIT(PMU_PLL_PD_EN);
142142

143-
if (osc_switch_to_32k)
143+
if (osc_disable)
144144
mode_set |= BIT(PMU_OSC_24M_DIS);
145145

146146
mode_set1 |= BIT(PMU_CLR_ALIVE) | BIT(PMU_CLR_BUS) |

0 commit comments

Comments
 (0)