Home
last modified time | relevance | path

Searched refs:ti_32k_timer (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/clocksource/
H A Dtimer-ti-32k.c65 static struct ti_32k ti_32k_timer = { variable
77 return ti_32k_read_cycles(&ti_32k_timer.cs); in omap_32k_read_sched_clock()
127 ti_32k_timer.base = of_iomap(np, 0); in ti_32k_timer_init()
128 if (!ti_32k_timer.base) { in ti_32k_timer_init()
134 ti_32k_timer.cs.flags |= CLOCK_SOURCE_SUSPEND_NONSTOP; in ti_32k_timer_init()
136 ti_32k_timer.counter = ti_32k_timer.base; in ti_32k_timer_init()
137 ti_32k_timer_module_init(np, ti_32k_timer.base); in ti_32k_timer_init()
148 ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_HIGH; in ti_32k_timer_init()
150 ti_32k_timer.counter += OMAP2_32KSYNCNT_CR_OFF_LOW; in ti_32k_timer_init()
154 ret = clocksource_register_hz(&ti_32k_timer.cs, 32768); in ti_32k_timer_init()
[all …]