Lines Matching refs:wakesta
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()
287 wakesta->req_sta = mmio_read_32(SRC_REQ_STA); in spm_get_wakeup_status()
288 wakesta->sw_flag = mmio_read_32(SPM_SW_FLAG); in spm_get_wakeup_status()
289 wakesta->sw_flag1 = mmio_read_32(SPM_SW_RSV_2); in spm_get_wakeup_status()
290 wakesta->r15 = mmio_read_32(PCM_REG15_DATA); in spm_get_wakeup_status()
291 wakesta->debug_flag = mmio_read_32(SPM_SW_DEBUG); in spm_get_wakeup_status()
292 wakesta->debug_flag1 = mmio_read_32(WDT_LATCH_SPARE0_FIX); in spm_get_wakeup_status()
293 wakesta->event_reg = mmio_read_32(SPM_BSI_D2_SR); in spm_get_wakeup_status()
294 wakesta->isr = mmio_read_32(SPM_IRQ_STA); in spm_get_wakeup_status()
309 void spm_output_wake_reason(struct wake_status *wakesta, const char *scenario) in spm_output_wake_reason() argument
313 if (wakesta->assert_pc != 0) { in spm_output_wake_reason()
315 scenario, wakesta->assert_pc, mmio_read_32(ULPOSC_CON)); in spm_output_wake_reason()
320 if (wakesta->r12 & (1U << i)) { in spm_output_wake_reason()
322 scenario, wakeup_src_str[i], wakesta->timer_out); in spm_output_wake_reason()
329 wakesta->r15, wakesta->r13, wakesta->debug_flag, in spm_output_wake_reason()
330 wakesta->debug_flag1); in spm_output_wake_reason()
332 wakesta->sw_flag, wakesta->sw_flag1, wakesta->r12, in spm_output_wake_reason()
333 wakesta->r12_ext); in spm_output_wake_reason()
335 wakesta->idle_sta, wakesta->req_sta, wakesta->event_reg); in spm_output_wake_reason()
337 wakesta->isr, wakesta->raw_sta, wakesta->raw_ext_sta); in spm_output_wake_reason()
338 INFO("wake_misc = 0x%x\n", wakesta->wake_misc); in spm_output_wake_reason()