linux/arch/arm/mach-at91
Boris BREZILLON 2db5a93d21 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>
2014-03-12 11:30:44 +01:00
..
include/mach ARM: SoC platform changes for 3.14 2014-01-23 18:40:49 -08:00
at91_aic.h
at91_rstc.h ARM: at91: remove trailing semicolon from macros 2013-04-08 17:47:44 +02:00
at91_shdwc.h ARM: at91: remove trailing semicolon from macros 2013-04-08 17:47:44 +02:00
at91_tc.h
at91rm9200_devices.c Sound updates for 3.8-rc1 2012-12-13 11:51:23 -08:00
at91rm9200_time.c ARM: at91: rm9200: switch back to clockevents_config_and_register 2013-11-20 21:55:20 +01:00
at91rm9200.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91sam9_alt_reset.S arm: at91: move reset controller header to arm/arm/mach-at91 2012-11-06 20:30:48 +08:00
at91sam9g45_devices.c video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
at91sam9g45_reset.S ARM: at91: sam9g45: shutdown ddr1 too when rebooting 2013-09-30 09:58:44 -07:00
at91sam9g45.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91sam9n12.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91sam9rl_devices.c video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
at91sam9rl.c ARM: at91: prepare at91sam9rl DT transition 2014-03-12 11:30:21 +01:00
at91sam9x5.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91sam926x_time.c ARM: at91: move pit timer to common clk framework 2013-12-02 15:31:26 +01:00
at91sam9260_devices.c Sound updates for 3.8-rc1 2012-12-13 11:51:23 -08:00
at91sam9260.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91sam9261_devices.c video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
at91sam9261.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91sam9263_devices.c video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
at91sam9263.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91x40_time.c ARM: at91: remove IRQF_DISABLED 2013-09-19 15:36:35 +02:00
at91x40.c ARM: at91: fix at91_extern_irq usage for non-dt boards 2013-06-21 16:35:26 +02:00
board-1arm.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-afeb-9260v1.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-cam60.c ARM: at91: cam60: fix incorrect placement of __initdata tag 2013-09-30 17:50:51 +02:00
board-carmeva.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-cpu9krea.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-cpuat91.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-csb337.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-csb637.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-dt-rm9200.c ARM: at91: remove init_machine() as default is suitable 2013-10-16 15:47:08 +02:00
board-dt-sam9.c ARM: at91: prepare sam9 dt boards transition to common clk 2014-03-12 11:30:44 +01:00
board-dt-sama5.c ARM: at91: prepare sama5 dt boards transition to common clk 2013-12-02 15:31:27 +01:00
board-eb01.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-eb9200.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-ecbat91.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-eco920.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-flexibity.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-foxg20.c ARM: w1-gpio: fix erroneous gpio requests 2013-03-12 16:20:45 -07:00
board-gsia18s.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-kafa.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-kb9202.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-pcontrol-g20.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-picotux200.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-rm9200ek.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-rsi-ews.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-sam9-l9260.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-sam9g20ek.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-sam9m10g45ek.c video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
board-sam9rlek.c video: atmel_lcdfb: pass the pdata as params 2013-09-27 09:26:20 +03:00
board-sam9260ek.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
board-sam9261ek.c video: atmel_lcdfb: pass the pdata as params 2013-09-27 09:26:20 +03:00
board-sam9263ek.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-11-18 15:50:07 -08:00
board-snapper9260.c gpio: (gpio-pca953x) move header to linux/platform_data/ 2013-08-29 12:33:52 -07:00
board-stamp9g20.c ARM: w1-gpio: fix erroneous gpio requests 2013-03-12 16:20:45 -07:00
board-yl-9200.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board.h video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
clock.c ARM: at91: remove AT91_PROGRAMMABLE_CLOCKS configuration option 2013-12-12 09:57:42 -08:00
clock.h ARM: at91: introduce SAMA5 support 2013-03-26 12:18:04 +01:00
generic.h ARM: at91: add Kconfig options for common clk support 2013-12-02 15:22:52 +01:00
gpio.c arm: Move chained_irq_(enter|exit) to a generic file 2013-03-26 16:11:43 +00:00
gsia18s.h
irq.c ARM: at91: fix at91_extern_irq usage for non-dt boards 2013-06-21 16:35:26 +02:00
Kconfig ARM: SoC platform changes for 3.14 2014-01-23 18:40:49 -08:00
Kconfig.non_dt ARM: SoC cleanups for 3.14 2014-01-23 18:36:55 -08:00
leds.c
Makefile ARM: at91: switch Calao QIL-A9260 board to DT 2013-12-19 17:27:30 +01:00
Makefile.boot
pm_slowclock.S ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
pm.c ARM: at91: remove AT91_PROGRAMMABLE_CLOCKS configuration option 2013-12-12 09:57:42 -08:00
pm.h ARM: at91: fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM 2013-12-02 14:24:40 +01:00
sam9_smc.c ARM: at91: smc: bug fix in sam9_smc_cs_read() 2014-01-14 10:15:55 -08:00
sam9_smc.h
sama5d3.c ARM: at91/dt: remove old clk material 2013-12-02 15:31:29 +01:00
setup.c ARM: SoC platform changes for 3.14 2014-01-23 18:40:49 -08:00
soc.h ARM: at91: fix at91_extern_irq usage for non-dt boards 2013-06-21 16:35:26 +02:00
stamp9g20.h
sysirq_mask.c ARM: at91: fix hanged boot due to early rtt-interrupt 2013-11-15 12:13:33 +01:00