Home
last modified time | relevance | path

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

/linux/drivers/clocksource/
H A Dtimer-rockchip.c48 static struct rk_timer *rk_clksrc; variable
124 return ~readl_relaxed(rk_clksrc->base + TIMER_CURRENT_VALUE0); in rk_timer_sched_read()
257 rk_clksrc = kzalloc(sizeof(struct rk_timer), GFP_KERNEL); in rk_clksrc_init()
258 if (!rk_clksrc) { in rk_clksrc_init()
263 ret = rk_timer_probe(rk_clksrc, np); in rk_clksrc_init()
267 rk_timer_update_counter(UINT_MAX, rk_clksrc); in rk_clksrc_init()
268 rk_timer_enable(rk_clksrc, 0); in rk_clksrc_init()
270 ret = clocksource_mmio_init(rk_clksrc->base + TIMER_CURRENT_VALUE0, in rk_clksrc_init()
271 TIMER_NAME, rk_clksrc->freq, 250, 32, in rk_clksrc_init()
278 sched_clock_register(rk_timer_sched_read, 32, rk_clksrc->freq); in rk_clksrc_init()
[all …]