Lines Matching refs:PMU_BASE
69 mmio_write_32(PMU_BASE + PMU_WAKEUP_INT_CON, WRITE_MASK_SET(BIT(WAKEUP_GPIO0_INT_EN))); in pmu_wakeup_source_config()
72 mmio_read_32(PMU_BASE + PMU_WAKEUP_INT_CON), PMU_WAKEUP_INT_CON); in pmu_wakeup_source_config()
88 mmio_write_32(PMU_BASE + PMU_PLLPD_CON, WRITE_MASK_SET(pll_id)); in pmu_pll_powerdown_config()
90 PMU_PLLPD_CON, mmio_read_32(PMU_BASE + PMU_PLLPD_CON)); in pmu_pll_powerdown_config()
95 mmio_write_32(PMU_BASE + PMU_DSU_STABLE_CNT, 0x180); in pmu_stable_count_config()
96 mmio_write_32(PMU_BASE + PMU_PMIC_STABLE_CNT, 0x180); in pmu_stable_count_config()
97 mmio_write_32(PMU_BASE + PMU_OSC_STABLE_CNT, 0x180); in pmu_stable_count_config()
98 mmio_write_32(PMU_BASE + PMU_WAKEUP_RSTCLR_CNT, 0x180); in pmu_stable_count_config()
99 mmio_write_32(PMU_BASE + PMU_PLL_LOCK_CNT, 0x180); in pmu_stable_count_config()
100 mmio_write_32(PMU_BASE + PMU_DSU_PWRUP_CNT, 0x180); in pmu_stable_count_config()
101 mmio_write_32(PMU_BASE + PMU_DSU_PWRDN_CNT, 0x180); in pmu_stable_count_config()
102 mmio_write_32(PMU_BASE + PMU_GPU_VOLUP_CNT, 0x180); in pmu_stable_count_config()
103 mmio_write_32(PMU_BASE + PMU_GPU_VOLDN_CNT, 0x180); in pmu_stable_count_config()
104 mmio_write_32(PMU_BASE + PMU_WAKEUP_TIMEOUT_CNT, 0x180); in pmu_stable_count_config()
105 mmio_write_32(PMU_BASE + PMU_PWM_SWITCH_CNT, 0x180); in pmu_stable_count_config()
106 mmio_write_32(PMU_BASE + PMU_DBG_RST_CNT, 0x180); in pmu_stable_count_config()
115 pwr_dwn_st = mmio_read_32(PMU_BASE + PMU_PWR_DWN_ST); in pmu_pd_powerdown_config()
171 mmio_write_32(PMU_BASE + PMU_PWR_GATE_CON, pwr_gate_con); in pmu_pd_powerdown_config()
172 mmio_write_32(PMU_BASE + PMU_BUS_IDLE_CON0, WRITE_MASK_SET(pmu_bus_idle_con0)); in pmu_pd_powerdown_config()
173 mmio_write_32(PMU_BASE + PMU_BUS_IDLE_CON1, WRITE_MASK_SET(pmu_bus_idle_con1)); in pmu_pd_powerdown_config()
178 mmio_write_32(PMU_BASE + PMU_NOC_AUTO_CON0, 0xffffffff); in pmu_pd_powerdown_config()
179 mmio_write_32(PMU_BASE + PMU_NOC_AUTO_CON1, 0x00070007); in pmu_pd_powerdown_config()
181 mmio_write_32(PMU_BASE + PMU_VOL_GATE_SFTCON, WRITE_MASK_SET(BIT(VD_NPU_ENA))); in pmu_pd_powerdown_config()
183 mmio_write_32(PMU_BASE + PMU_PWR_CON, WRITE_MASK_CLR(BIT(PWRDN_BYPASS))); in pmu_pd_powerdown_config()
184 mmio_write_32(PMU_BASE + PMU_PWR_CON, WRITE_MASK_CLR(BIT(BUS_BYPASS))); in pmu_pd_powerdown_config()
187 PMU_PWR_DWN_ST, mmio_read_32(PMU_BASE + PMU_PWR_DWN_ST)); in pmu_pd_powerdown_config()
189 PMU_PWR_GATE_CON, mmio_read_32(PMU_BASE + PMU_PWR_GATE_CON)); in pmu_pd_powerdown_config()
191 PMU_BUS_IDLE_CON0, mmio_read_32(PMU_BASE + PMU_BUS_IDLE_CON0)); in pmu_pd_powerdown_config()
193 PMU_BUS_IDLE_CON1, mmio_read_32(PMU_BASE + PMU_BUS_IDLE_CON1)); in pmu_pd_powerdown_config()
195 PMU_PWR_CON, mmio_read_32(PMU_BASE + PMU_PWR_CON)); in pmu_pd_powerdown_config()
207 mmio_write_32(PMU_BASE + PMU_DDR_PWR_CON, WRITE_MASK_SET(pmu_ddr_pwr_con)); in pmu_ddr_suspend_config()
209 mmio_write_32(PMU_BASE + PMU_PLLPD_CON, WRITE_MASK_SET(BIT(DPLL_PD_ENA))); in pmu_ddr_suspend_config()
210 mmio_write_32(PMU_BASE + PMU_PWR_CON, WRITE_MASK_CLR(BIT(DDR_BYPASS))); in pmu_ddr_suspend_config()
216 pmu_ddr_pwr_con = mmio_read_32(PMU_BASE + PMU_DDR_PWR_CON); in pmu_ddr_suspend_config()
219 PMU_PLLPD_CON, mmio_read_32(PMU_BASE + PMU_PLLPD_CON)); in pmu_ddr_suspend_config()
246 mmio_write_32(PMU_BASE + PMU_CLUSTER_IDLE_CON, 0x000f000f); in pmu_dsu_suspend_config()
247 mmio_write_32(PMU_BASE + PMU_DSU_PWR_CON, WRITE_MASK_SET(pmu_dsu_pwr_con)); in pmu_dsu_suspend_config()
248 mmio_write_32(PMU_BASE + PMU_PWR_CON, WRITE_MASK_CLR(BIT(DSU_BYPASS))); in pmu_dsu_suspend_config()
252 PMU_DSU_PWR_CON, mmio_read_32(PMU_BASE + PMU_DSU_PWR_CON)); in pmu_dsu_suspend_config()
254 PMU_CLUSTER_IDLE_CON, mmio_read_32(PMU_BASE + PMU_CLUSTER_IDLE_CON)); in pmu_dsu_suspend_config()
256 PMU_PWR_CON, mmio_read_32(PMU_BASE + PMU_PWR_CON)); in pmu_dsu_suspend_config()
263 pmu_cluster_pwr_st = mmio_read_32(PMU_BASE + PMU_CLUSTER_PWR_ST); in pmu_cpu_powerdown_config()
269 PMU_CLUSTER_PWR_ST, mmio_read_32(PMU_BASE + PMU_CLUSTER_PWR_ST)); in pmu_cpu_powerdown_config()
270 mmio_write_32(PMU_BASE + PMU_PWR_CON, (0xf << (16 + CPU0_BYPASS)) | cpus_bypass); in pmu_cpu_powerdown_config()
273 PMU_PWR_CON, mmio_read_32(PMU_BASE + PMU_PWR_CON)); in pmu_cpu_powerdown_config()
312 mmio_write_32(PMU_BASE + PMU_WAKEUP_TIMEOUT_CNT, 32000 * 10); in pvtm_32k_config()
314 mmio_write_32(PMU_BASE + PMU_CRU_PWR_CON, WRITE_MASK_SET(pmu_cru_pwr_con)); in pvtm_32k_config()
316 PMU_CRU_PWR_CON, mmio_read_32(PMU_BASE + PMU_CRU_PWR_CON)); in pvtm_32k_config()
325 mmio_write_32(PMU_BASE + PMU_CRU_PWR_CON, WRITE_MASK_SET(pmu_cru_pwr_con)); in pmu_cru_suspendmode_config()
327 PMU_CRU_PWR_CON, mmio_read_32(PMU_BASE + PMU_CRU_PWR_CON)); in pmu_cru_suspendmode_config()
335 mmio_write_32(PMU_BASE + PMU_INT_MASK_CON, CLB_INT_DISABLE); in pmu_suspend_cru_fsm()
336 mmio_write_32(PMU_BASE + PMU_PWR_CON, CPUS_BYPASS); in pmu_suspend_cru_fsm()
340 mmio_write_32(PMU_BASE + PMU_WAKEUP_TIMEOUT_CNT, 0x5dc0 * 20000); in pmu_suspend_cru_fsm()
342 mmio_write_32(PMU_BASE + PMU_CRU_PWR_CON, WRITE_MASK_SET(BIT(ALIVE_OSC_ENA))); in pmu_suspend_cru_fsm()
351 mmio_write_32(PMU_BASE + PMU_PWR_CON, 0x00010001); in pmu_suspend_cru_fsm()
357 mmio_write_32(PMU_BASE + PMU_PWR_CON, 0xffff0000); in pmu_reinit()
358 mmio_write_32(PMU_BASE + PMU_INT_MASK_CON, 0xffff0000); in pmu_reinit()
359 mmio_write_32(PMU_BASE + PMU_WAKEUP_INT_CON, 0xffff0000); in pmu_reinit()
360 mmio_write_32(PMU_BASE + PMU_BUS_IDLE_CON0, 0xffff0000); in pmu_reinit()
361 mmio_write_32(PMU_BASE + PMU_DDR_PWR_CON, 0xffff0000); in pmu_reinit()
362 mmio_write_32(PMU_BASE + PMU_BUS_IDLE_CON1, 0xffff0000); in pmu_reinit()
364 mmio_write_32(PMU_BASE + PMU_PWR_GATE_CON, 0xffff0000); in pmu_reinit()
365 mmio_write_32(PMU_BASE + PMU_VOL_GATE_SFTCON, 0xffff0000); in pmu_reinit()
366 mmio_write_32(PMU_BASE + PMU_CRU_PWR_CON, 0xffff0000); in pmu_reinit()
368 mmio_write_32(PMU_BASE + PMU_PLLPD_CON, 0xffff0000); in pmu_reinit()
369 mmio_write_32(PMU_BASE + PMU_INFO_TX_CON, 0xffff0000); in pmu_reinit()
370 mmio_write_32(PMU_BASE + PMU_DSU_PWR_CON, 0xffff0000); in pmu_reinit()
371 mmio_write_32(PMU_BASE + PMU_CLUSTER_IDLE_CON, 0xffff0000); in pmu_reinit()
424 mmio_write_32(PMU_BASE + PMU_CPUAPM_CON(idx), in cpus_power_domain_off()
438 mmio_write_32(PMU_BASE + PMU_CPUAPM_CON(idx), in cpus_power_domain_on()
440 mmio_write_32(PMU_BASE + PMU_CPUAPM_CON(idx), in cpus_power_domain_on()
480 mmio_write_32(PMU_BASE + PMU_CPUAPM_CON(idx), in rockchip_soc_cores_pwr_dm_on_finish()
499 tmp = mmio_read_32(PMU_BASE + PMU_CLUSTER_PWR_ST); in nonboot_cpus_off()
522 mmio_write_32(PMU_BASE + PMU_NOC_AUTO_CON0, 0xffffffff); in plat_rockchip_pmu_init()
523 mmio_write_32(PMU_BASE + PMU_NOC_AUTO_CON1, 0x00070007); in plat_rockchip_pmu_init()