Lines Matching +full:nomadik +full:- +full:mtu
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010 Linus Walleij for ST-Ericsson
24 * The MTU device hosts four different counters, with 4 set of
33 /* per-timer registers take 0..3 as argument */
41 #define MTU_CRn_PERIODIC 0x40 /* if 0 = free-running */
66 static u32 nmdk_cycle; /* write-once */
79 return -readl(mtu_base + MTU_VAL(0)); in nomadik_read_sched_clock()
87 /* Clockevent device: use one-shot mode */
103 /* Timer: configure load and background-load, and fire it up */ in nmdk_clkevt_reset()
145 /* ClockSource: configure load and background-load, and fire it up */ in nmdk_clksrc_reset()
173 * IRQ Handler for timer 1 of the MTU block.
180 evdev->event_handler(evdev); in nmdk_timer_interrupt()
197 * Tick rate is 2.4MHz for Nomadik and 2.4Mhz, 100MHz or 133 MHz in nmdk_timer_init()
200 * Use a divide-by-16 counter if the tick rate is more than 32MHz. in nmdk_timer_init()
202 * to wake-up at a max 127s a head in time. Dividing a 2.4 MHz timer in nmdk_timer_init()
231 "Nomadik Timer Tick", &nmdk_clkevt)) in nmdk_timer_init()
232 pr_err("%s: request_irq() failed\n", "Nomadik Timer Tick"); in nmdk_timer_init()
259 return -ENXIO; in nmdk_timer_of_init()
277 return -EINVAL; in nmdk_timer_of_init()
282 TIMER_OF_DECLARE(nomadik_mtu, "st,nomadik-mtu",