Lines Matching refs:timer_base
51 static void __iomem *timer_base; variable
67 return ~readl(timer_base + TIMER0_VAL_OFF); in orion_read_sched_clock()
96 writel(delta, timer_base + TIMER1_VAL_OFF); in orion_clkevt_next_event()
101 u = readl(timer_base + TIMER_CTRL_OFF); in orion_clkevt_next_event()
103 writel(u, timer_base + TIMER_CTRL_OFF); in orion_clkevt_next_event()
118 u = readl(timer_base + TIMER_CTRL_OFF); in orion_clkevt_shutdown()
119 writel(u & ~TIMER1_EN, timer_base + TIMER_CTRL_OFF); in orion_clkevt_shutdown()
141 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD_OFF); in orion_clkevt_set_periodic()
142 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL_OFF); in orion_clkevt_set_periodic()
149 u = readl(timer_base + TIMER_CTRL_OFF); in orion_clkevt_set_periodic()
150 writel(u | TIMER1_EN | TIMER1_RELOAD_EN, timer_base + TIMER_CTRL_OFF); in orion_clkevt_set_periodic()
183 timer_base = _timer_base; in orion_time_set_base()
188 return ~readl(timer_base + TIMER0_VAL_OFF); in orion_delay_timer_read()
221 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in orion_time_init()
222 writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); in orion_time_init()
225 u = readl(timer_base + TIMER_CTRL_OFF); in orion_time_init()
226 writel(u | TIMER0_EN | TIMER0_RELOAD_EN, timer_base + TIMER_CTRL_OFF); in orion_time_init()
227 clocksource_mmio_init(timer_base + TIMER0_VAL_OFF, "orion_clocksource", in orion_time_init()