Lines Matching refs:clocksource
3 #include <linux/clocksource.h>
17 #include <clocksource/timer-ti-dm.h>
30 static u32 clocksource;
60 struct clocksource dev;
148 * typically no use for a dmtimer clocksource if the 32 KiHz counter is
223 * clockevent or clocksource depending if the counter_32k is available on the
231 * clock as the clocksource, and any available dmtimer as clockevent.
233 * For am437x, we are using am335x style dmtimer clocksource. It is unclear
249 /* Quirk am437x using am335x style dmtimer clocksource */
274 /* Usually no need for dmtimer clocksource if we have counter32 */
277 clocksource = 0;
279 clocksource = pa;
298 if (res.start == clocksource || res.start == clockevent)
309 /* Selects the best clocksource and clockevent to use */
318 pr_debug("%s: counter_32k: %i clocksource: %08x clockevent: %08x\n",
319 __func__, counter_32k, clocksource, clockevent);
707 to_dmtimer_clocksource(struct clocksource *cs)
712 static u64 dmtimer_clocksource_read_cycles(struct clocksource *cs)
727 static void dmtimer_clocksource_suspend(struct clocksource *cs)
737 static void dmtimer_clocksource_resume(struct clocksource *cs)
757 struct clocksource *dev;
787 pr_info("TI gptimer clocksource: %s%pOF\n",
797 pr_err("Could not register clocksource %pOF\n", np);
808 * To detect between a clocksource and clockevent, we assume the device tree
809 * has no interrupts configured for a clocksource timer.
817 if (!clocksource && !clockevent)
820 if (!clocksource && !clockevent) {
833 if (counter_32k <= 0 && clocksource == pa)