diff options
author | Tony Lindgren <tony@atomide.com> | 2011-08-23 02:57:24 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-08-24 09:19:02 -0400 |
commit | 8f5b5a41ebc750ffcc2c410371b2b4998955709e (patch) | |
tree | 02a05adecf3ee778ec77d560524b0c2089613405 /arch | |
parent | a4ca9dbe44a167d63545c7ac2b5a36d7b0b415b6 (diff) |
ARM: OMAP: Introduce SoC specific early_init
Introduce them for each omap variant and just make them all call
omap2_init_common_infrastructure for now. Do this for each board-*.c
file except for board-generic and board-omap3beagle as they use
the same machine ID for multiple SoCs.
No functional changes.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
27 files changed, 80 insertions, 156 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index a4f43ee09934..618216c8f742 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -141,11 +141,6 @@ static struct omap_board_config_kernel sdp2430_config[] __initdata = { | |||
141 | {OMAP_TAG_LCD, &sdp2430_lcd_config}, | 141 | {OMAP_TAG_LCD, &sdp2430_lcd_config}, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static void __init omap_2430sdp_init_early(void) | ||
145 | { | ||
146 | omap2_init_common_infrastructure(); | ||
147 | } | ||
148 | |||
149 | static struct regulator_consumer_supply sdp2430_vmmc1_supplies[] = { | 144 | static struct regulator_consumer_supply sdp2430_vmmc1_supplies[] = { |
150 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), | 145 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
151 | }; | 146 | }; |
@@ -259,7 +254,7 @@ MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") | |||
259 | .boot_params = 0x80000100, | 254 | .boot_params = 0x80000100, |
260 | .reserve = omap_reserve, | 255 | .reserve = omap_reserve, |
261 | .map_io = omap_2430sdp_map_io, | 256 | .map_io = omap_2430sdp_map_io, |
262 | .init_early = omap_2430sdp_init_early, | 257 | .init_early = omap2430_init_early, |
263 | .init_irq = omap2_init_irq, | 258 | .init_irq = omap2_init_irq, |
264 | .init_machine = omap_2430sdp_init, | 259 | .init_machine = omap_2430sdp_init, |
265 | .timer = &omap2_timer, | 260 | .timer = &omap2_timer, |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index cc8e14887c7b..9bb48eaa4381 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -225,11 +225,6 @@ static struct omap_dss_board_info sdp3430_dss_data = { | |||
225 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { | 225 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { |
226 | }; | 226 | }; |
227 | 227 | ||
228 | static void __init omap_3430sdp_init_early(void) | ||
229 | { | ||
230 | omap2_init_common_infrastructure(); | ||
231 | } | ||
232 | |||
233 | static struct omap2_hsmmc_info mmc[] = { | 228 | static struct omap2_hsmmc_info mmc[] = { |
234 | { | 229 | { |
235 | .mmc = 1, | 230 | .mmc = 1, |
@@ -732,7 +727,7 @@ MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") | |||
732 | .boot_params = 0x80000100, | 727 | .boot_params = 0x80000100, |
733 | .reserve = omap_reserve, | 728 | .reserve = omap_reserve, |
734 | .map_io = omap3_map_io, | 729 | .map_io = omap3_map_io, |
735 | .init_early = omap_3430sdp_init_early, | 730 | .init_early = omap3430_init_early, |
736 | .init_irq = omap3_init_irq, | 731 | .init_irq = omap3_init_irq, |
737 | .init_machine = omap_3430sdp_init, | 732 | .init_machine = omap_3430sdp_init, |
738 | .timer = &omap3_timer, | 733 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 96766e9bd7c2..94febc85d805 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -70,11 +70,6 @@ static const struct usbhs_omap_board_data usbhs_bdata __initconst = { | |||
70 | static struct omap_board_config_kernel sdp_config[] __initdata = { | 70 | static struct omap_board_config_kernel sdp_config[] __initdata = { |
71 | }; | 71 | }; |
72 | 72 | ||
73 | static void __init omap_sdp_init_early(void) | ||
74 | { | ||
75 | omap2_init_common_infrastructure(); | ||
76 | } | ||
77 | |||
78 | #ifdef CONFIG_OMAP_MUX | 73 | #ifdef CONFIG_OMAP_MUX |
79 | static struct omap_board_mux board_mux[] __initdata = { | 74 | static struct omap_board_mux board_mux[] __initdata = { |
80 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 75 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
@@ -218,7 +213,7 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") | |||
218 | .boot_params = 0x80000100, | 213 | .boot_params = 0x80000100, |
219 | .reserve = omap_reserve, | 214 | .reserve = omap_reserve, |
220 | .map_io = omap3_map_io, | 215 | .map_io = omap3_map_io, |
221 | .init_early = omap_sdp_init_early, | 216 | .init_early = omap3630_init_early, |
222 | .init_irq = omap3_init_irq, | 217 | .init_irq = omap3_init_irq, |
223 | .init_machine = omap_sdp_init, | 218 | .init_machine = omap_sdp_init, |
224 | .timer = &omap3_timer, | 219 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index bbe3735e1f78..ab19d305f61e 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -389,11 +389,6 @@ static struct omap_board_config_kernel sdp4430_config[] __initdata = { | |||
389 | { OMAP_TAG_LCD, &sdp4430_lcd_config }, | 389 | { OMAP_TAG_LCD, &sdp4430_lcd_config }, |
390 | }; | 390 | }; |
391 | 391 | ||
392 | static void __init omap_4430sdp_init_early(void) | ||
393 | { | ||
394 | omap2_init_common_infrastructure(); | ||
395 | } | ||
396 | |||
397 | static struct omap_musb_board_data musb_board_data = { | 392 | static struct omap_musb_board_data musb_board_data = { |
398 | .interface_type = MUSB_INTERFACE_UTMI, | 393 | .interface_type = MUSB_INTERFACE_UTMI, |
399 | .mode = MUSB_OTG, | 394 | .mode = MUSB_OTG, |
@@ -841,7 +836,7 @@ MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") | |||
841 | .boot_params = 0x80000100, | 836 | .boot_params = 0x80000100, |
842 | .reserve = omap_reserve, | 837 | .reserve = omap_reserve, |
843 | .map_io = omap_4430sdp_map_io, | 838 | .map_io = omap_4430sdp_map_io, |
844 | .init_early = omap_4430sdp_init_early, | 839 | .init_early = omap4430_init_early, |
845 | .init_irq = gic_init_irq, | 840 | .init_irq = gic_init_irq, |
846 | .init_machine = omap_4430sdp_init, | 841 | .init_machine = omap_4430sdp_init, |
847 | .timer = &omap4_timer, | 842 | .timer = &omap4_timer, |
diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c index 4701e8c91f16..9e1b2c248328 100644 --- a/arch/arm/mach-omap2/board-am3517crane.c +++ b/arch/arm/mach-omap2/board-am3517crane.c | |||
@@ -47,11 +47,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
47 | }; | 47 | }; |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | static void __init am3517_crane_init_early(void) | ||
51 | { | ||
52 | omap2_init_common_infrastructure(); | ||
53 | } | ||
54 | |||
55 | static struct usbhs_omap_board_data usbhs_bdata __initdata = { | 50 | static struct usbhs_omap_board_data usbhs_bdata __initdata = { |
56 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 51 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
57 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, | 52 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, |
@@ -101,7 +96,7 @@ MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD") | |||
101 | .boot_params = 0x80000100, | 96 | .boot_params = 0x80000100, |
102 | .reserve = omap_reserve, | 97 | .reserve = omap_reserve, |
103 | .map_io = omap3_map_io, | 98 | .map_io = omap3_map_io, |
104 | .init_early = am3517_crane_init_early, | 99 | .init_early = am35xx_init_early, |
105 | .init_irq = omap3_init_irq, | 100 | .init_irq = omap3_init_irq, |
106 | .init_machine = am3517_crane_init, | 101 | .init_machine = am3517_crane_init, |
107 | .timer = &omap3_timer, | 102 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index b5391a1148d2..7d842940c252 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -362,10 +362,6 @@ static struct omap_dss_board_info am3517_evm_dss_data = { | |||
362 | /* | 362 | /* |
363 | * Board initialization | 363 | * Board initialization |
364 | */ | 364 | */ |
365 | static void __init am3517_evm_init_early(void) | ||
366 | { | ||
367 | omap2_init_common_infrastructure(); | ||
368 | } | ||
369 | 365 | ||
370 | static struct omap_musb_board_data musb_board_data = { | 366 | static struct omap_musb_board_data musb_board_data = { |
371 | .interface_type = MUSB_INTERFACE_ULPI, | 367 | .interface_type = MUSB_INTERFACE_ULPI, |
@@ -493,7 +489,7 @@ MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | |||
493 | .boot_params = 0x80000100, | 489 | .boot_params = 0x80000100, |
494 | .reserve = omap_reserve, | 490 | .reserve = omap_reserve, |
495 | .map_io = omap3_map_io, | 491 | .map_io = omap3_map_io, |
496 | .init_early = am3517_evm_init_early, | 492 | .init_early = am35xx_init_early, |
497 | .init_irq = omap3_init_irq, | 493 | .init_irq = omap3_init_irq, |
498 | .init_machine = am3517_evm_init, | 494 | .init_machine = am3517_evm_init, |
499 | .timer = &omap3_timer, | 495 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index 6d88ffa2477d..cf546f86014e 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -273,11 +273,6 @@ static struct omap_board_config_kernel apollon_config[] __initdata = { | |||
273 | { OMAP_TAG_LCD, &apollon_lcd_config }, | 273 | { OMAP_TAG_LCD, &apollon_lcd_config }, |
274 | }; | 274 | }; |
275 | 275 | ||
276 | static void __init omap_apollon_init_early(void) | ||
277 | { | ||
278 | omap2_init_common_infrastructure(); | ||
279 | } | ||
280 | |||
281 | static struct gpio apollon_gpio_leds[] __initdata = { | 276 | static struct gpio apollon_gpio_leds[] __initdata = { |
282 | { LED0_GPIO13, GPIOF_OUT_INIT_LOW, "LED0" }, /* LED0 - AA10 */ | 277 | { LED0_GPIO13, GPIOF_OUT_INIT_LOW, "LED0" }, /* LED0 - AA10 */ |
283 | { LED1_GPIO14, GPIOF_OUT_INIT_LOW, "LED1" }, /* LED1 - AA6 */ | 278 | { LED1_GPIO14, GPIOF_OUT_INIT_LOW, "LED1" }, /* LED1 - AA6 */ |
@@ -353,7 +348,7 @@ MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon") | |||
353 | .boot_params = 0x80000100, | 348 | .boot_params = 0x80000100, |
354 | .reserve = omap_reserve, | 349 | .reserve = omap_reserve, |
355 | .map_io = omap_apollon_map_io, | 350 | .map_io = omap_apollon_map_io, |
356 | .init_early = omap_apollon_init_early, | 351 | .init_early = omap2420_init_early, |
357 | .init_irq = omap2_init_irq, | 352 | .init_irq = omap2_init_irq, |
358 | .init_machine = omap_apollon_init, | 353 | .init_machine = omap_apollon_init, |
359 | .timer = &omap2_timer, | 354 | .timer = &omap2_timer, |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 0f2549659879..e15d39bffe79 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -471,11 +471,6 @@ static void __init cm_t35_init_i2c(void) | |||
471 | omap3_pmic_init("tps65930", &cm_t35_twldata); | 471 | omap3_pmic_init("tps65930", &cm_t35_twldata); |
472 | } | 472 | } |
473 | 473 | ||
474 | static void __init cm_t35_init_early(void) | ||
475 | { | ||
476 | omap2_init_common_infrastructure(); | ||
477 | } | ||
478 | |||
479 | #ifdef CONFIG_OMAP_MUX | 474 | #ifdef CONFIG_OMAP_MUX |
480 | static struct omap_board_mux board_mux[] __initdata = { | 475 | static struct omap_board_mux board_mux[] __initdata = { |
481 | /* nCS and IRQ for CM-T35 ethernet */ | 476 | /* nCS and IRQ for CM-T35 ethernet */ |
@@ -637,7 +632,7 @@ MACHINE_START(CM_T35, "Compulab CM-T35") | |||
637 | .boot_params = 0x80000100, | 632 | .boot_params = 0x80000100, |
638 | .reserve = omap_reserve, | 633 | .reserve = omap_reserve, |
639 | .map_io = omap3_map_io, | 634 | .map_io = omap3_map_io, |
640 | .init_early = cm_t35_init_early, | 635 | .init_early = omap35xx_init_early, |
641 | .init_irq = omap3_init_irq, | 636 | .init_irq = omap3_init_irq, |
642 | .init_machine = cm_t35_init, | 637 | .init_machine = cm_t35_init, |
643 | .timer = &omap3_timer, | 638 | .timer = &omap3_timer, |
@@ -647,7 +642,7 @@ MACHINE_START(CM_T3730, "Compulab CM-T3730") | |||
647 | .boot_params = 0x80000100, | 642 | .boot_params = 0x80000100, |
648 | .reserve = omap_reserve, | 643 | .reserve = omap_reserve, |
649 | .map_io = omap3_map_io, | 644 | .map_io = omap3_map_io, |
650 | .init_early = cm_t35_init_early, | 645 | .init_early = omap3630_init_early, |
651 | .init_irq = omap3_init_irq, | 646 | .init_irq = omap3_init_irq, |
652 | .init_machine = cm_t3730_init, | 647 | .init_machine = cm_t3730_init, |
653 | .timer = &omap3_timer, | 648 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 88e1f74433e6..867bf671719c 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -251,11 +251,6 @@ static inline void cm_t3517_init_nand(void) {} | |||
251 | static struct omap_board_config_kernel cm_t3517_config[] __initdata = { | 251 | static struct omap_board_config_kernel cm_t3517_config[] __initdata = { |
252 | }; | 252 | }; |
253 | 253 | ||
254 | static void __init cm_t3517_init_early(void) | ||
255 | { | ||
256 | omap2_init_common_infrastructure(); | ||
257 | } | ||
258 | |||
259 | #ifdef CONFIG_OMAP_MUX | 254 | #ifdef CONFIG_OMAP_MUX |
260 | static struct omap_board_mux board_mux[] __initdata = { | 255 | static struct omap_board_mux board_mux[] __initdata = { |
261 | /* GPIO186 - Green LED */ | 256 | /* GPIO186 - Green LED */ |
@@ -302,7 +297,7 @@ MACHINE_START(CM_T3517, "Compulab CM-T3517") | |||
302 | .boot_params = 0x80000100, | 297 | .boot_params = 0x80000100, |
303 | .reserve = omap_reserve, | 298 | .reserve = omap_reserve, |
304 | .map_io = omap3_map_io, | 299 | .map_io = omap3_map_io, |
305 | .init_early = cm_t3517_init_early, | 300 | .init_early = am35xx_init_early, |
306 | .init_irq = omap3_init_irq, | 301 | .init_irq = omap3_init_irq, |
307 | .init_machine = cm_t3517_init, | 302 | .init_machine = cm_t3517_init, |
308 | .timer = &omap3_timer, | 303 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 631dc5821e1f..4b1f6c68c358 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -397,12 +397,6 @@ static struct platform_device keys_gpio = { | |||
397 | }, | 397 | }, |
398 | }; | 398 | }; |
399 | 399 | ||
400 | |||
401 | static void __init devkit8000_init_early(void) | ||
402 | { | ||
403 | omap2_init_common_infrastructure(); | ||
404 | } | ||
405 | |||
406 | static void __init devkit8000_init_irq(void) | 400 | static void __init devkit8000_init_irq(void) |
407 | { | 401 | { |
408 | omap3_init_irq(); | 402 | omap3_init_irq(); |
@@ -670,7 +664,7 @@ MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") | |||
670 | .boot_params = 0x80000100, | 664 | .boot_params = 0x80000100, |
671 | .reserve = omap_reserve, | 665 | .reserve = omap_reserve, |
672 | .map_io = omap3_map_io, | 666 | .map_io = omap3_map_io, |
673 | .init_early = devkit8000_init_early, | 667 | .init_early = omap35xx_init_early, |
674 | .init_irq = devkit8000_init_irq, | 668 | .init_irq = devkit8000_init_irq, |
675 | .init_machine = devkit8000_init, | 669 | .init_machine = devkit8000_init, |
676 | .timer = &omap3_secure_timer, | 670 | .timer = &omap3_secure_timer, |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 84ca5c02d326..948fde010c69 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -290,11 +290,6 @@ static struct omap_board_config_kernel h4_config[] __initdata = { | |||
290 | { OMAP_TAG_LCD, &h4_lcd_config }, | 290 | { OMAP_TAG_LCD, &h4_lcd_config }, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static void __init omap_h4_init_early(void) | ||
294 | { | ||
295 | omap2_init_common_infrastructure(); | ||
296 | } | ||
297 | |||
298 | static void __init omap_h4_init_irq(void) | 293 | static void __init omap_h4_init_irq(void) |
299 | { | 294 | { |
300 | omap2_init_irq(); | 295 | omap2_init_irq(); |
@@ -385,7 +380,7 @@ MACHINE_START(OMAP_H4, "OMAP2420 H4 board") | |||
385 | .boot_params = 0x80000100, | 380 | .boot_params = 0x80000100, |
386 | .reserve = omap_reserve, | 381 | .reserve = omap_reserve, |
387 | .map_io = omap_h4_map_io, | 382 | .map_io = omap_h4_map_io, |
388 | .init_early = omap_h4_init_early, | 383 | .init_early = omap2420_init_early, |
389 | .init_irq = omap_h4_init_irq, | 384 | .init_irq = omap_h4_init_irq, |
390 | .init_machine = omap_h4_init, | 385 | .init_machine = omap_h4_init, |
391 | .timer = &omap2_timer, | 386 | .timer = &omap2_timer, |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 1b2309febee8..7b66338e451b 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -491,11 +491,6 @@ static struct platform_device *igep_devices[] __initdata = { | |||
491 | &igep_vwlan_device, | 491 | &igep_vwlan_device, |
492 | }; | 492 | }; |
493 | 493 | ||
494 | static void __init igep_init_early(void) | ||
495 | { | ||
496 | omap2_init_common_infrastructure(); | ||
497 | } | ||
498 | |||
499 | static int igep2_keymap[] = { | 494 | static int igep2_keymap[] = { |
500 | KEY(0, 0, KEY_LEFT), | 495 | KEY(0, 0, KEY_LEFT), |
501 | KEY(0, 1, KEY_RIGHT), | 496 | KEY(0, 1, KEY_RIGHT), |
@@ -675,7 +670,7 @@ MACHINE_START(IGEP0020, "IGEP v2 board") | |||
675 | .boot_params = 0x80000100, | 670 | .boot_params = 0x80000100, |
676 | .reserve = omap_reserve, | 671 | .reserve = omap_reserve, |
677 | .map_io = omap3_map_io, | 672 | .map_io = omap3_map_io, |
678 | .init_early = igep_init_early, | 673 | .init_early = omap35xx_init_early, |
679 | .init_irq = omap3_init_irq, | 674 | .init_irq = omap3_init_irq, |
680 | .init_machine = igep_init, | 675 | .init_machine = igep_init, |
681 | .timer = &omap3_timer, | 676 | .timer = &omap3_timer, |
@@ -685,7 +680,7 @@ MACHINE_START(IGEP0030, "IGEP OMAP3 module") | |||
685 | .boot_params = 0x80000100, | 680 | .boot_params = 0x80000100, |
686 | .reserve = omap_reserve, | 681 | .reserve = omap_reserve, |
687 | .map_io = omap3_map_io, | 682 | .map_io = omap3_map_io, |
688 | .init_early = igep_init_early, | 683 | .init_early = omap35xx_init_early, |
689 | .init_irq = omap3_init_irq, | 684 | .init_irq = omap3_init_irq, |
690 | .init_machine = igep_init, | 685 | .init_machine = igep_init, |
691 | .timer = &omap3_timer, | 686 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index c45a0f4df81f..401b9449f722 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -193,11 +193,6 @@ static struct omap_board_config_kernel ldp_config[] __initdata = { | |||
193 | { OMAP_TAG_LCD, &ldp_lcd_config }, | 193 | { OMAP_TAG_LCD, &ldp_lcd_config }, |
194 | }; | 194 | }; |
195 | 195 | ||
196 | static void __init omap_ldp_init_early(void) | ||
197 | { | ||
198 | omap2_init_common_infrastructure(); | ||
199 | } | ||
200 | |||
201 | static struct twl4030_gpio_platform_data ldp_gpio_data = { | 196 | static struct twl4030_gpio_platform_data ldp_gpio_data = { |
202 | .gpio_base = OMAP_MAX_GPIO_LINES, | 197 | .gpio_base = OMAP_MAX_GPIO_LINES, |
203 | .irq_base = TWL4030_GPIO_IRQ_BASE, | 198 | .irq_base = TWL4030_GPIO_IRQ_BASE, |
@@ -336,7 +331,7 @@ MACHINE_START(OMAP_LDP, "OMAP LDP board") | |||
336 | .boot_params = 0x80000100, | 331 | .boot_params = 0x80000100, |
337 | .reserve = omap_reserve, | 332 | .reserve = omap_reserve, |
338 | .map_io = omap3_map_io, | 333 | .map_io = omap3_map_io, |
339 | .init_early = omap_ldp_init_early, | 334 | .init_early = omap3430_init_early, |
340 | .init_irq = omap3_init_irq, | 335 | .init_irq = omap3_init_irq, |
341 | .init_machine = omap_ldp_init, | 336 | .init_machine = omap_ldp_init, |
342 | .timer = &omap3_timer, | 337 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 2545a4aaee5a..77a4e19222e2 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -622,11 +622,6 @@ static void __init n8x0_map_io(void) | |||
622 | omap242x_map_common_io(); | 622 | omap242x_map_common_io(); |
623 | } | 623 | } |
624 | 624 | ||
625 | static void __init n8x0_init_early(void) | ||
626 | { | ||
627 | omap2_init_common_infrastructure(); | ||
628 | } | ||
629 | |||
630 | #ifdef CONFIG_OMAP_MUX | 625 | #ifdef CONFIG_OMAP_MUX |
631 | static struct omap_board_mux board_mux[] __initdata = { | 626 | static struct omap_board_mux board_mux[] __initdata = { |
632 | /* I2S codec port pins for McBSP block */ | 627 | /* I2S codec port pins for McBSP block */ |
@@ -698,7 +693,7 @@ MACHINE_START(NOKIA_N800, "Nokia N800") | |||
698 | .boot_params = 0x80000100, | 693 | .boot_params = 0x80000100, |
699 | .reserve = omap_reserve, | 694 | .reserve = omap_reserve, |
700 | .map_io = n8x0_map_io, | 695 | .map_io = n8x0_map_io, |
701 | .init_early = n8x0_init_early, | 696 | .init_early = omap2420_init_early, |
702 | .init_irq = omap2_init_irq, | 697 | .init_irq = omap2_init_irq, |
703 | .init_machine = n8x0_init_machine, | 698 | .init_machine = n8x0_init_machine, |
704 | .timer = &omap2_timer, | 699 | .timer = &omap2_timer, |
@@ -708,7 +703,7 @@ MACHINE_START(NOKIA_N810, "Nokia N810") | |||
708 | .boot_params = 0x80000100, | 703 | .boot_params = 0x80000100, |
709 | .reserve = omap_reserve, | 704 | .reserve = omap_reserve, |
710 | .map_io = n8x0_map_io, | 705 | .map_io = n8x0_map_io, |
711 | .init_early = n8x0_init_early, | 706 | .init_early = omap2420_init_early, |
712 | .init_irq = omap2_init_irq, | 707 | .init_irq = omap2_init_irq, |
713 | .init_machine = n8x0_init_machine, | 708 | .init_machine = n8x0_init_machine, |
714 | .timer = &omap2_timer, | 709 | .timer = &omap2_timer, |
@@ -718,7 +713,7 @@ MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | |||
718 | .boot_params = 0x80000100, | 713 | .boot_params = 0x80000100, |
719 | .reserve = omap_reserve, | 714 | .reserve = omap_reserve, |
720 | .map_io = n8x0_map_io, | 715 | .map_io = n8x0_map_io, |
721 | .init_early = n8x0_init_early, | 716 | .init_early = omap2420_init_early, |
722 | .init_irq = omap2_init_irq, | 717 | .init_irq = omap2_init_irq, |
723 | .init_machine = n8x0_init_machine, | 718 | .init_machine = n8x0_init_machine, |
724 | .timer = &omap2_timer, | 719 | .timer = &omap2_timer, |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 0735bca30e4c..a1184b347aeb 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -520,11 +520,6 @@ static int __init omap3_evm_i2c_init(void) | |||
520 | static struct omap_board_config_kernel omap3_evm_config[] __initdata = { | 520 | static struct omap_board_config_kernel omap3_evm_config[] __initdata = { |
521 | }; | 521 | }; |
522 | 522 | ||
523 | static void __init omap3_evm_init_early(void) | ||
524 | { | ||
525 | omap2_init_common_infrastructure(); | ||
526 | } | ||
527 | |||
528 | static struct usbhs_omap_board_data usbhs_bdata __initdata = { | 523 | static struct usbhs_omap_board_data usbhs_bdata __initdata = { |
529 | 524 | ||
530 | .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED, | 525 | .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED, |
@@ -684,7 +679,7 @@ MACHINE_START(OMAP3EVM, "OMAP3 EVM") | |||
684 | .boot_params = 0x80000100, | 679 | .boot_params = 0x80000100, |
685 | .reserve = omap_reserve, | 680 | .reserve = omap_reserve, |
686 | .map_io = omap3_map_io, | 681 | .map_io = omap3_map_io, |
687 | .init_early = omap3_evm_init_early, | 682 | .init_early = omap35xx_init_early, |
688 | .init_irq = omap3_init_irq, | 683 | .init_irq = omap3_init_irq, |
689 | .init_machine = omap3_evm_init, | 684 | .init_machine = omap3_evm_init, |
690 | .timer = &omap3_timer, | 685 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index 2e0b0116a83a..3a1dd84faca0 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -182,11 +182,6 @@ static inline void __init board_smsc911x_init(void) | |||
182 | gpmc_smsc911x_init(&board_smsc911x_data); | 182 | gpmc_smsc911x_init(&board_smsc911x_data); |
183 | } | 183 | } |
184 | 184 | ||
185 | static void __init omap3logic_init_early(void) | ||
186 | { | ||
187 | omap2_init_common_infrastructure(); | ||
188 | } | ||
189 | |||
190 | #ifdef CONFIG_OMAP_MUX | 185 | #ifdef CONFIG_OMAP_MUX |
191 | static struct omap_board_mux board_mux[] __initdata = { | 186 | static struct omap_board_mux board_mux[] __initdata = { |
192 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 187 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
@@ -211,7 +206,7 @@ static void __init omap3logic_init(void) | |||
211 | MACHINE_START(OMAP3_TORPEDO, "Logic OMAP3 Torpedo board") | 206 | MACHINE_START(OMAP3_TORPEDO, "Logic OMAP3 Torpedo board") |
212 | .boot_params = 0x80000100, | 207 | .boot_params = 0x80000100, |
213 | .map_io = omap3_map_io, | 208 | .map_io = omap3_map_io, |
214 | .init_early = omap3logic_init_early, | 209 | .init_early = omap35xx_init_early, |
215 | .init_irq = omap3_init_irq, | 210 | .init_irq = omap3_init_irq, |
216 | .init_machine = omap3logic_init, | 211 | .init_machine = omap3logic_init, |
217 | .timer = &omap3_timer, | 212 | .timer = &omap3_timer, |
@@ -220,7 +215,7 @@ MACHINE_END | |||
220 | MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") | 215 | MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") |
221 | .boot_params = 0x80000100, | 216 | .boot_params = 0x80000100, |
222 | .map_io = omap3_map_io, | 217 | .map_io = omap3_map_io, |
223 | .init_early = omap3logic_init_early, | 218 | .init_early = omap35xx_init_early, |
224 | .init_irq = omap3_init_irq, | 219 | .init_irq = omap3_init_irq, |
225 | .init_machine = omap3logic_init, | 220 | .init_machine = omap3logic_init, |
226 | .timer = &omap3_timer, | 221 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 0f70566c7edf..e46bf5249559 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -525,11 +525,6 @@ static struct spi_board_info omap3pandora_spi_board_info[] __initdata = { | |||
525 | } | 525 | } |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static void __init omap3pandora_init_early(void) | ||
529 | { | ||
530 | omap2_init_common_infrastructure(); | ||
531 | } | ||
532 | |||
533 | static void __init pandora_wl1251_init(void) | 528 | static void __init pandora_wl1251_init(void) |
534 | { | 529 | { |
535 | struct wl12xx_platform_data pandora_wl1251_pdata; | 530 | struct wl12xx_platform_data pandora_wl1251_pdata; |
@@ -609,7 +604,7 @@ MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console") | |||
609 | .boot_params = 0x80000100, | 604 | .boot_params = 0x80000100, |
610 | .reserve = omap_reserve, | 605 | .reserve = omap_reserve, |
611 | .map_io = omap3_map_io, | 606 | .map_io = omap3_map_io, |
612 | .init_early = omap3pandora_init_early, | 607 | .init_early = omap35xx_init_early, |
613 | .init_irq = omap3_init_irq, | 608 | .init_irq = omap3_init_irq, |
614 | .init_machine = omap3pandora_init, | 609 | .init_machine = omap3pandora_init, |
615 | .timer = &omap3_timer, | 610 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 04981f9b2e42..807c27406792 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -428,11 +428,6 @@ static int __init omap3_stalker_i2c_init(void) | |||
428 | static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { | 428 | static struct omap_board_config_kernel omap3_stalker_config[] __initdata = { |
429 | }; | 429 | }; |
430 | 430 | ||
431 | static void __init omap3_stalker_init_early(void) | ||
432 | { | ||
433 | omap2_init_common_infrastructure(); | ||
434 | } | ||
435 | |||
436 | static void __init omap3_stalker_init_irq(void) | 431 | static void __init omap3_stalker_init_irq(void) |
437 | { | 432 | { |
438 | omap3_init_irq(); | 433 | omap3_init_irq(); |
@@ -496,7 +491,7 @@ MACHINE_START(SBC3530, "OMAP3 STALKER") | |||
496 | /* Maintainer: Jason Lam -lzg@ema-tech.com */ | 491 | /* Maintainer: Jason Lam -lzg@ema-tech.com */ |
497 | .boot_params = 0x80000100, | 492 | .boot_params = 0x80000100, |
498 | .map_io = omap3_map_io, | 493 | .map_io = omap3_map_io, |
499 | .init_early = omap3_stalker_init_early, | 494 | .init_early = omap35xx_init_early, |
500 | .init_irq = omap3_stalker_init_irq, | 495 | .init_irq = omap3_stalker_init_irq, |
501 | .init_machine = omap3_stalker_init, | 496 | .init_machine = omap3_stalker_init, |
502 | .timer = &omap3_secure_timer, | 497 | .timer = &omap3_secure_timer, |
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index b3fe7adce6d3..f7f18092f36d 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -326,11 +326,6 @@ static struct omap_board_mux board_mux[] __initdata = { | |||
326 | }; | 326 | }; |
327 | #endif | 327 | #endif |
328 | 328 | ||
329 | static void __init omap3_touchbook_init_early(void) | ||
330 | { | ||
331 | omap2_init_common_infrastructure(); | ||
332 | } | ||
333 | |||
334 | static void __init omap3_touchbook_init_irq(void) | 329 | static void __init omap3_touchbook_init_irq(void) |
335 | { | 330 | { |
336 | omap3_init_irq(); | 331 | omap3_init_irq(); |
@@ -407,7 +402,7 @@ MACHINE_START(TOUCHBOOK, "OMAP3 touchbook Board") | |||
407 | .boot_params = 0x80000100, | 402 | .boot_params = 0x80000100, |
408 | .reserve = omap_reserve, | 403 | .reserve = omap_reserve, |
409 | .map_io = omap3_map_io, | 404 | .map_io = omap3_map_io, |
410 | .init_early = omap3_touchbook_init_early, | 405 | .init_early = omap3430_init_early, |
411 | .init_irq = omap3_touchbook_init_irq, | 406 | .init_irq = omap3_touchbook_init_irq, |
412 | .init_machine = omap3_touchbook_init, | 407 | .init_machine = omap3_touchbook_init, |
413 | .timer = &omap3_secure_timer, | 408 | .timer = &omap3_secure_timer, |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index b730ca5f5544..1bce76589784 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -95,11 +95,6 @@ static struct platform_device *panda_devices[] __initdata = { | |||
95 | &wl1271_device, | 95 | &wl1271_device, |
96 | }; | 96 | }; |
97 | 97 | ||
98 | static void __init omap4_panda_init_early(void) | ||
99 | { | ||
100 | omap2_init_common_infrastructure(); | ||
101 | } | ||
102 | |||
103 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { | 98 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { |
104 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 99 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
105 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, | 100 | .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, |
@@ -586,7 +581,7 @@ MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board") | |||
586 | .boot_params = 0x80000100, | 581 | .boot_params = 0x80000100, |
587 | .reserve = omap_reserve, | 582 | .reserve = omap_reserve, |
588 | .map_io = omap4_panda_map_io, | 583 | .map_io = omap4_panda_map_io, |
589 | .init_early = omap4_panda_init_early, | 584 | .init_early = omap4430_init_early, |
590 | .init_irq = gic_init_irq, | 585 | .init_irq = gic_init_irq, |
591 | .init_machine = omap4_panda_init, | 586 | .init_machine = omap4_panda_init, |
592 | .timer = &omap4_timer, | 587 | .timer = &omap4_timer, |
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index c3bd1af7a15d..7228ae50802d 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -478,11 +478,6 @@ static int __init overo_spi_init(void) | |||
478 | return 0; | 478 | return 0; |
479 | } | 479 | } |
480 | 480 | ||
481 | static void __init overo_init_early(void) | ||
482 | { | ||
483 | omap2_init_common_infrastructure(); | ||
484 | } | ||
485 | |||
486 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { | 481 | static const struct usbhs_omap_board_data usbhs_bdata __initconst = { |
487 | .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED, | 482 | .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED, |
488 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, | 483 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, |
@@ -564,7 +559,7 @@ MACHINE_START(OVERO, "Gumstix Overo") | |||
564 | .boot_params = 0x80000100, | 559 | .boot_params = 0x80000100, |
565 | .reserve = omap_reserve, | 560 | .reserve = omap_reserve, |
566 | .map_io = omap3_map_io, | 561 | .map_io = omap3_map_io, |
567 | .init_early = overo_init_early, | 562 | .init_early = omap35xx_init_early, |
568 | .init_irq = omap3_init_irq, | 563 | .init_irq = omap3_init_irq, |
569 | .init_machine = overo_init, | 564 | .init_machine = overo_init, |
570 | .timer = &omap3_timer, | 565 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index a6f76e13c15b..a3182e846b14 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -123,11 +123,6 @@ static void __init rm680_peripherals_init(void) | |||
123 | omap2_hsmmc_init(mmc); | 123 | omap2_hsmmc_init(mmc); |
124 | } | 124 | } |
125 | 125 | ||
126 | static void __init rm680_init_early(void) | ||
127 | { | ||
128 | omap2_init_common_infrastructure(); | ||
129 | } | ||
130 | |||
131 | #ifdef CONFIG_OMAP_MUX | 126 | #ifdef CONFIG_OMAP_MUX |
132 | static struct omap_board_mux board_mux[] __initdata = { | 127 | static struct omap_board_mux board_mux[] __initdata = { |
133 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 128 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
@@ -158,7 +153,7 @@ MACHINE_START(NOKIA_RM680, "Nokia RM-680 board") | |||
158 | .boot_params = 0x80000100, | 153 | .boot_params = 0x80000100, |
159 | .reserve = omap_reserve, | 154 | .reserve = omap_reserve, |
160 | .map_io = rm680_map_io, | 155 | .map_io = rm680_map_io, |
161 | .init_early = rm680_init_early, | 156 | .init_early = omap3630_init_early, |
162 | .init_irq = omap3_init_irq, | 157 | .init_irq = omap3_init_irq, |
163 | .init_machine = rm680_init, | 158 | .init_machine = rm680_init, |
164 | .timer = &omap3_timer, | 159 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 656a8b5a9012..32a79e28379c 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -102,11 +102,6 @@ static struct omap_board_config_kernel rx51_config[] = { | |||
102 | { OMAP_TAG_LCD, &rx51_lcd_config }, | 102 | { OMAP_TAG_LCD, &rx51_lcd_config }, |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static void __init rx51_init_early(void) | ||
106 | { | ||
107 | omap2_init_common_infrastructure(); | ||
108 | } | ||
109 | |||
110 | extern void __init rx51_peripherals_init(void); | 105 | extern void __init rx51_peripherals_init(void); |
111 | 106 | ||
112 | #ifdef CONFIG_OMAP_MUX | 107 | #ifdef CONFIG_OMAP_MUX |
@@ -161,7 +156,7 @@ MACHINE_START(NOKIA_RX51, "Nokia RX-51 board") | |||
161 | .boot_params = 0x80000100, | 156 | .boot_params = 0x80000100, |
162 | .reserve = rx51_reserve, | 157 | .reserve = rx51_reserve, |
163 | .map_io = rx51_map_io, | 158 | .map_io = rx51_map_io, |
164 | .init_early = rx51_init_early, | 159 | .init_early = omap3430_init_early, |
165 | .init_irq = omap3_init_irq, | 160 | .init_irq = omap3_init_irq, |
166 | .init_machine = rx51_init, | 161 | .init_machine = rx51_init, |
167 | .timer = &omap3_timer, | 162 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index e249c3d8918d..981ca00d6e29 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -27,11 +27,6 @@ | |||
27 | static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { | 27 | static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { |
28 | }; | 28 | }; |
29 | 29 | ||
30 | static void __init ti8168_init_early(void) | ||
31 | { | ||
32 | omap2_init_common_infrastructure(); | ||
33 | } | ||
34 | |||
35 | static void __init ti8168_evm_init(void) | 30 | static void __init ti8168_evm_init(void) |
36 | { | 31 | { |
37 | omap_serial_init(); | 32 | omap_serial_init(); |
@@ -50,7 +45,7 @@ MACHINE_START(TI8168EVM, "ti8168evm") | |||
50 | /* Maintainer: Texas Instruments */ | 45 | /* Maintainer: Texas Instruments */ |
51 | .boot_params = 0x80000100, | 46 | .boot_params = 0x80000100, |
52 | .map_io = ti8168_evm_map_io, | 47 | .map_io = ti8168_evm_map_io, |
53 | .init_early = ti8168_init_early, | 48 | .init_early = ti816x_init_early, |
54 | .init_irq = ti816x_init_irq, | 49 | .init_irq = ti816x_init_irq, |
55 | .timer = &omap3_timer, | 50 | .timer = &omap3_timer, |
56 | .init_machine = ti8168_evm_init, | 51 | .init_machine = ti8168_evm_init, |
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index 569526456420..d56c79661038 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -34,11 +34,6 @@ | |||
34 | 34 | ||
35 | #define ZOOM3_EHCI_RESET_GPIO 64 | 35 | #define ZOOM3_EHCI_RESET_GPIO 64 |
36 | 36 | ||
37 | static void __init omap_zoom_init_early(void) | ||
38 | { | ||
39 | omap2_init_common_infrastructure(); | ||
40 | } | ||
41 | |||
42 | #ifdef CONFIG_OMAP_MUX | 37 | #ifdef CONFIG_OMAP_MUX |
43 | static struct omap_board_mux board_mux[] __initdata = { | 38 | static struct omap_board_mux board_mux[] __initdata = { |
44 | /* WLAN IRQ - GPIO 162 */ | 39 | /* WLAN IRQ - GPIO 162 */ |
@@ -138,7 +133,7 @@ MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | |||
138 | .boot_params = 0x80000100, | 133 | .boot_params = 0x80000100, |
139 | .reserve = omap_reserve, | 134 | .reserve = omap_reserve, |
140 | .map_io = omap3_map_io, | 135 | .map_io = omap3_map_io, |
141 | .init_early = omap_zoom_init_early, | 136 | .init_early = omap3430_init_early, |
142 | .init_irq = omap3_init_irq, | 137 | .init_irq = omap3_init_irq, |
143 | .init_machine = omap_zoom_init, | 138 | .init_machine = omap_zoom_init, |
144 | .timer = &omap3_timer, | 139 | .timer = &omap3_timer, |
@@ -148,7 +143,7 @@ MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | |||
148 | .boot_params = 0x80000100, | 143 | .boot_params = 0x80000100, |
149 | .reserve = omap_reserve, | 144 | .reserve = omap_reserve, |
150 | .map_io = omap3_map_io, | 145 | .map_io = omap3_map_io, |
151 | .init_early = omap_zoom_init_early, | 146 | .init_early = omap3630_init_early, |
152 | .init_irq = omap3_init_irq, | 147 | .init_irq = omap3_init_irq, |
153 | .init_machine = omap_zoom_init, | 148 | .init_machine = omap_zoom_init, |
154 | .timer = &omap3_timer, | 149 | .timer = &omap3_timer, |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 9258a5c7f735..132724c39e2a 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -400,6 +400,46 @@ void __init omap2_init_common_infrastructure(void) | |||
400 | pr_err("Could not init clock framework - unknown SoC\n"); | 400 | pr_err("Could not init clock framework - unknown SoC\n"); |
401 | } | 401 | } |
402 | 402 | ||
403 | void __init omap2420_init_early(void) | ||
404 | { | ||
405 | omap2_init_common_infrastructure(); | ||
406 | } | ||
407 | |||
408 | void __init omap2430_init_early(void) | ||
409 | { | ||
410 | omap2_init_common_infrastructure(); | ||
411 | } | ||
412 | |||
413 | void __init omap3430_init_early(void) | ||
414 | { | ||
415 | omap2_init_common_infrastructure(); | ||
416 | } | ||
417 | |||
418 | void __init omap35xx_init_early(void) | ||
419 | { | ||
420 | omap2_init_common_infrastructure(); | ||
421 | } | ||
422 | |||
423 | void __init omap3630_init_early(void) | ||
424 | { | ||
425 | omap2_init_common_infrastructure(); | ||
426 | } | ||
427 | |||
428 | void __init am35xx_init_early(void) | ||
429 | { | ||
430 | omap2_init_common_infrastructure(); | ||
431 | } | ||
432 | |||
433 | void __init ti816x_init_early(void) | ||
434 | { | ||
435 | omap2_init_common_infrastructure(); | ||
436 | } | ||
437 | |||
438 | void __init omap4430_init_early(void) | ||
439 | { | ||
440 | omap2_init_common_infrastructure(); | ||
441 | } | ||
442 | |||
403 | void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, | 443 | void __init omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0, |
404 | struct omap_sdrc_params *sdrc_cs1) | 444 | struct omap_sdrc_params *sdrc_cs1) |
405 | { | 445 | { |
diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h index 4564cc697d7f..5cac97e36079 100644 --- a/arch/arm/plat-omap/include/plat/common.h +++ b/arch/arm/plat-omap/include/plat/common.h | |||
@@ -45,6 +45,15 @@ extern unsigned long long notrace omap_32k_sched_clock(void); | |||
45 | 45 | ||
46 | extern void omap_reserve(void); | 46 | extern void omap_reserve(void); |
47 | 47 | ||
48 | void omap2420_init_early(void); | ||
49 | void omap2430_init_early(void); | ||
50 | void omap3430_init_early(void); | ||
51 | void omap35xx_init_early(void); | ||
52 | void omap3630_init_early(void); | ||
53 | void am35xx_init_early(void); | ||
54 | void ti816x_init_early(void); | ||
55 | void omap4430_init_early(void); | ||
56 | |||
48 | /* | 57 | /* |
49 | * IO bases for various OMAP processors | 58 | * IO bases for various OMAP processors |
50 | * Except the tap base, rest all the io bases | 59 | * Except the tap base, rest all the io bases |