Home
last modified time | relevance | path

Searched refs:wakesta (Results 1 – 11 of 11) sorted by relevance

/trusted-firmware-a-3.4.0/plat/mediatek/mt8195/drivers/spm/
Dmt_spm_internal.c71 const struct wake_status *wakesta) in __spm_output_wake_reason() argument
77 if (wakesta == NULL) { in __spm_output_wake_reason()
81 spm_26m_sta = ((wakesta->debug_flag & SPM_DBG_DEBUG_IDX_26M_SLEEP) == 0U) ? "on" : "off"; in __spm_output_wake_reason()
83 if (wakesta->abort != 0U) { in __spm_output_wake_reason()
85 wakesta->abort, wakesta->timer_out, spm_26m_sta); in __spm_output_wake_reason()
86 } else if (wakesta->r12 == SPM_WAKEUP_REASON_MISSING) { in __spm_output_wake_reason()
88 wakesta->timer_out, spm_26m_sta); in __spm_output_wake_reason()
91 if ((wakesta->r12 & (1U << i)) != 0U) { in __spm_output_wake_reason()
93 wakeup_src_str[i], wakesta->timer_out, spm_26m_sta); in __spm_output_wake_reason()
101 wakesta->r12, wakesta->r12_ext, wakesta->r13, wakesta->debug_flag, in __spm_output_wake_reason()
[all …]
Dmt_spm_internal.h538 extern void __spm_get_wakeup_status(struct wake_status *wakesta,
542 __spm_output_wake_reason(int state_id, const struct wake_status *wakesta);
/trusted-firmware-a-3.4.0/plat/mediatek/mt8192/drivers/spm/
Dmt_spm_internal.c70 const struct wake_status *wakesta) in __spm_output_wake_reason() argument
75 if (wakesta == NULL) { in __spm_output_wake_reason()
79 if (wakesta->abort != 0U) { in __spm_output_wake_reason()
81 wakesta->abort, wakesta->timer_out); in __spm_output_wake_reason()
84 if ((wakesta->r12 & (1U << i)) != 0U) { in __spm_output_wake_reason()
86 wakeup_src_str[i], wakesta->timer_out); in __spm_output_wake_reason()
94 wakesta->r12, wakesta->r12_ext, wakesta->r13, wakesta->debug_flag, in __spm_output_wake_reason()
95 wakesta->debug_flag1); in __spm_output_wake_reason()
97 wakesta->raw_sta, wakesta->md32pcm_wakeup_sta, in __spm_output_wake_reason()
98 wakesta->md32pcm_event_sta, wakesta->idle_sta, in __spm_output_wake_reason()
[all …]
Dmt_spm_internal.h592 extern void __spm_get_wakeup_status(struct wake_status *wakesta,
596 __spm_output_wake_reason(int state_id, const struct wake_status *wakesta);
/trusted-firmware-a-3.4.0/plat/mediatek/mt8186/drivers/spm/
Dmt_spm_internal.c62 wake_reason_t __spm_output_wake_reason(int state_id, const struct wake_status *wakesta) in __spm_output_wake_reason() argument
67 if (wakesta != NULL) { in __spm_output_wake_reason()
68 if (wakesta->abort != 0U) { in __spm_output_wake_reason()
70 wakesta->abort, wakesta->timer_out); in __spm_output_wake_reason()
73 if ((wakesta->r12 & BIT(i)) != 0U) { in __spm_output_wake_reason()
75 wakeup_src_str[i], wakesta->timer_out); in __spm_output_wake_reason()
83 wakesta->r12, wakesta->r12_ext, wakesta->r13, wakesta->debug_flag, in __spm_output_wake_reason()
84 wakesta->debug_flag1); in __spm_output_wake_reason()
86 wakesta->raw_sta, wakesta->md32pcm_wakeup_sta, in __spm_output_wake_reason()
87 wakesta->md32pcm_event_sta, wakesta->idle_sta, in __spm_output_wake_reason()
[all …]
Dmt_spm_internal.h575 extern void __spm_get_wakeup_status(struct wake_status *wakesta,
579 const struct wake_status *wakesta);
/trusted-firmware-a-3.4.0/plat/mediatek/mt8183/drivers/spm/
Dspm.c276 void spm_get_wakeup_status(struct wake_status *wakesta) in spm_get_wakeup_status() argument
278 wakesta->assert_pc = mmio_read_32(PCM_REG_DATA_INI); in spm_get_wakeup_status()
279 wakesta->r12 = mmio_read_32(SPM_SW_RSV_0); in spm_get_wakeup_status()
280 wakesta->r12_ext = mmio_read_32(PCM_REG12_EXT_DATA); in spm_get_wakeup_status()
281 wakesta->raw_sta = mmio_read_32(SPM_WAKEUP_STA); in spm_get_wakeup_status()
282 wakesta->raw_ext_sta = mmio_read_32(SPM_WAKEUP_EXT_STA); in spm_get_wakeup_status()
283 wakesta->wake_misc = mmio_read_32(SPM_BSI_D0_SR); in spm_get_wakeup_status()
284 wakesta->timer_out = mmio_read_32(SPM_BSI_D1_SR); in spm_get_wakeup_status()
285 wakesta->r13 = mmio_read_32(PCM_REG13_DATA); in spm_get_wakeup_status()
286 wakesta->idle_sta = mmio_read_32(SUBSYS_IDLE_STA); in spm_get_wakeup_status()
[all …]
Dspm.h2542 extern void spm_get_wakeup_status(struct wake_status *wakesta);
2544 extern void spm_output_wake_reason(struct wake_status *wakesta,
/trusted-firmware-a-3.4.0/plat/mediatek/mt8173/drivers/spm/
Dspm.c208 void spm_get_wakeup_status(struct wake_status *wakesta) in spm_get_wakeup_status() argument
210 wakesta->assert_pc = mmio_read_32(SPM_PCM_REG_DATA_INI); in spm_get_wakeup_status()
211 wakesta->r12 = mmio_read_32(SPM_PCM_REG12_DATA); in spm_get_wakeup_status()
212 wakesta->raw_sta = mmio_read_32(SPM_SLEEP_ISR_RAW_STA); in spm_get_wakeup_status()
213 wakesta->wake_misc = mmio_read_32(SPM_SLEEP_WAKEUP_MISC); in spm_get_wakeup_status()
214 wakesta->timer_out = mmio_read_32(SPM_PCM_TIMER_OUT); in spm_get_wakeup_status()
215 wakesta->r13 = mmio_read_32(SPM_PCM_REG13_DATA); in spm_get_wakeup_status()
216 wakesta->idle_sta = mmio_read_32(SPM_SLEEP_SUBSYS_IDLE_STA); in spm_get_wakeup_status()
217 wakesta->debug_flag = mmio_read_32(SPM_PCM_PASR_DPD_3); in spm_get_wakeup_status()
218 wakesta->event_reg = mmio_read_32(SPM_PCM_EVENT_REG_STA); in spm_get_wakeup_status()
[all …]
Dspm_suspend.c272 struct wake_status wakesta; in go_to_sleep_after_wfi() local
275 spm_get_wakeup_status(&wakesta); in go_to_sleep_after_wfi()
277 last_wr = spm_output_wake_reason(&wakesta); in go_to_sleep_after_wfi()
Dspm.h314 void spm_get_wakeup_status(struct wake_status *wakesta);
318 enum wake_reason_t spm_output_wake_reason(struct wake_status *wakesta);