Lines Matching refs:gpt
68 const struct imx_gpt_data *gpt; member
155 void __iomem *reg = imxtm->base + imxtm->gpt->reg_tcn; in mxc_clocksource_init()
207 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_shutdown()
209 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_shutdown()
211 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_shutdown()
214 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_shutdown()
228 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_set_oneshot()
231 u32 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_set_oneshot()
233 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_set_oneshot()
236 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_set_oneshot()
249 imxtm->gpt->gpt_irq_enable(imxtm); in mxc_set_oneshot()
263 tstat = readl_relaxed(imxtm->base + imxtm->gpt->reg_tstat); in mxc_timer_interrupt()
265 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_timer_interrupt()
281 ced->set_next_event = imxtm->gpt->set_next_event; in mxc_clockevent_init()
381 imxtm->gpt = &imx1_gpt_data; in _mxc_timer_init()
384 imxtm->gpt = &imx21_gpt_data; in _mxc_timer_init()
387 imxtm->gpt = &imx31_gpt_data; in _mxc_timer_init()
390 imxtm->gpt = &imx6dl_gpt_data; in _mxc_timer_init()
413 imxtm->gpt->gpt_setup_tctl(imxtm); in _mxc_timer_init()