Lines Matching +full:reg +full:- +full:names
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010 Linus Walleij for ST-Ericsson
25 * registers. These are register names.
33 /* per-timer registers take 0..3 as argument */
36 #define MTU_CR(x) (0x10 + 0x10 * (x) + 0x08) /* Control reg */
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()
179 writel(1 << 1, mtu_base + MTU_ICR); /* Interrupt clear reg */ in nmdk_timer_interrupt()
180 evdev->event_handler(evdev); in nmdk_timer_interrupt()
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()
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",