Lines Matching refs:timer
3 * linux/drivers/clocksource/timer-sp.c
24 #include "timer-sp.h"
26 /* Hisilicon 64-bit timer(a variant of ARM SP804) */
144 * IRQ handler for the timer
223 "timer", &sp804_clockevent))
230 static void __init sp804_clkevt_init(struct sp804_timer *timer, void __iomem *base)
238 timer_base = base + timer->timer_base[i];
241 clkevt->load = timer_base + timer->load;
242 clkevt->load_h = timer_base + timer->load_h;
243 clkevt->value = timer_base + timer->value;
244 clkevt->value_h = timer_base + timer->value_h;
245 clkevt->ctrl = timer_base + timer->ctrl;
246 clkevt->intclr = timer_base + timer->intclr;
247 clkevt->width = timer->width;
251 static int __init sp804_of_init(struct device_node *np, struct sp804_timer *timer)
263 pr_debug("%pOF: skipping further SP804 timer device\n", np);
271 timer1_base = base + timer->timer_base[0];
272 timer2_base = base + timer->timer_base[1];
275 writel(0, timer1_base + timer->ctrl);
276 writel(0, timer2_base + timer->ctrl);
282 /* Get the 2nd clock if the timer has 3 timer clocks */
297 sp804_clkevt_init(timer, base);
361 /* Ensure timer is disabled */
390 TIMER_OF_DECLARE(intcp, "arm,integrator-cp-timer", integrator_cp_of_init);