ARM: at91: prepare sam9 dt boards transition to common clk
authorBoris BREZILLON <b.brezillon@overkiz.com>
Wed, 12 Mar 2014 09:43:41 +0000 (10:43 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 12 Mar 2014 10:30:44 +0000 (11:30 +0100)
commit2db5a93d21788e3e4a0746115992f267a93ba201
tree7db9d226d3dc637f9e6197b8a3002e24d4a20cb9
parent26489729a6358ffc1464b72c9f6e881868c9328b
ARM: at91: prepare sam9 dt boards transition to common clk

This patch prepare the transition to common clk for sam9 dt boards by
replacing the timer init callback.

Clocks registration cannot be done in early init callback (as formerly done
by the old clk implementation) because it requires dynamic allocation
which is not ready yet during early init.

In the other hand, at91 clocks must be registered before
at91sam926x_pit_init is called because PIT (Periodic Interval Timer) driver
request the master clk (mck).

A new function (at91sam9_dt_timer_init) is created to fullfil these needs.
This function registers all at91 clks using the dt definition before
calling the PIT init function.
The device tree clock registration is enabled only if common clk is
selected. Else the old clk registration is been done during
at91_dt_initialize call.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/board-dt-sam9.c
This page took 0.024325 seconds and 5 git commands to generate.