Home
last modified time | relevance | path

Searched refs:clksrc_base (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/clocksource/
H A Dtimer-vf-pit.c32 static void __iomem *clksrc_base; variable
53 return ~__raw_readl(clksrc_base + PITCVAL); in pit_read_sched_clock()
59 __raw_writel(0, clksrc_base + PITTCTRL); in pit_clocksource_init()
60 __raw_writel(~0UL, clksrc_base + PITLDVAL); in pit_clocksource_init()
61 __raw_writel(PITTCTRL_TEN, clksrc_base + PITTCTRL); in pit_clocksource_init()
64 return clocksource_mmio_init(clksrc_base + PITCVAL, "vf-pit", rate, in pit_clocksource_init()
167 clksrc_base = timer_base + PITn_OFFSET(2); in pit_timer_init()
H A Dtimer-fsl-ftm.c23 void __iomem *clksrc_base; member
108 return ftm_readl(priv->clksrc_base + FTM_CNT); in ftm_read_sched_clock()
211 ftm_writel(0x00, priv->clksrc_base + FTM_CNTIN); in ftm_clocksource_init()
212 ftm_writel(~0u, priv->clksrc_base + FTM_MOD); in ftm_clocksource_init()
214 ftm_reset_counter(priv->clksrc_base); in ftm_clocksource_init()
217 err = clocksource_mmio_init(priv->clksrc_base + FTM_CNT, "fsl-ftm", in ftm_clocksource_init()
225 ftm_counter_enable(priv->clksrc_base); in ftm_clocksource_init()
314 priv->clksrc_base = of_iomap(np, 1); in ftm_timer_init()
315 if (!priv->clksrc_base) { in ftm_timer_init()
348 iounmap(priv->clksrc_base); in ftm_timer_init()