Searched refs:pcs_gpt (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/clocksource/
H A Dtime-pistachio.c54 static struct pistachio_clocksource pcs_gpt; variable in typeref:struct:pistachio_clocksource
92 return pistachio_clocksource_read_cycles(&pcs_gpt.cs); pistachio_read_sched_clock()
138 static struct pistachio_clocksource pcs_gpt = { variable in typeref:struct:pistachio_clocksource
158 pcs_gpt.base = of_iomap(node, 0); pistachio_clksrc_of_init()
159 if (!pcs_gpt.base) { pistachio_clksrc_of_init()
205 gpt_writel(&pcs_gpt.base, 0, TIMER_IRQ_MASK, 0); pistachio_clksrc_of_init()
206 gpt_writel(&pcs_gpt.base, 0, TIMER_IRQ_MASK, 1); pistachio_clksrc_of_init()
207 gpt_writel(&pcs_gpt.base, 0, TIMER_IRQ_MASK, 2); pistachio_clksrc_of_init()
208 gpt_writel(&pcs_gpt.base, 0, TIMER_IRQ_MASK, 3); pistachio_clksrc_of_init()
211 writel(TIMER_ME_GLOBAL, pcs_gpt.base); pistachio_clksrc_of_init()
213 raw_spin_lock_init(&pcs_gpt.lock); pistachio_clksrc_of_init()
215 clocksource_register_hz(&pcs_gpt.cs, rate); pistachio_clksrc_of_init()

Completed in 110 milliseconds