linux/arch/arm/mach-at91
Maxime Ripard 64568d1dbd ARM: at91: PIT: (Almost) remove the global variables
The timer driver is using some global variables to define some variables it has
to use in most of its functions, like the base address.

Use some container_of calls to have a single dynamic (and local) variable to
hold this content.

The only exception is in the !DT case, where the call chain to
at91sam926x_ioremap_pit and then at91sam926x_pit_init as init_time makes it
hard for the moment to pass the physical address of the timer.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
2014-09-03 10:55:44 +02:00
..
include/mach iio: adc: at91: remove unused include from include/mach 2014-05-07 18:28:40 +02:00
at91_aic.h arm: at91 move at91_aic.h to arch/arm/mach-at91 2012-11-06 20:29:41 +08: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 gpio: split gpiod board registration into machine header 2014-07-28 12:23:35 +02:00
at91rm9200_time.c This cleanup series gets rid of <mach/timex.h> for platforms not using 2014-02-18 22:19:33 -08:00
at91rm9200.c ARM: at91: prepare common clk transition for rm9200 2014-07-09 19:05:11 +02:00
at91sam9g45_devices.c ARM: at91: at91sam9g45: switch to generic PWM framework 2014-07-09 15:13:27 +02:00
at91sam9g45.c ARM: at91: Remove rstc and shdwnc global base addresses 2014-08-25 16:27:33 +02:00
at91sam9n12.c ARM: at91: prepare common clk transition for sam9n12 SoC 2014-05-22 18:03:15 +02:00
at91sam9rl_devices.c ARM: at91: at91sam9rl: switch to generic PWM framework 2014-07-09 15:13:30 +02:00
at91sam9rl.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
at91sam9x5.c ARM: at91: prepare common clk transition for sam9x5 SoCs 2014-05-22 18:03:13 +02:00
at91sam926x_time.c ARM: at91: PIT: (Almost) remove the global variables 2014-09-03 10:55:44 +02:00
at91sam9260_devices.c TTY/Serial driver patches for 3.16-rc1 2014-06-03 09:01:02 -07:00
at91sam9260.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
at91sam9261_devices.c TTY/Serial driver patches for 3.16-rc1 2014-06-03 09:01:02 -07:00
at91sam9261.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
at91sam9263_devices.c ARM: at91: at91sam9263: switch to generic PWM framework 2014-07-09 15:13:28 +02:00
at91sam9263.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
at91x40_time.c ARM: at91: don't use <mach/timex.h> 2013-12-20 11:44:20 +01:00
at91x40.c ARM: at91: don't use <mach/timex.h> 2013-12-20 11:44:20 +01:00
board-1arm.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-afeb-9260v1.c ARM: at91: Call at91_register_devices in the board files 2014-08-25 16:05:27 +02:00
board-cam60.c ARM: at91: Call at91_register_devices in the board files 2014-08-25 16:05:27 +02:00
board-carmeva.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-cpu9krea.c ARM: at91: Call at91_register_devices in the board files 2014-08-25 16:05:27 +02:00
board-cpuat91.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-csb337.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-csb637.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-dt-rm9200.c ARM: at91: make use of the new AIC driver for dt enabled boards 2014-08-19 20:32:49 +02:00
board-dt-sam9.c ARM: at91: dt: Remove init_time definitions 2014-09-03 10:55:42 +02:00
board-dt-sama5.c ARM: at91: dt: Remove init_time definitions 2014-09-03 10:55:42 +02:00
board-eb01.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
board-eb9200.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-ecbat91.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-eco920.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-flexibity.c ARM: at91: Call at91_register_devices in the board files 2014-08-25 16:05:27 +02:00
board-foxg20.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-gsia18s.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-kafa.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-kb9202.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-pcontrol-g20.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-picotux200.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-rm9200ek.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-rsi-ews.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-sam9-l9260.c ARM: at91: Call at91_register_devices in the board files 2014-08-25 16:05:27 +02:00
board-sam9g20ek.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-sam9m10g45ek.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
board-sam9rlek.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
board-sam9260ek.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
board-sam9261ek.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
board-sam9263ek.c ARM: at91: Remove rstc and shdwc headers 2014-08-25 16:27:52 +02:00
board-snapper9260.c ARM: at91: Call at91_register_devices in the board files 2014-08-25 16:05:27 +02:00
board-stamp9g20.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board-yl-9200.c ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02:00
board.h ARM: at91: remove useless at91_pwm_leds() 2014-07-09 15:13:30 +02: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: generic.h: Add include safe guards 2014-09-02 18:52:17 +02:00
gpio.c TTY/Serial driver patches for 3.16-rc1 2014-06-03 09:01:02 -07:00
gpio.h ARM: at91: localize GPIO header 2014-05-07 18:27:21 +02: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: remove old irq material 2014-08-19 20:32:49 +02:00
Kconfig ARM: at91: PIT: Rework probe functions 2014-09-03 10:55:22 +02:00
Kconfig.non_dt ARM: at91: introduce OLD_IRQ_AT91 Kconfig option 2014-08-19 20:32:47 +02:00
leds.c ARM: at91: remove useless at91_pwm_leds() 2014-07-09 15:13:30 +02:00
Makefile ARM: at91: Remove reset code from the machine code 2014-08-25 16:06:22 +02: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/pm: Remove show_reset_status function 2014-08-25 16:27:15 +02: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: export sam9_smc interfaces 2014-03-21 18:19:29 +01:00
sam9_smc.h ARM: at91: add accessor to manage SMC 2012-02-13 18:31:36 +01:00
sama5d3.c ARM: at91/dt: remove old clk material 2013-12-02 15:31:29 +01:00
setup.c ARM: at91: fix ramc standby function registration 2014-09-01 18:37:51 +02:00
soc.h ARM: at91/soc: Introduce register_devices callback 2014-08-25 16:04: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 at91_sysirq_mask_rtc for sam9x5 SoCs 2014-06-06 16:08:08 -07:00