Searched refs:ostm (Results 1 – 2 of 2) sorted by relevance
55 static void ostm_timer_stop(struct ostm_device *ostm) in ostm_timer_stop() argument57 if (readb(ostm->base + OSTM_TE) & TE) { in ostm_timer_stop()58 writeb(TT, ostm->base + OSTM_TT); in ostm_timer_stop()65 while (readb(ostm->base + OSTM_TE) & TE) in ostm_timer_stop()70 static int __init ostm_init_clksrc(struct ostm_device *ostm, unsigned long rate) in ostm_init_clksrc() argument76 ostm_timer_stop(ostm); in ostm_init_clksrc()78 writel(0, ostm->base + OSTM_CMP); in ostm_init_clksrc()79 writeb(CTL_FREERUN, ostm->base + OSTM_CTL); in ostm_init_clksrc()80 writeb(TS, ostm->base + OSTM_TS); in ostm_init_clksrc()82 return clocksource_mmio_init(ostm->base + OSTM_CNT, in ostm_init_clksrc()[all …]
13 obj-$(CONFIG_RENESAS_OSTM) += renesas-ostm.o