linux/arch/arm/mach-at91
Boris BREZILLON d4d24c1b4f ARM: at91: prepare sama5 dt boards transition to common clk
This patch prepare the transition to common clk for sama5 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 (at91sama5_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: Nicolas Ferre <nicolas.ferre@atmel.com>
2013-12-02 15:31:27 +01:00
..
include/mach ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
at91_aic.h arm: at91 move at91_aic.h to arch/arm/mach-at91 2012-11-06 20:29:41 +08:00
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 arn: at91: move at91_tc.h to arch/arm/mach-at91 2012-11-06 20:29:44 +08:00
at91rm9200_devices.c Sound updates for 3.8-rc1 2012-12-13 11:51:23 -08:00
at91rm9200_time.c ARM: at91: remove IRQF_DISABLED 2013-09-19 15:36:35 +02: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: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +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: remove init_machine() as default is suitable 2013-10-16 15:47:08 +02: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-qil-a9260.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: add new compatible strings for pmc driver 2013-12-02 15:31:27 +01: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 arm: at91: move board header to arch/arm/mach-at91 2012-11-06 20:29:48 +08:00
irq.c ARM: at91: fix at91_extern_irq usage for non-dt boards 2013-06-21 16:35:26 +02:00
Kconfig clk: at91: add PMC smd clock 2013-12-02 15:31:25 +01:00
Kconfig.non_dt ARM: at91: add Kconfig options for common clk support 2013-12-02 15:22:52 +01:00
leds.c arm: at91 move board.h to arch/arm/mach-at91 2012-11-06 20:29:37 +08:00
Makefile ARM: at91: add Kconfig options for common clk support 2013-12-02 15:22:52 +01:00
Makefile.boot ARM: move all dtb targets out of Makefile.boot 2012-09-14 09:22:04 -05:00
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: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
pm.h ARM: AT91: pm: Factorize standby function 2013-10-16 23:51:36 +02:00
sam9_smc.c ARM: at91: add accessor to manage SMC 2012-02-13 18:31:36 +01:00
sam9_smc.h ARM: at91: add accessor to manage SMC 2012-02-13 18:31:36 +01:00
sama5d3.c ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h 2013-12-02 15:22:15 +01:00
setup.c ARM: at91: add Kconfig options for common clk support 2013-12-02 15:22:52 +01:00
soc.h ARM: at91: fix at91_extern_irq usage for non-dt boards 2013-06-21 16:35:26 +02:00
stamp9g20.h arm: at91: move board header to arch/arm/mach-at91 2012-11-06 20:29:48 +08:00
sysirq_mask.c ARM: at91: fix hanged boot due to early rtt-interrupt 2013-11-15 12:13:33 +01:00