Lines Matching refs:au_readl
129 if (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_M20) { in counter0_irq()
135 pc0 = au_readl(SYS_TOYREAD); in counter0_irq()
174 pc0 = au_readl(SYS_TOYREAD); in wakeup_counter0_adjust()
201 pc0 = au_readl(SYS_TOYREAD); in wakeup_counter0_set()
241 counter = au_readl(SYS_COUNTER_CNTRL); in cal_r4koff()
247 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T1S); in cal_r4koff()
250 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T1S); in cal_r4koff()
252 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S); in cal_r4koff()
254 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S); in cal_r4koff()
260 start = au_readl(SYS_RTCREAD); in cal_r4koff()
264 while (au_readl(SYS_RTCREAD) < start); in cal_r4koff()
274 while (end > au_readl(SYS_RTCREAD)); in cal_r4koff()
280 cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) * in cal_r4koff()
290 cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) * AU1000_SRC_CLK; in cal_r4koff()
296 set_au1x00_uart_baud_base(cpu_speed / (2 * ((int)(au_readl(SYS_POWERCTRL)&0x03) + 2) * 16)); in cal_r4koff()
371 pc0 = au_readl(SYS_TOYREAD); in do_fast_pm_gettimeoffset()
436 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C0S); in au1xxx_timer_setup()
438 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C0S); in au1xxx_timer_setup()
440 au_writel(au_readl(SYS_WAKEMSK) | (1<<8), SYS_WAKEMSK); in au1xxx_timer_setup()
443 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_M20); in au1xxx_timer_setup()
446 last_pc0 = last_match20 = au_readl(SYS_TOYREAD); in au1xxx_timer_setup()
449 while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_M20); in au1xxx_timer_setup()