void spm_dpidle_before_wfi(void) { if (TRUE == mt_dpidle_chk_golden) { //FIXME: #if 0 mt_power_gs_dump_dpidle(); #endif } bus_dcm_enable(); clkmgr_faudintbus_pll2sq(); //clkmux_sel(MT_MUX_AUDINTBUS, 0, "Deepidle"); //select 26M #ifdef CONFIG_SMP dpidle_timer_left2 = localtimer_get_counter(); if( (int)dpidle_timer_left2 <=0 ) gpt_set_cmp(idle_gpt, 1);//Trigger GPT4 Timerout imediately else gpt_set_cmp(idle_gpt, dpidle_timer_left2); start_gpt(idle_gpt); #else gpt_get_cnt(idle_gpt, &dpidle_timer_left2); #endif }
static int dump_dpidle_read(char *buf, char **start, off_t off, int count, int *eof, void *data) { int len = 0; char *p = buf; p += sprintf(p, "mt_power_gs : dpidle\n"); mt_power_gs_dump_dpidle(); len = p - buf; return len; }
void spm_dpidle_before_wfi(void) { if (TRUE == mt_dpidle_chk_golden) { mt_power_gs_dump_dpidle(); } bus_dcm_enable(); faudintbus_pll2sq(); #if 0 dpidle_timer_left = localtimer_get_counter(); gpt_set_cmp(GPT4, dpidle_timer_left); #else dpidle_timer_left2 = localtimer_get_counter(); gpt_set_cmp(GPT4, dpidle_timer_left2); #endif start_gpt(GPT4); }
static int dump_dpidle_read(struct seq_file *m, void *v) { seq_printf(m, "mt_power_gs : dpidle\n"); mt_power_gs_dump_dpidle(); return 0; }