Searched refs:clksrc_base (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/clocksource/ |
D | timer-vf-pit.c | 32 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()
|
D | timer-fsl-ftm.c | 23 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()
|
D | timer-oxnas-rps.c | 52 void __iomem *clksrc_base; member 191 writel_relaxed(TIMER_MAX_VAL, rps->clksrc_base + TIMER_LOAD_REG); in oxnas_rps_clocksource_init() 193 rps->clksrc_base + TIMER_CTRL_REG); in oxnas_rps_clocksource_init() 195 timer_sched_base = rps->clksrc_base + TIMER_CURR_REG; in oxnas_rps_clocksource_init() 245 rps->clksrc_base = base + TIMER2_REG_OFFSET; in oxnas_rps_timer_init() 249 writel_relaxed(0, rps->clksrc_base + TIMER_CTRL_REG); in oxnas_rps_timer_init() 251 writel_relaxed(0, rps->clksrc_base + TIMER_LOAD_REG); in oxnas_rps_timer_init() 253 writel_relaxed(0, rps->clksrc_base + TIMER_CLRINT_REG); in oxnas_rps_timer_init()
|