Lines Matching refs:timer_base
76 static void __iomem *timer_base, *local_base; variable
96 return ~readl(timer_base + TIMER0_VAL_OFF); in armada_370_xp_read_sched_clock()
213 timer0_ctrl_reg = readl(timer_base + TIMER_CTRL_OFF); in armada_370_xp_timer_suspend()
220 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in armada_370_xp_timer_resume()
221 writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); in armada_370_xp_timer_resume()
222 writel(timer0_ctrl_reg, timer_base + TIMER_CTRL_OFF); in armada_370_xp_timer_resume()
233 return ~readl(timer_base + TIMER0_VAL_OFF); in armada_370_delay_timer_read()
245 timer_base = of_iomap(np, 0); in armada_370_xp_timer_common_init()
246 if (!timer_base) { in armada_370_xp_timer_common_init()
264 atomic_io_modify(timer_base + TIMER_CTRL_OFF, clr | set, set); in armada_370_xp_timer_common_init()
279 writel(0xffffffff, timer_base + TIMER0_VAL_OFF); in armada_370_xp_timer_common_init()
280 writel(0xffffffff, timer_base + TIMER0_RELOAD_OFF); in armada_370_xp_timer_common_init()
282 atomic_io_modify(timer_base + TIMER_CTRL_OFF, in armada_370_xp_timer_common_init()
294 res = clocksource_mmio_init(timer_base + TIMER0_VAL_OFF, in armada_370_xp_timer_common_init()