Thread (43 messages) 43 messages, 12 authors, 2013-06-06

Re: [RFC] dw_apb_timer_of: use clocksource_of_init

From: Rob Herring <hidden>
Date: 2013-06-03 12:27:34
Also in: linux-arm-kernel, linux-mmc, lkml

On 06/03/2013 07:15 AM, Heiko Stübner wrote:
dw_apb_timer_init used to search the devicetree for matching timer
devices, making calls to it from board files necessary.

Change the dw_apb_timer_init to work with CLOCKSOURCE_OF_DECLARE.
With this change the function gets called once for each timer node
and tracks these number of calls to attach clockevent and clocksource
devices to the nodes.

Also convert all previous users of dw_apb_timer_init to use
clocksource_of_init.

Tested on the upcoming rk3066 code.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Rob Herring <redacted>

But 1 comment:
quoted hunk ↗ jump to hunk
@@ -88,7 +88,7 @@ DT_MACHINE_START(PICOXCELL, "Picochip picoXcell")
 	.map_io		= picoxcell_map_io,
 	.nr_irqs	= NR_IRQS_LEGACY,
 	.init_irq	= irqchip_init,
-	.init_time	= dw_apb_timer_init,
+	.init_time	= clocksource_of_init,
clocksource_of_init is the default now, so you can just remove this and
the one in socfpga.

Same for irqchip_init BTW, but that's another patch.

Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help