Lines Matching +full:clk +full:- +full:delay +full:- +full:cycles

2  * linux/arch/arm/mach-omap1/timer32k.c
6 * Copyright (C) 2004 - 2005 Nokia Corporation
10 * OMAP Dual-mode timer framework support by Timo Teras
39 #include <linux/delay.h>
44 #include <linux/clk.h>
58 * ---------------------------------------------------------------------------
66 * ---------------------------------------------------------------------------
79 * TRM says 1 / HZ = ( TVR + 1) / 32768, so TRV = (32768 / HZ) - 1
82 #define OMAP_32K_TIMER_TICK_PERIOD ((OMAP_32K_TICKS_PER_SEC / HZ) - 1)
129 .name = "32k-timer",
144 evt->event_handler(evt); in omap_32k_timer_interrupt()
169 * higher resolution in free-running counter modes (e.g. 12 MHz xtal),
180 static cycles_t cycles; variable
184 * omap_read_persistent_clock64 - Return time from a persistent clock.
188 * 32k sync timer. Convert the cycles elapsed since last read into
196 last_cycles = cycles; in omap_read_persistent_clock64()
197 cycles = sync32k_cnt_reg ? readl_relaxed(sync32k_cnt_reg) : 0; in omap_read_persistent_clock64()
199 nsecs = clocksource_cyc2ns(cycles - last_cycles, in omap_read_persistent_clock64()
208 * omap_init_clocksource_32k - setup and register counter 32k as a
222 * The 'SCHEME' bits(30-31) of the revision register is used in omap_init_clocksource_32k()
253 * ---------------------------------------------------------------------------
255 * ---------------------------------------------------------------------------
259 int ret = -ENODEV; in omap_32k_timer_init()
263 struct clk *sync32k_ick; in omap_32k_timer_init()
268 return -ENODEV; in omap_32k_timer_init()