Lines Matching full:ftm
3 * Freescale FlexTimer Module (FTM) timer driver.
18 #include <linux/fsl/ftm.h>
99 * The CNT register contains the FTM counter value. in ftm_reset_counter()
123 /* Force the value of CNTIN to be loaded into the FTM counter */ in ftm_set_next_event()
129 * The TOF (the overflow flag) bit is set when the FTM counter in ftm_set_next_event()
170 .name = "Freescale ftm timer",
189 "Freescale ftm timer", &ftm_clockevent); in ftm_clockevent_init()
191 pr_err("ftm: setup irq failed: %d\n", err); in ftm_clockevent_init()
217 err = clocksource_mmio_init(priv->clksrc_base + FTM_CNT, "fsl-ftm", in ftm_clocksource_init()
221 pr_err("ftm: init clock source mmio failed: %d\n", err); in ftm_clocksource_init()
238 pr_err("ftm: Cannot get \"%s\": %ld\n", cnt_name, PTR_ERR(clk)); in __ftm_clk_init()
243 pr_err("ftm: clock failed to prepare+enable \"%s\": %d\n", in __ftm_clk_init()
250 pr_err("ftm: Cannot get \"%s\": %ld\n", ftm_name, PTR_ERR(clk)); in __ftm_clk_init()
255 pr_err("ftm: clock failed to prepare+enable \"%s\": %d\n", in __ftm_clk_init()
265 freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt"); in ftm_clk_init()
269 freq = __ftm_clk_init(np, "ftm-src-counter-en", "ftm-src"); in ftm_clk_init()
290 pr_err("ftm: the prescaler is %lu > %d\n", in ftm_calc_closest_round_cyc()
310 pr_err("ftm: unable to map event timer registers\n"); in ftm_timer_init()
316 pr_err("ftm: unable to map source timer registers\n"); in ftm_timer_init()
323 pr_err("ftm: unable to get IRQ from DT, %d\n", irq); in ftm_timer_init()
355 TIMER_OF_DECLARE(flextimer, "fsl,ftm-timer", ftm_timer_init);