Searched refs:dc_timer_dev (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/clocksource/ |
H A D | timer-digicolor.c | 123 static struct digicolor_timer dc_timer_dev = { variable in typeref:struct:digicolor_timer 148 return ~readl(dc_timer_dev.base + COUNT(TIMER_B)); digicolor_timer_sched_read() 161 dc_timer_dev.base = of_iomap(node, 0); digicolor_timer_init() 162 if (!dc_timer_dev.base) { digicolor_timer_init() 167 irq = irq_of_parse_and_map(node, dc_timer_dev.timer_id); digicolor_timer_init() 180 dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); digicolor_timer_init() 182 writeb(CONTROL_DISABLE, dc_timer_dev.base + CONTROL(TIMER_B)); digicolor_timer_init() 183 writel(UINT_MAX, dc_timer_dev.base + COUNT(TIMER_B)); digicolor_timer_init() 184 writeb(CONTROL_ENABLE, dc_timer_dev.base + CONTROL(TIMER_B)); digicolor_timer_init() 187 clocksource_mmio_init(dc_timer_dev.base + COUNT(TIMER_B), node->name, digicolor_timer_init() 192 &dc_timer_dev.ce); digicolor_timer_init() 196 dc_timer_dev.ce.cpumask = cpu_possible_mask; digicolor_timer_init() 197 dc_timer_dev.ce.irq = irq; digicolor_timer_init() 199 clockevents_config_and_register(&dc_timer_dev.ce, rate, 0, 0xffffffff); digicolor_timer_init()
|
Completed in 109 milliseconds