| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8188/ |
| H A D | mt_spm_internal.c | 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() 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() 51 wakesta->tr.comm.r12, wakesta->r12_ext, wakesta->tr.comm.r13, wakesta->tr.comm.debug_flag, in __spm_output_wake_reason() 52 wakesta->tr.comm.debug_flag1); in __spm_output_wake_reason() 54 wakesta->tr.comm.raw_sta, wakesta->md32pcm_wakeup_sta, in __spm_output_wake_reason() 58 wakesta->tr.comm.req_sta0, wakesta->tr.comm.req_sta1, wakesta->tr.comm.req_sta2, in __spm_output_wake_reason() 59 wakesta->tr.comm.req_sta3, wakesta->tr.comm.req_sta4, wakesta->isr); in __spm_output_wake_reason() 66 wakesta->tr.comm.b_sw_flag0, wakesta->tr.comm.b_sw_flag1, wakesta->src_req); in __spm_output_wake_reason() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/ |
| H A D | mt_spm_conservation.c | 70 MT_SPM_TRACE_LP_RINGBUF(&trace->comm, spm_conservation_trace_comm_sz); in spm_conservation_trace_lp() 141 spm_wakesta.tr.comm.resumetime = 0; in go_to_spm_after_wfi() 142 spm_wakesta.tr.comm.times_h = spm_wakesta.tr.comm.times_l = 0; in go_to_spm_after_wfi() 146 spm_wakesta.tr.comm.times_h = (ktime >> 32); in go_to_spm_after_wfi() 147 spm_wakesta.tr.comm.times_l = (ktime & (uint32_t)-1); in go_to_spm_after_wfi() 160 if (spm_wakesta.tr.comm.r12 & R12_SYS_CIRQ_IRQ_B) in go_to_spm_after_wfi() 163 __func__, __LINE__, spm_wakesta.tr.comm.r12, in go_to_spm_after_wfi() 172 uint64_t t_spm = spm_wakesta.tr.comm.timer_out >> 5; in go_to_spm_after_wfi() 174 spm_wakesta.tr.comm.resumetime = in go_to_spm_after_wfi() 178 spm_wakesta.tr.comm.resumetime)) { in go_to_spm_after_wfi()
|
| H A D | mt_spm_internal.c | 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() 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() 58 if (wakesta->tr.comm.r12 & R12_TWAM_PMSR_DVFSRC) { in __spm_output_wake_reason() 82 if (wakesta->tr.comm.r12 & (1U << i)) in __spm_output_wake_reason() 672 wakesta->tr.comm.r12 = mmio_read_32(SPM_BK_WAKE_EVENT); /* backup of PCM_REG12_DATA */ in __spm_get_wakeup_status() 674 wakesta->tr.comm.raw_sta = mmio_read_32(SPM_WAKEUP_STA); in __spm_get_wakeup_status() 681 wakesta->tr.comm.timer_out = mmio_read_32(SPM_BK_PCM_TIMER); /* backup of PCM_TIMER_OUT */ in __spm_get_wakeup_status() 684 wakesta->tr.comm.r13 = mmio_read_32(MD32PCM_SCU_STA0); in __spm_get_wakeup_status() [all …]
|
| H A D | mt_spm_suspend.c | 496 if (st->tr.comm.r12 & R12_AP2AP_PEER_WAKEUP_B) in mt_spm_suspend_resume() 498 if (st->tr.comm.r12 & R12_CCIF0_EVENT_B) in mt_spm_suspend_resume() 500 if (st->tr.comm.r12 & R12_CCIF1_EVENT_B) in mt_spm_suspend_resume()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8196/constraints/ |
| H A D | mt_spm_rc_api.c | 24 wakeup->tr.comm.r12, in mt_spm_irq_remain_dump() 39 if ((wakeup->tr.comm.raw_sta & irqs->wakeupsrc[idx]) || in do_irqs_delivery() 40 (wakeup->tr.comm.r12 & irqs->wakeupsrc[idx])) { in do_irqs_delivery()
|
| H A D | mt_spm_rc_bus26m.c | 227 waken->tr.comm.timer_out : 0; in spm_reset_rc_bus26m()
|
| H A D | mt_spm_rc_syspll.c | 233 waken->tr.comm.timer_out : 0; in spm_reset_rc_syspll()
|
| H A D | mt_spm_rc_vcore.c | 225 waken->tr.comm.timer_out : 0; in spm_reset_rc_vcore()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8196/ |
| H A D | mt_spm_internal.c | 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() 52 if (wakesta->tr.comm.r12 & (1U << i)) in __spm_output_wake_reason() 695 wakesta->tr.comm.r12 = mmio_read_32(SPM_BK_WAKE_EVENT); in __spm_get_wakeup_status() 697 wakesta->tr.comm.raw_sta = mmio_read_32(SPM_WAKEUP_STA); in __spm_get_wakeup_status() 704 wakesta->tr.comm.timer_out = mmio_read_32(SPM_BK_PCM_TIMER); in __spm_get_wakeup_status() 705 wakesta->tr.comm.r13 = mmio_read_32(MD32PCM_SCU_STA0); in __spm_get_wakeup_status() 706 wakesta->tr.comm.req_sta0 = mmio_read_32(SPM_REQ_STA_0); in __spm_get_wakeup_status() 707 wakesta->tr.comm.req_sta1 = mmio_read_32(SPM_REQ_STA_1); in __spm_get_wakeup_status() 708 wakesta->tr.comm.req_sta2 = mmio_read_32(SPM_REQ_STA_2); in __spm_get_wakeup_status() [all …]
|
| H A D | mt_spm_conservation.c | 81 spm_wakesta.tr.comm.resumetime = 0; in go_to_spm_after_wfi() 82 spm_wakesta.tr.comm.times_h = spm_wakesta.tr.comm.times_l = 0; in go_to_spm_after_wfi()
|
| H A D | mt_spm_suspend.c | 692 if (st->tr.comm.r12 & R12_AP2AP_PEER_WAKEUP_B) in mt_spm_suspend_resume() 694 if (st->tr.comm.r12 & R12_CCIF0_EVENT_B) in mt_spm_suspend_resume() 696 if (st->tr.comm.r12 & R12_CCIF1_EVENT_B) in mt_spm_suspend_resume()
|
| /rk3399_ARM-atf/plat/mediatek/mt8195/drivers/spm/ |
| H A D | mt_spm_internal.c | 385 wakesta->tr.comm.r12 = mmio_read_32(SPM_BK_WAKE_EVENT); in __spm_get_wakeup_status() 386 wakesta->tr.comm.timer_out = mmio_read_32(SPM_BK_PCM_TIMER); in __spm_get_wakeup_status() 387 wakesta->tr.comm.r13 = mmio_read_32(PCM_REG13_DATA); in __spm_get_wakeup_status() 388 wakesta->tr.comm.req_sta0 = mmio_read_32(SRC_REQ_STA_0); in __spm_get_wakeup_status() 389 wakesta->tr.comm.req_sta1 = mmio_read_32(SRC_REQ_STA_1); in __spm_get_wakeup_status() 390 wakesta->tr.comm.req_sta2 = mmio_read_32(SRC_REQ_STA_2); in __spm_get_wakeup_status() 391 wakesta->tr.comm.req_sta3 = mmio_read_32(SRC_REQ_STA_3); in __spm_get_wakeup_status() 392 wakesta->tr.comm.req_sta4 = mmio_read_32(SRC_REQ_STA_4); in __spm_get_wakeup_status() 393 wakesta->tr.comm.debug_flag = mmio_read_32(PCM_WDT_LATCH_SPARE_0); in __spm_get_wakeup_status() 394 wakesta->tr.comm.debug_flag1 = mmio_read_32(PCM_WDT_LATCH_SPARE_1); in __spm_get_wakeup_status() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/mt8192/drivers/spm/constraints/ |
| H A D | mt_spm_rc_bus26m.c | 100 wakeup->tr.comm.r12, wakeup->md32pcm_wakeup_sta, in mt_spm_irq_remain_dump() 101 wakeup->tr.comm.debug_flag, wakeup->tr.comm.b_sw_flag0, in mt_spm_irq_remain_dump() 102 wakeup->tr.comm.b_sw_flag1); in mt_spm_irq_remain_dump() 122 if (((wakeup->tr.comm.r12 & irqs->wakeupsrc[idx]) != 0U) || in do_irqs_delivery()
|
| /rk3399_ARM-atf/plat/mediatek/mt8195/drivers/spm/constraints/ |
| H A D | mt_spm_rc_bus26m.c | 110 wakeup->tr.comm.r12, wakeup->md32pcm_wakeup_sta, in mt_spm_irq_remain_dump() 111 wakeup->tr.comm.debug_flag, wakeup->tr.comm.b_sw_flag0, in mt_spm_irq_remain_dump() 112 wakeup->tr.comm.b_sw_flag1); in mt_spm_irq_remain_dump() 132 if (((wakeup->tr.comm.r12 & irqs->wakeupsrc[idx]) != 0U) || in do_irqs_delivery()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/constraints/ |
| H A D | mt_spm_rc_api.c | 67 wakeup->tr.comm.r12, in mt_spm_irq_remain_dump() 81 if ((wakeup->tr.comm.raw_sta & irqs->wakeupsrc[idx]) || in do_irqs_delivery() 82 (wakeup->tr.comm.r12 & irqs->wakeupsrc[idx])) { in do_irqs_delivery()
|
| H A D | mt_spm_rc_syspll.c | 223 status.residency += waken ? waken->tr.comm.timer_out : in spm_reset_rc_syspll()
|
| H A D | mt_spm_rc_vcore.c | 249 status.residency += waken ? waken->tr.comm.timer_out : in spm_reset_rc_vcore()
|
| /rk3399_ARM-atf/plat/mediatek/mt8192/drivers/spm/ |
| H A D | mt_spm_internal.c | 423 wakesta->tr.comm.r12 = mmio_read_32(SPM_BK_WAKE_EVENT); in __spm_get_wakeup_status() 424 wakesta->tr.comm.timer_out = mmio_read_32(SPM_BK_PCM_TIMER); in __spm_get_wakeup_status() 425 wakesta->tr.comm.r13 = mmio_read_32(PCM_REG13_DATA); in __spm_get_wakeup_status() 426 wakesta->tr.comm.req_sta0 = mmio_read_32(SRC_REQ_STA_0); in __spm_get_wakeup_status() 427 wakesta->tr.comm.req_sta1 = mmio_read_32(SRC_REQ_STA_1); in __spm_get_wakeup_status() 428 wakesta->tr.comm.req_sta2 = mmio_read_32(SRC_REQ_STA_2); in __spm_get_wakeup_status() 429 wakesta->tr.comm.req_sta3 = mmio_read_32(SRC_REQ_STA_3); in __spm_get_wakeup_status() 430 wakesta->tr.comm.req_sta4 = mmio_read_32(SRC_REQ_STA_4); in __spm_get_wakeup_status() 431 wakesta->tr.comm.debug_flag = mmio_read_32(PCM_WDT_LATCH_SPARE_0); in __spm_get_wakeup_status() 432 wakesta->tr.comm.debug_flag1 = mmio_read_32(PCM_WDT_LATCH_SPARE_1); in __spm_get_wakeup_status() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/mt8186/drivers/spm/constraints/ |
| H A D | mt_spm_rc_bus26m.c | 103 wakeup->tr.comm.r12, wakeup->md32pcm_wakeup_sta, in mt_spm_irq_remain_dump() 104 wakeup->tr.comm.debug_flag, wakeup->tr.comm.b_sw_flag0, in mt_spm_irq_remain_dump() 105 wakeup->tr.comm.b_sw_flag1); in mt_spm_irq_remain_dump() 125 if (((wakeup->tr.comm.r12 & irqs->wakeupsrc[idx]) != 0U) || in do_irqs_delivery()
|
| /rk3399_ARM-atf/plat/mediatek/mt8186/drivers/spm/ |
| H A D | mt_spm_internal.c | 457 wakesta->tr.comm.r12 = mmio_read_32(SPM_BK_WAKE_EVENT); in __spm_get_wakeup_status() 458 wakesta->tr.comm.timer_out = mmio_read_32(SPM_BK_PCM_TIMER); in __spm_get_wakeup_status() 459 wakesta->tr.comm.r13 = mmio_read_32(PCM_REG13_DATA); in __spm_get_wakeup_status() 460 wakesta->tr.comm.req_sta0 = mmio_read_32(SRC_REQ_STA_0); in __spm_get_wakeup_status() 461 wakesta->tr.comm.req_sta1 = mmio_read_32(SRC_REQ_STA_1); in __spm_get_wakeup_status() 462 wakesta->tr.comm.req_sta2 = mmio_read_32(SRC_REQ_STA_2); in __spm_get_wakeup_status() 463 wakesta->tr.comm.req_sta3 = mmio_read_32(SRC_REQ_STA_3); in __spm_get_wakeup_status() 464 wakesta->tr.comm.req_sta4 = mmio_read_32(SRC_REQ_STA_4); in __spm_get_wakeup_status() 466 wakesta->tr.comm.debug_flag = mmio_read_32(PCM_WDT_LATCH_SPARE_0); in __spm_get_wakeup_status() 467 wakesta->tr.comm.debug_flag1 = mmio_read_32(PCM_WDT_LATCH_SPARE_1); in __spm_get_wakeup_status() [all …]
|
| H A D | mt_spm_conservation.c | 80 spm_wakesta.tr.comm.resumetime = 0; in go_to_spm_after_wfi() 81 spm_wakesta.tr.comm.times_h = spm_wakesta.tr.comm.times_l = 0; in go_to_spm_after_wfi()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8188/constraints/ |
| H A D | mt_spm_rc_bus26m.c | 121 wakeup->tr.comm.r12, in mt_spm_irq_remain_dump() 123 wakeup->tr.comm.debug_flag, in mt_spm_irq_remain_dump() 124 wakeup->tr.comm.b_sw_flag0, in mt_spm_irq_remain_dump() 125 wakeup->tr.comm.b_sw_flag1, in mt_spm_irq_remain_dump() 143 if (((wakeup->tr.comm.r12 & irqs->wakeupsrc[idx]) != 0U) || in do_irqs_delivery() 144 ((wakeup->tr.comm.raw_sta & irqs->wakeupsrc[idx]) != 0U)) { in do_irqs_delivery() 368 status.residency += (waken != NULL) ? waken->tr.comm.timer_out : 0; in spm_reset_rc_bus26m()
|
| H A D | mt_spm_rc_dram.c | 290 status.residency += (waken != NULL) ? waken->tr.comm.timer_out : 0; in spm_reset_rc_dram()
|
| /rk3399_ARM-atf/fdts/ |
| H A D | stmm_template.dts | 105 description = "ns-comm";
|
| /rk3399_ARM-atf/plat/arm/board/neoverse_rd/platform/rdn2/fdts/ |
| H A D | rdn2_stmm_sel0_manifest.dts | 127 description = "ns-comm";
|