Lines Matching +full:30 +full:- +full:bit
1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Tony Xie <tony.xie@rock-chips.com>
55 rkpm_bootdata_cpusp = rk3288_bootram_phy + (SZ_4K - 8); in rk3288_config_bootdata()
65 #define GRF_SIDDQ BIT(13)
99 * SGRF_FAST_BOOT_EN - system to boot from FAST_BOOT_ADDR in rk3288_slp_mode_set()
100 * PCLK_WDT_GATE - disable WDT during suspend. in rk3288_slp_mode_set()
117 mode_set = BIT(PMU_GLOBAL_INT_DISABLE) | BIT(PMU_L2FLUSH_EN) | in rk3288_slp_mode_set()
118 BIT(PMU_SREF0_ENTER_EN) | BIT(PMU_SREF1_ENTER_EN) | in rk3288_slp_mode_set()
119 BIT(PMU_DDR0_GATING_EN) | BIT(PMU_DDR1_GATING_EN) | in rk3288_slp_mode_set()
120 BIT(PMU_PWR_MODE_EN) | BIT(PMU_CHIP_PD_EN) | in rk3288_slp_mode_set()
121 BIT(PMU_SCU_EN); in rk3288_slp_mode_set()
123 mode_set1 = BIT(PMU_CLR_CORE) | BIT(PMU_CLR_CPUP); in rk3288_slp_mode_set()
127 mode_set |= BIT(PMU_BUS_PD_EN) | BIT(PMU_PMU_USE_LF) | in rk3288_slp_mode_set()
128 BIT(PMU_DDR1IO_RET_EN) | BIT(PMU_DDR0IO_RET_EN) | in rk3288_slp_mode_set()
129 BIT(PMU_ALIVE_USE_LF) | BIT(PMU_PLL_PD_EN); in rk3288_slp_mode_set()
132 mode_set |= BIT(PMU_OSC_24M_DIS); in rk3288_slp_mode_set()
134 mode_set1 |= BIT(PMU_CLR_ALIVE) | BIT(PMU_CLR_BUS) | in rk3288_slp_mode_set()
135 BIT(PMU_CLR_PERI) | BIT(PMU_CLR_DMA); in rk3288_slp_mode_set()
143 * source. Therefore set 30ms on a 32kHz clock for pmic in rk3288_slp_mode_set()
144 * stabilization. Similar 30ms on 24MHz for the other in rk3288_slp_mode_set()
147 regmap_write(pmu_regmap, RK3288_PMU_STABL_CNT, 32 * 30); in rk3288_slp_mode_set()
151 osc_disable ? 32 * 30 : 0); in rk3288_slp_mode_set()
158 mode_set |= BIT(PMU_CLK_CORE_SRC_GATE_EN); in rk3288_slp_mode_set()
163 /* 30ms on a 24MHz clock for pmic stabilization */ in rk3288_slp_mode_set()
164 regmap_write(pmu_regmap, RK3288_PMU_STABL_CNT, 24000 * 30); in rk3288_slp_mode_set()
237 "rockchip,rk3288-sgrf"); in rk3288_suspend_init()
244 "rockchip,rk3288-grf"); in rk3288_suspend_init()
251 "rockchip,rk3288-pmu-sram"); in rk3288_suspend_init()
254 return -ENODEV; in rk3288_suspend_init()
261 return -ENOMEM; in rk3288_suspend_init()
297 .compatible = "rockchip,rk3288-pmu",
316 pm_data = (struct rockchip_pm_data *) match->data; in rockchip_suspend_init()
318 if (pm_data->init) { in rockchip_suspend_init()
319 ret = pm_data->init(np); in rockchip_suspend_init()
327 suspend_set_ops(pm_data->ops); in rockchip_suspend_init()