ARM: at91: Convert the boards to the init_time callback
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 1 Jul 2014 09:33:25 +0000 (11:33 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 3 Sep 2014 08:55:45 +0000 (10:55 +0200)
Now that we have the init_time callback in the at91_init_soc structure, convert
all the boards and SoC to this.

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>
21 files changed:
arch/arm/mach-at91/at91sam9260.c
arch/arm/mach-at91/at91sam9261.c
arch/arm/mach-at91/at91sam9263.c
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/at91sam9rl.c
arch/arm/mach-at91/board-afeb-9260v1.c
arch/arm/mach-at91/board-cam60.c
arch/arm/mach-at91/board-cpu9krea.c
arch/arm/mach-at91/board-flexibity.c
arch/arm/mach-at91/board-foxg20.c
arch/arm/mach-at91/board-gsia18s.c
arch/arm/mach-at91/board-pcontrol-g20.c
arch/arm/mach-at91/board-sam9-l9260.c
arch/arm/mach-at91/board-sam9260ek.c
arch/arm/mach-at91/board-sam9261ek.c
arch/arm/mach-at91/board-sam9263ek.c
arch/arm/mach-at91/board-sam9g20ek.c
arch/arm/mach-at91/board-sam9m10g45ek.c
arch/arm/mach-at91/board-sam9rlek.c
arch/arm/mach-at91/board-snapper9260.c
arch/arm/mach-at91/board-stamp9g20.c

index b6948d677ca9485ecc73b6f83dacf51d5087692d..b61a255d414183415efbf7a2cef55760a0b298ba 100644 (file)
@@ -440,6 +440,11 @@ static unsigned int at91sam9260_default_irq_priority[NR_AIC_IRQS] __initdata = {
        0,      /* Advanced Interrupt Controller */
 };
 
+static void __init at91sam9260_init_time(void)
+{
+       at91sam926x_pit_init();
+}
+
 AT91_SOC_START(at91sam9260)
        .map_io = at91sam9260_map_io,
        .default_irq_priority = at91sam9260_default_irq_priority,
@@ -449,4 +454,5 @@ AT91_SOC_START(at91sam9260)
        .register_clocks = at91sam9260_register_clocks,
        .register_devices = at91sam9260_register_devices,
        .init = at91sam9260_initialize,
+       .init_time = at91sam9260_init_time,
 AT91_SOC_END
index c07339e370ee59f7acf05cdf746eb8f3ae635a56..badf20c2cd6736bc8e3825c9ab81bd82b955077e 100644 (file)
@@ -399,6 +399,11 @@ static unsigned int at91sam9261_default_irq_priority[NR_AIC_IRQS] __initdata = {
        0,      /* Advanced Interrupt Controller */
 };
 
+static void __init at91sam9261_init_time(void)
+{
+       at91sam926x_pit_init();
+}
+
 AT91_SOC_START(at91sam9261)
        .map_io = at91sam9261_map_io,
        .default_irq_priority = at91sam9261_default_irq_priority,
@@ -408,4 +413,5 @@ AT91_SOC_START(at91sam9261)
        .register_clocks = at91sam9261_register_clocks,
        .register_devices = at91sam9261_register_devices,
        .init = at91sam9261_initialize,
+       .init_time = at91sam9261_init_time,
 AT91_SOC_END
index 33ab06ec5365eed3605f58ae8e14db7fb92f40f6..ebb413e7f653d017ca5cd3cf3fe82388839bb644 100644 (file)
@@ -422,6 +422,11 @@ static unsigned int at91sam9263_default_irq_priority[NR_AIC_IRQS] __initdata = {
        0,      /* Advanced Interrupt Controller (IRQ1) */
 };
 
+static void __init at91sam9263_init_time(void)
+{
+       at91sam926x_pit_init();
+}
+
 AT91_SOC_START(at91sam9263)
        .map_io = at91sam9263_map_io,
        .default_irq_priority = at91sam9263_default_irq_priority,
@@ -430,4 +435,5 @@ AT91_SOC_START(at91sam9263)
        .register_clocks = at91sam9263_register_clocks,
        .register_devices = at91sam9263_register_devices,
        .init = at91sam9263_initialize,
+       .init_time = at91sam9263_init_time,
 AT91_SOC_END
index 7a329703f31a3b2ff5b857d5e2ffeab2bb403e31..f725814c556d7af1a18a79bc3ca32d0b17ee76f7 100644 (file)
@@ -477,6 +477,11 @@ static unsigned int at91sam9g45_default_irq_priority[NR_AIC_IRQS] __initdata = {
        0,      /* Advanced Interrupt Controller (IRQ0) */
 };
 
+static void __init at91sam9g45_init_time(void)
+{
+       at91sam926x_pit_init();
+}
+
 AT91_SOC_START(at91sam9g45)
        .map_io = at91sam9g45_map_io,
        .default_irq_priority = at91sam9g45_default_irq_priority,
@@ -485,4 +490,5 @@ AT91_SOC_START(at91sam9g45)
        .register_clocks = at91sam9g45_register_clocks,
        .register_devices = at91sam9g45_register_devices,
        .init = at91sam9g45_initialize,
+       .init_time = at91sam9g45_init_time,
 AT91_SOC_END
index 264999f33594f9fe157a741c609f88195013fbce..361b4a6e765147051f96c954a5d7bbbbbfe27005 100644 (file)
@@ -410,6 +410,11 @@ static unsigned int at91sam9rl_default_irq_priority[NR_AIC_IRQS] __initdata = {
        0,      /* Advanced Interrupt Controller */
 };
 
+static void __init at91sam9rl_init_time(void)
+{
+       at91sam926x_pit_init();
+}
+
 AT91_SOC_START(at91sam9rl)
        .map_io = at91sam9rl_map_io,
        .default_irq_priority = at91sam9rl_default_irq_priority,
@@ -420,4 +425,5 @@ AT91_SOC_START(at91sam9rl)
 #endif
        .register_devices = at91sam9rl_register_devices,
        .init = at91sam9rl_initialize,
+       .init_time = at91sam9rl_init_time,
 AT91_SOC_END
index fc9621ccb606dc2be515187b31dec5befeae58fa..e76e35ce81e771fe05248794d5aacbc5fd1ea396 100644 (file)
@@ -213,7 +213,7 @@ static void __init afeb9260_board_init(void)
 
 MACHINE_START(AFEB9260, "Custom afeb9260 board")
        /* Maintainer: Sergey Lapin <slapin@ossfans.org> */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = afeb9260_init_early,
index 283655bd86c154209dc5dd7a1c6f7d3dd8030696..ae827dd2d0d261b860669bab62928ba02e86fbeb 100644 (file)
@@ -190,7 +190,7 @@ static void __init cam60_board_init(void)
 
 MACHINE_START(CAM60, "KwikByte CAM60")
        /* Maintainer: KwikByte */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = cam60_init_early,
index 29a89032bb9a8889a88f707341a71612f02c1ccc..731c8318f4f53f0688056762ffbb192744fce246 100644 (file)
@@ -377,7 +377,7 @@ MACHINE_START(CPUAT9260, "Eukrea CPU9260")
 MACHINE_START(CPUAT9G20, "Eukrea CPU9G20")
 #endif
        /* Maintainer: Eric Benard - EUKREA Electromatique */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = cpu9krea_init_early,
index 79bd411b0cee8b97ceb817649bfb57948f581156..a6aa4a2432f2d36166f74fcd5f1414b886a39f75 100644 (file)
@@ -162,7 +162,7 @@ static void __init flexibity_board_init(void)
 
 MACHINE_START(FLEXIBITY, "Flexibity Connect")
        /* Maintainer: Maxim Osipov */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = flexibity_init_early,
index 8b22c60bb2384546b8019268a3179ad8ae57944e..ec290b6ed9d878d58b0d1290722218cfb638d92d 100644 (file)
@@ -263,7 +263,7 @@ static void __init foxg20_board_init(void)
 
 MACHINE_START(ACMENETUSFOXG20, "Acme Systems srl FOX Board G20")
        /* Maintainer: Sergio Tanzilli */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = foxg20_init_early,
index b729dd1271bfbb2210e0e564a11cbbfbfd73e6fe..bf5cc55c7db6a623db03db2670aa22c32fec9acb 100644 (file)
@@ -576,7 +576,7 @@ static void __init gsia18s_board_init(void)
 }
 
 MACHINE_START(GSIA18S, "GS_IA18_S")
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = gsia18s_init_early,
index b48d95ec5152954d26e9485c0a5e1f97977a1d5f..9c26b94ce4489bf1a4c5f64c2ec6aa28df1cd71a 100644 (file)
@@ -219,7 +219,7 @@ static void __init pcontrol_g20_board_init(void)
 
 MACHINE_START(PCONTROL_G20, "PControl G20")
        /* Maintainer: pgsellmann@portner-elektronik.at */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = pcontrol_g20_init_early,
