Searched refs:pwrctrl (Results 1 – 7 of 7) sorted by relevance
/external/arm-trusted-firmware/plat/mediatek/mt8183/drivers/spm/ |
D | spm.c | 109 void spm_set_power_control(const struct pwr_ctrl *pwrctrl) in spm_set_power_control() argument 112 ((pwrctrl->wfi_op & 0x1) << 0) | in spm_set_power_control() 113 ((pwrctrl->mp0_cputop_idle_mask & 0x1) << 1) | in spm_set_power_control() 114 ((pwrctrl->mp1_cputop_idle_mask & 0x1) << 2) | in spm_set_power_control() 115 ((pwrctrl->mcusys_idle_mask & 0x1) << 4) | in spm_set_power_control() 116 ((pwrctrl->mm_mask_b & 0x3) << 16) | in spm_set_power_control() 117 ((pwrctrl->md_ddr_en_0_dbc_en & 0x1) << 18) | in spm_set_power_control() 118 ((pwrctrl->md_ddr_en_1_dbc_en & 0x1) << 19) | in spm_set_power_control() 119 ((pwrctrl->md_mask_b & 0x3) << 20) | in spm_set_power_control() 120 ((pwrctrl->sspm_mask_b & 0x1) << 22) | in spm_set_power_control() [all …]
|
D | spm.h | 2538 extern void spm_set_power_control(const struct pwr_ctrl *pwrctrl); 2539 extern void spm_set_wakeup_event(const struct pwr_ctrl *pwrctrl); 2540 extern void spm_set_pcm_flags(const struct pwr_ctrl *pwrctrl);
|
/external/arm-trusted-firmware/plat/mediatek/mt8173/drivers/spm/ |
D | spm.c | 159 void spm_set_power_control(const struct pwr_ctrl *pwrctrl) in spm_set_power_control() argument 161 mmio_write_32(SPM_AP_STANBY_CON, (!pwrctrl->md32_req_mask << 21) | in spm_set_power_control() 162 (!pwrctrl->mfg_req_mask << 17) | in spm_set_power_control() 163 (!pwrctrl->disp_req_mask << 16) | in spm_set_power_control() 164 (!!pwrctrl->mcusys_idle_mask << 7) | in spm_set_power_control() 165 (!!pwrctrl->ca15top_idle_mask << 6) | in spm_set_power_control() 166 (!!pwrctrl->ca7top_idle_mask << 5) | in spm_set_power_control() 167 (!!pwrctrl->wfi_op << 4)); in spm_set_power_control() 168 mmio_write_32(SPM_PCM_SRC_REQ, (!!pwrctrl->pcm_apsrc_req << 0)); in spm_set_power_control() 172 (pwrctrl->srclkenai_mask ? CC_SRCLKENA_MASK_0 : 0)); in spm_set_power_control() [all …]
|
D | spm_suspend.c | 244 struct pwr_ctrl *pwrctrl; in go_to_sleep_before_wfi() local 246 pwrctrl = &spm_ctrl; in go_to_sleep_before_wfi() 248 set_pwrctrl_pcm_flags(pwrctrl, flags_spm); in go_to_sleep_before_wfi() 253 pwrctrl->timer_val, pwrctrl->wake_src, in go_to_sleep_before_wfi() 254 is_cpu_pdn(pwrctrl->pcm_flags), in go_to_sleep_before_wfi() 255 is_infra_pdn(pwrctrl->pcm_flags)); in go_to_sleep_before_wfi() 259 spm_set_power_control(pwrctrl); in go_to_sleep_before_wfi() 260 spm_set_wakeup_event(pwrctrl); in go_to_sleep_before_wfi() 261 spm_kick_pcm_to_run(pwrctrl); in go_to_sleep_before_wfi()
|
D | spm_mcdi.c | 233 .pwrctrl = &mcdi_ctrl, 453 struct pwr_ctrl *pwrctrl = spm_mcdi.pwrctrl; in spm_mcdi_prepare_for_mtcmos() local 458 set_pwrctrl_pcm_flags(pwrctrl, 0); in spm_mcdi_prepare_for_mtcmos() 461 spm_set_power_control(pwrctrl); in spm_mcdi_prepare_for_mtcmos() 462 spm_set_wakeup_event(pwrctrl); in spm_mcdi_prepare_for_mtcmos() 463 spm_kick_pcm_to_run(pwrctrl); in spm_mcdi_prepare_for_mtcmos() 471 struct pwr_ctrl *pwrctrl = spm_mcdi.pwrctrl; in spm_mcdi_prepare_for_off_state() local 477 set_pwrctrl_pcm_flags(pwrctrl, 0); in spm_mcdi_prepare_for_off_state() 480 spm_set_power_control(pwrctrl); in spm_mcdi_prepare_for_off_state() 481 spm_set_wakeup_event(pwrctrl); in spm_mcdi_prepare_for_off_state() [all …]
|
D | spm_hotplug.c | 202 .pwrctrl = &hotplug_ctrl, 208 struct pwr_ctrl *pwrctrl = spm_hotplug.pwrctrl; in spm_go_to_hotplug() local 210 set_pwrctrl_pcm_flags(pwrctrl, 0); in spm_go_to_hotplug() 213 spm_set_power_control(pwrctrl); in spm_go_to_hotplug() 214 spm_set_wakeup_event(pwrctrl); in spm_go_to_hotplug() 215 spm_kick_pcm_to_run(pwrctrl); in spm_go_to_hotplug()
|
D | spm.h | 275 struct pwr_ctrl *pwrctrl; member 291 static inline void set_pwrctrl_pcm_flags(struct pwr_ctrl *pwrctrl, in set_pwrctrl_pcm_flags() argument 296 if (pwrctrl->pcm_flags_cust == 0) in set_pwrctrl_pcm_flags() 297 pwrctrl->pcm_flags = flags; in set_pwrctrl_pcm_flags() 299 pwrctrl->pcm_flags = pwrctrl->pcm_flags_cust; in set_pwrctrl_pcm_flags() 302 static inline void set_pwrctrl_pcm_data(struct pwr_ctrl *pwrctrl, in set_pwrctrl_pcm_data() argument 305 pwrctrl->pcm_reserve = data; in set_pwrctrl_pcm_data() 311 void spm_set_power_control(const struct pwr_ctrl *pwrctrl); 312 void spm_set_wakeup_event(const struct pwr_ctrl *pwrctrl); 316 void spm_kick_pcm_to_run(struct pwr_ctrl *pwrctrl);
|