Lines Matching +full:timer +full:- +full:adjust
1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-pxa/time.c
8 * Derived from Nicolas Pitre's PXA timer handler Copyright (c) 2001
26 #define OSMR0 0x00 /* OS Timer 0 Match Register */
27 #define OSMR1 0x04 /* OS Timer 1 Match Register */
28 #define OSMR2 0x08 /* OS Timer 2 Match Register */
29 #define OSMR3 0x0C /* OS Timer 3 Match Register */
31 #define OSCR 0x10 /* OS Timer Counter Register */
32 #define OSSR 0x14 /* OS Timer Status Register */
33 #define OWER 0x18 /* OS Timer Watchdog Enable Register */
34 #define OIER 0x1C /* OS Timer Interrupt Enable Register */
73 c->event_handler(c); in pxa_ost0_interrupt()
88 return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0; in pxa_osmr0_set_next_event()
117 * the one-shot timer interrupt. We adjust OSMR0 in preference in pxa_timer_resume()
120 if (osmr[0] - oscr < MIN_OSCR_DELTA) in pxa_timer_resume()
182 /* timer registers are shared with watchdog timer */ in pxa_timer_dt_init()
186 return -ENXIO; in pxa_timer_dt_init()
201 /* we are only interested in OS-timer0 irq */ in pxa_timer_dt_init()
204 pr_crit("%pOFn: unable to parse OS-timer0 irq\n", np); in pxa_timer_dt_init()
205 return -EINVAL; in pxa_timer_dt_init()
210 TIMER_OF_DECLARE(pxa_timer, "marvell,pxa-timer", pxa_timer_dt_init);
213 * Legacy timer init for non device-tree boards.