index 70309404f366947f7872dcea793105246b856382..c2166e3a236c54fcdf9e7e28e097a4b1b32489c3 100644 (file)
@@ -221,7 +221,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(SAM9_L9260, "Olimex SAM9-L9260")
        /* Maintainer: Olimex */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index 18f49c93f3f33f4d0aef1f045baa3e64f66d0340..bf8a946b4cd0e13d59838c47fbd5cbc7d4d2e3bf 100644 (file)
@@ -345,7 +345,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index 5a23e72112031aa560f2a2a8b0c07b7dd47386f2..e85ada820bfb335815d60ed959525e139632857b 100644 (file)
@@ -604,7 +604,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
@@ -614,7 +614,7 @@ MACHINE_END
 
 MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index e8685652a73ee473c043d023dcd23670f493cc87..d76680f2a209301c16a11b4b1aafc9bbceb7e85c 100644 (file)
@@ -484,7 +484,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index e1be6e25b380aab2e002f3b80352be164b637877..49f0752134510a2dc4a22a7c2f61af78bc71bdd4 100644 (file)
@@ -410,7 +410,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(AT91SAM9G20EK, "Atmel AT91SAM9G20-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
@@ -420,7 +420,7 @@ MACHINE_END
 
 MACHINE_START(AT91SAM9G20EK_2MMC, "Atmel AT91SAM9G20-EK 2 MMC Slot Mod")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index 0fc4bea272ea39b00b4ce962402e2364ac068b18..a517c7f7af92b4536d718a01e3f2afd957f2521d 100644 (file)
@@ -518,7 +518,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index 5cb82464be1a738e40cce211c27d0ec44ed4270d..8bca329b0293a2c4b6e6e43c083e300218038078 100644 (file)
@@ -324,7 +324,7 @@ static void __init ek_board_init(void)
 
 MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK")
        /* Maintainer: Atmel */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = ek_init_early,
index 2a817b85569f5e5ebe4d7548b008d34cc419a024..b4aff840a1a095cc509395a6e39dd6aa4233b69f 100644 (file)
@@ -180,7 +180,7 @@ static void __init snapper9260_board_init(void)
 }
 
 MACHINE_START(SNAPPER_9260, "Bluewater Systems Snapper 9260/9G20 module")
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = snapper9260_init_early,
index 3b575036ff961ce73d3e657b1f289a4962993556..e825641a1dee80ff099f1691174a510190aea4ad 100644 (file)
@@ -275,7 +275,7 @@ static void __init stamp9g20evb_board_init(void)
 
 MACHINE_START(PORTUXG20, "taskit PortuxG20")
        /* Maintainer: taskit GmbH */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = stamp9g20_init_early,
@@ -285,7 +285,7 @@ MACHINE_END
 
 MACHINE_START(STAMP9G20, "taskit Stamp9G20")
        /* Maintainer: taskit GmbH */
-       .init_time      = at91sam926x_pit_init,
+       .init_time      = at91_init_time,
        .map_io         = at91_map_io,
        .handle_irq     = at91_aic_handle_irq,
        .init_early     = stamp9g20_init_early,