Searched refs:pd_state (Results 1 – 5 of 5) sorted by relevance
/trusted-firmware-a/plat/rockchip/common/drivers/pmu/ |
A D | pmu_com.h | 48 static int pmu_power_domain_ctr(uint32_t pd, uint32_t pd_state) in pmu_power_domain_ctr() argument 57 if (pd_state == pmu_pd_off) in pmu_power_domain_ctr() 65 while ((pmu_power_domain_st(pd) != pd_state) && (loop < PD_CTR_LOOP)) { in pmu_power_domain_ctr() 70 if (pmu_power_domain_st(pd) != pd_state) { in pmu_power_domain_ctr() 71 WARN("%s: %d, %d, error!\n", __func__, pd, pd_state); in pmu_power_domain_ctr()
|
/trusted-firmware-a/plat/rockchip/px30/drivers/pmu/ |
A D | pmu.c | 131 static int pmu_power_domain_ctr(uint32_t pd, uint32_t pd_state) in pmu_power_domain_ctr() argument 139 BITS_WITH_WMASK(pd_state, 0x1, pd)); in pmu_power_domain_ctr() 147 if (pmu_power_domain_st(pd) != pd_state) { in pmu_power_domain_ctr() 148 WARN("%s: %d, %d, error!\n", __func__, pd, pd_state); in pmu_power_domain_ctr() 264 static int pmu_set_power_domain(uint32_t pd_id, uint32_t pd_state) in pmu_set_power_domain() argument 268 if (pmu_power_domain_st(pd_id) == pd_state) in pmu_set_power_domain() 271 if (pd_state == pmu_pd_on) in pmu_set_power_domain() 272 pmu_power_domain_ctr(pd_id, pd_state); in pmu_set_power_domain() 274 state = (pd_state == pmu_pd_off) ? bus_idle : bus_active; in pmu_set_power_domain() 308 if (pd_state == pmu_pd_off) in pmu_set_power_domain() [all …]
|
/trusted-firmware-a/plat/rockchip/rk3368/drivers/pmu/ |
A D | pmu.c | 242 uint32_t pd_state, in cpus_id_power_domain() argument 253 if (pmu_power_domain_st(pd) == pd_state) in cpus_id_power_domain() 256 if (pd_state == pmu_pd_off) { in cpus_id_power_domain() 262 return pmu_power_domain_ctr(pd, pd_state); in cpus_id_power_domain()
|
/trusted-firmware-a/lib/psci/ |
A D | psci_common.c | 309 plat_local_state_t *pd_state = target_state->pwr_domain_state; in psci_get_target_local_pwr_states() local 311 pd_state[PSCI_CPU_PWR_LVL] = psci_get_cpu_local_state(); in psci_get_target_local_pwr_states() 316 pd_state[lvl] = get_non_cpu_pd_node_local_state(parent_idx); in psci_get_target_local_pwr_states() 335 const plat_local_state_t *pd_state = target_state->pwr_domain_state; in psci_set_target_local_pwr_states() local 337 psci_set_cpu_local_state(pd_state[PSCI_CPU_PWR_LVL]); in psci_set_target_local_pwr_states() 349 set_non_cpu_pd_node_local_state(parent_idx, pd_state[lvl]); in psci_set_target_local_pwr_states()
|
/trusted-firmware-a/plat/rockchip/rk3399/drivers/pmu/ |
A D | pmu.c | 239 static int pmu_set_power_domain(uint32_t pd_id, uint32_t pd_state) in pmu_set_power_domain() argument 243 if (pmu_power_domain_st(pd_id) == pd_state) in pmu_set_power_domain() 246 if (pd_state == pmu_pd_on) in pmu_set_power_domain() 247 pmu_power_domain_ctr(pd_id, pd_state); in pmu_set_power_domain() 249 state = (pd_state == pmu_pd_off) ? BUS_IDLE : BUS_ACTIVE; in pmu_set_power_domain() 320 if (pd_state == pmu_pd_off) in pmu_set_power_domain() 321 pmu_power_domain_ctr(pd_id, pd_state); in pmu_set_power_domain()
|
Completed in 13 milliseconds