Lines Matching full:clocksource
3 #include <linux/clocksource.h>
16 #include <clocksource/timer-ti-dm.h>
29 static u32 clocksource; variable
59 struct clocksource dev;
147 * typically no use for a dmtimer clocksource if the 32 KiHz counter is
222 * clockevent or clocksource depending if the counter_32k is available on the
230 * clock as the clocksource, and any available dmtimer as clockevent.
232 * For am437x, we are using am335x style dmtimer clocksource. It is unclear
249 /* Quirk am437x using am335x style dmtimer clocksource */ in dmtimer_systimer_assign_alwon()
274 /* Usually no need for dmtimer clocksource if we have counter32 */ in dmtimer_systimer_assign_alwon()
277 clocksource = 0; in dmtimer_systimer_assign_alwon()
279 clocksource = pa; in dmtimer_systimer_assign_alwon()
298 if (pa == clocksource || pa == clockevent) { in dmtimer_systimer_find_first_available()
311 /* Selects the best clocksource and clockevent to use */
320 pr_debug("%s: counter_32k: %i clocksource: %08x clockevent: %08x\n", in dmtimer_systimer_select_best()
321 __func__, counter_32k, clocksource, clockevent); in dmtimer_systimer_select_best()
612 /* Clocksource */
614 to_dmtimer_clocksource(struct clocksource *cs) in to_dmtimer_clocksource()
619 static u64 dmtimer_clocksource_read_cycles(struct clocksource *cs) in dmtimer_clocksource_read_cycles()
634 static void dmtimer_clocksource_suspend(struct clocksource *cs) in dmtimer_clocksource_suspend()
644 static void dmtimer_clocksource_resume(struct clocksource *cs) in dmtimer_clocksource_resume()
664 struct clocksource *dev; in dmtimer_clocksource_init()
694 pr_info("TI gptimer clocksource: %s%pOF\n", in dmtimer_clocksource_init()
704 pr_err("Could not register clocksource %pOF\n", np); in dmtimer_clocksource_init()
715 * To detect between a clocksource and clockevent, we assume the device tree
716 * has no interrupts configured for a clocksource timer.
724 if (!clocksource && !clockevent) in dmtimer_systimer_init()
727 if (!clocksource && !clockevent) { in dmtimer_systimer_init()
739 if (counter_32k <= 0 && clocksource == pa) in dmtimer_systimer_init()