Lines Matching +full:orion +full:- +full:timer
1 // SPDX-License-Identifier: GPL-2.0
3 * Marvell Orion SoC timer handling.
7 * Timer 0 is used as free-running clocksource, while timer 1 is
53 * Free-running clocksource handling.
68 /* setup and enable one-shot timer */ in orion_clkevt_next_event()
78 /* disable timer */ in orion_clkevt_shutdown()
86 /* setup and enable periodic timer at 1/HZ intervals */ in orion_clkevt_set_periodic()
87 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD); in orion_clkevt_set_periodic()
88 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL); in orion_clkevt_set_periodic()
120 /* timer registers are shared with watchdog timer */ in orion_timer_init()
124 return -ENXIO; in orion_timer_init()
143 ret = -EINVAL; in orion_timer_init()
149 /* setup timer0 as free-running clocksource */ in orion_timer_init()
160 pr_err("Failed to initialize mmio timer\n"); in orion_timer_init()
166 /* setup timer1 as clockevent timer */ in orion_timer_init()
189 TIMER_OF_DECLARE(orion_timer, "marvell,orion-timer", orion_timer_init);