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 (pa == clocksource || pa == clockevent) {
311 /* Selects the best clocksource and clockevent to use */
320 pr_debug("%s: counter_32k: %i clocksource: %08x clockevent: %08x\n",
321 __func__, counter_32k, clocksource, clockevent);
709 to_dmtimer_clocksource(struct clocksource *cs)
714 static u64 dmtimer_clocksource_read_cycles(struct clocksource *cs)
729 static void dmtimer_clocksource_suspend(struct clocksource *cs)
739 static void dmtimer_clocksource_resume(struct clocksource *cs)
759 struct clocksource *dev;
789 pr_info("TI gptimer clocksource: %s%pOF\n",
799 pr_err("Could not register clocksource %pOF\n", np);
810 * To detect between a clocksource and clockevent, we assume the device tree
811 * has no interrupts configured for a clocksource timer.
819 if (!clocksource && !clockevent)
822 if (!clocksource && !clockevent) {
834 if (counter_32k <= 0 && clocksource == pa)