Lines Matching defs:timer
3 * Allwinner A1X SoCs timer handling.
24 #include "timer-of.h"
43 * When we disable a timer, we need to wait at least for 2 cycles of
44 * the timer source clock. We will use for that the clocksource timer
56 static void sun4i_clkevt_time_stop(void __iomem *base, u8 timer)
58 u32 val = readl(base + TIMER_CTL_REG(timer));
59 writel(val & ~TIMER_CTL_ENABLE, base + TIMER_CTL_REG(timer));
63 static void sun4i_clkevt_time_setup(void __iomem *base, u8 timer,
66 writel(delay, base + TIMER_INTVAL_REG(timer));
69 static void sun4i_clkevt_time_start(void __iomem *base, u8 timer,
72 u32 val = readl(base + TIMER_CTL_REG(timer));
80 base + TIMER_CTL_REG(timer));
204 /* Make sure timer is stopped before playing with interrupts */
219 TIMER_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer",
221 TIMER_OF_DECLARE(sun8i_a23, "allwinner,sun8i-a23-timer",
223 TIMER_OF_DECLARE(sun8i_v3s, "allwinner,sun8i-v3s-timer",
225 TIMER_OF_DECLARE(suniv, "allwinner,suniv-f1c100s-timer",