| /rk3399_ARM-atf/plat/mediatek/mt8195/drivers/spm/ |
| H A D | mt_spm_internal.c | 71 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 …]
|
| H A D | mt_spm_internal.h | 538 extern void __spm_get_wakeup_status(struct wake_status *wakesta, 542 __spm_output_wake_reason(int state_id, const struct wake_status *wakesta);
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8188/ |
| H A D | mt_spm_internal.c | 25 wake_reason_t __spm_output_wake_reason(const struct wake_status *wakesta) in __spm_output_wake_reason() argument 30 if (wakesta == NULL) { in __spm_output_wake_reason() 34 if (wakesta->is_abort != 0U) { in __spm_output_wake_reason() 36 wakesta->tr.comm.r12, in __spm_output_wake_reason() 37 wakesta->tr.comm.debug_flag, wakesta->tr.comm.debug_flag1); in __spm_output_wake_reason() 39 wakesta->sw_flag0, wakesta->sw_flag1, in __spm_output_wake_reason() 40 wakesta->tr.comm.b_sw_flag0, wakesta->tr.comm.b_sw_flag1); in __spm_output_wake_reason() 43 if ((wakesta->tr.comm.r12 & R12_PCM_TIMER) != 0U) { in __spm_output_wake_reason() 45 if ((wakesta->wake_misc & WAKE_MISC_PCM_TIMER_EVENT) != 0U) { in __spm_output_wake_reason() 51 wakesta->tr.comm.r12, wakesta->r12_ext, wakesta->tr.comm.r13, wakesta->tr.comm.debug_flag, in __spm_output_wake_reason() [all …]
|
| H A D | mt_spm_internal.h | 657 void __spm_get_wakeup_status(struct wake_status *wakesta, unsigned int ext_status); 659 wake_reason_t __spm_output_wake_reason(const struct wake_status *wakesta);
|
| /rk3399_ARM-atf/plat/mediatek/mt8192/drivers/spm/ |
| H A D | mt_spm_internal.c | 70 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 …]
|
| H A D | mt_spm_internal.h | 592 extern void __spm_get_wakeup_status(struct wake_status *wakesta, 596 __spm_output_wake_reason(int state_id, const struct wake_status *wakesta);
|
| /rk3399_ARM-atf/plat/mediatek/mt8186/drivers/spm/ |
| H A D | mt_spm_internal.c | 62 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 …]
|
| H A D | mt_spm_internal.h | 575 extern void __spm_get_wakeup_status(struct wake_status *wakesta, 579 const struct wake_status *wakesta);
|
| /rk3399_ARM-atf/plat/mediatek/mt8183/drivers/spm/ |
| H A D | spm.c | 276 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 …]
|
| H A D | spm.h | 2542 extern void spm_get_wakeup_status(struct wake_status *wakesta); 2544 extern void spm_output_wake_reason(struct wake_status *wakesta,
|
| /rk3399_ARM-atf/plat/mediatek/mt8173/drivers/spm/ |
| H A D | spm.c | 208 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 …]
|
| H A D | spm_suspend.c | 272 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()
|
| H A D | spm.h | 314 void spm_get_wakeup_status(struct wake_status *wakesta); 318 enum wake_reason_t spm_output_wake_reason(struct wake_status *wakesta);
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/ |
| H A D | mt_spm_internal.c | 34 wake_reason_t __spm_output_wake_reason(const struct wake_status *wakesta) in __spm_output_wake_reason() argument 39 if (!wakesta) in __spm_output_wake_reason() 42 if (wakesta->is_abort) { in __spm_output_wake_reason() 43 INFO("SPM EARLY WAKE r13 = 0x%x, ", wakesta->tr.comm.r13); in __spm_output_wake_reason() 45 wakesta->tr.comm.debug_flag, wakesta->tr.comm.debug_flag1, in __spm_output_wake_reason() 46 wakesta->sw_flag0, wakesta->sw_flag1, in __spm_output_wake_reason() 47 wakesta->tr.comm.b_sw_flag0, wakesta->tr.comm.b_sw_flag1); in __spm_output_wake_reason() 53 if (wakesta->tr.comm.r12 & R12_PCM_TIMER_B) { in __spm_output_wake_reason() 54 if (wakesta->wake_misc & WAKE_MISC_PCM_TIMER_EVENT) in __spm_output_wake_reason() 58 if (wakesta->tr.comm.r12 & R12_TWAM_PMSR_DVFSRC) { in __spm_output_wake_reason() [all …]
|
| H A D | mt_spm_internal.h | 802 void __spm_get_wakeup_status(struct wake_status *wakesta, uint32_t ext_status); 804 wake_reason_t __spm_output_wake_reason(const struct wake_status *wakesta);
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8196/ |
| H A D | mt_spm_internal.c | 30 wake_reason_t __spm_output_wake_reason(const struct wake_status *wakesta) in __spm_output_wake_reason() argument 35 if (!wakesta) in __spm_output_wake_reason() 38 if (wakesta->is_abort) { in __spm_output_wake_reason() 39 INFO("SPM EARLY WAKE r13 = 0x%x, ", wakesta->tr.comm.r13); in __spm_output_wake_reason() 45 if (wakesta->tr.comm.r12 & R12_PCM_TIMER_B) { in __spm_output_wake_reason() 47 if (wakesta->wake_misc & WAKE_MISC_PCM_TIMER_EVENT) in __spm_output_wake_reason() 52 if (wakesta->tr.comm.r12 & (1U << i)) in __spm_output_wake_reason() 691 void __spm_get_wakeup_status(struct wake_status *wakesta, in __spm_get_wakeup_status() argument 695 wakesta->tr.comm.r12 = mmio_read_32(SPM_BK_WAKE_EVENT); in __spm_get_wakeup_status() 696 wakesta->r12_ext = mmio_read_32(SPM_WAKEUP_EXT_STA); in __spm_get_wakeup_status() [all …]
|
| H A D | mt_spm_internal.h | 1085 void __spm_get_wakeup_status(struct wake_status *wakesta, 1088 wake_reason_t __spm_output_wake_reason(const struct wake_status *wakesta);
|