Lines Matching refs:timer_base
37 static void __iomem *timer_base; variable
44 return ~readl(timer_base + TIMER0_VAL); in orion_read_sched_clock()
56 writel(delta, timer_base + TIMER1_VAL); in orion_clkevt_next_event()
57 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_next_event()
66 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_shutdown()
74 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD); in orion_clkevt_set_periodic()
75 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL); in orion_clkevt_set_periodic()
76 atomic_io_modify(timer_base + TIMER_CTRL, in orion_clkevt_set_periodic()
113 timer_base = of_iomap(np, 0); in orion_timer_init()
114 if (!timer_base) in orion_timer_init()
128 writel(~0, timer_base + TIMER0_VAL); in orion_timer_init()
129 writel(~0, timer_base + TIMER0_RELOAD); in orion_timer_init()
130 atomic_io_modify(timer_base + TIMER_CTRL, in orion_timer_init()
133 clocksource_mmio_init(timer_base + TIMER0_VAL, "orion_clocksource", in orion_timer_init()