Home
last modified time | relevance | path

Searched refs:TIMER_CNTVAL_REG (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/clocksource/
H A Dtimer-sun4i.c38 #define TIMER_CNTVAL_REG(val) (0x10 * (val) + 0x18) macro
50 u32 old = readl(base + TIMER_CNTVAL_REG(1)); in sun4i_clkevt_sync()
52 while ((old - readl(base + TIMER_CNTVAL_REG(1))) < TIMER_SYNC_TICKS) in sun4i_clkevt_sync()
165 return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1)); in sun4i_timer_sched_read()
193 ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1), in sun4i_timer_init()