static void sun4i_clkevt_time_stop(u8 timer) { u32 val = readl(timer_base + TIMER_CTL_REG(timer)); writel(val & ~TIMER_CTL_ENABLE, timer_base + TIMER_CTL_REG(timer)); sun4i_clkevt_sync(); }
static void sun4i_clkevt_time_stop(void __iomem *base, u8 timer) { u32 val = readl(base + TIMER_CTL_REG(timer)); writel(val & ~TIMER_CTL_ENABLE, base + TIMER_CTL_REG(timer)); sun4i_clkevt_sync(base); }