Lines Matching refs:timer_base
56 static void __iomem *timer_base; variable
61 return readl_relaxed(timer_base + MESON_ISA_TIMERE); in meson6_read_current_timer()
72 return (u64)readl(timer_base + MESON_ISA_TIMERE); in meson6_timer_sched_read()
77 u32 val = readl(timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_stop()
80 timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_stop()
85 writel(delay, timer_base + MESON_ISA_TIMERA); in meson6_clkevt_time_setup()
90 u32 val = readl(timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_start()
98 timer_base + MESON_ISA_TIMER_MUX); in meson6_clkevt_time_start()
158 timer_base = of_io_request_and_map(node, 0, "meson6-timer"); in meson6_timer_init()
159 if (IS_ERR(timer_base)) { in meson6_timer_init()
171 val = readl(timer_base + MESON_ISA_TIMER_MUX); in meson6_timer_init()
175 writel(val, timer_base + MESON_ISA_TIMER_MUX); in meson6_timer_init()
178 clocksource_mmio_init(timer_base + MESON_ISA_TIMERE, node->name, in meson6_timer_init()
185 writel(val, timer_base + MESON_ISA_TIMER_MUX); in meson6_timer_init()