diff options
author | Tony Lindgren <tony@atomide.com> | 2011-05-17 06:51:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-06-16 08:42:09 -0400 |
commit | 741e3a89dee8a17aa9373975d51f130a65e1683d (patch) | |
tree | 957bb18910ad8412f3f308f18e80aaa37b7bd96a /arch/arm/mach-omap2 | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff) |
omap: Use separate init_irq functions to avoid cpu_is_omap tests early
This allows us to remove cpu_is_omap calls from init_irq functions.
There should not be any need for cpu_is_omap calls as at this point.
During the timer init we only care about SoC generation, and not about
subrevisions.
The main reason for the patch is that we want to initialize only
minimal omap specific code from the init_early call.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
28 files changed, 57 insertions, 67 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 5de6eac0a725..45cabc5283e4 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -260,7 +260,7 @@ MACHINE_START(OMAP_2430SDP, "OMAP2430 sdp2430 board") | |||
260 | .reserve = omap_reserve, | 260 | .reserve = omap_reserve, |
261 | .map_io = omap_2430sdp_map_io, | 261 | .map_io = omap_2430sdp_map_io, |
262 | .init_early = omap_2430sdp_init_early, | 262 | .init_early = omap_2430sdp_init_early, |
263 | .init_irq = omap_init_irq, | 263 | .init_irq = omap2_init_irq, |
264 | .init_machine = omap_2430sdp_init, | 264 | .init_machine = omap_2430sdp_init, |
265 | .timer = &omap_timer, | 265 | .timer = &omap_timer, |
266 | MACHINE_END | 266 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 5dac974be625..85b207f03865 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -804,7 +804,7 @@ MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") | |||
804 | .reserve = omap_reserve, | 804 | .reserve = omap_reserve, |
805 | .map_io = omap3_map_io, | 805 | .map_io = omap3_map_io, |
806 | .init_early = omap_3430sdp_init_early, | 806 | .init_early = omap_3430sdp_init_early, |
807 | .init_irq = omap_init_irq, | 807 | .init_irq = omap3_init_irq, |
808 | .init_machine = omap_3430sdp_init, | 808 | .init_machine = omap_3430sdp_init, |
809 | .timer = &omap_timer, | 809 | .timer = &omap_timer, |
810 | MACHINE_END | 810 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index a5933cc15caa..2ec2d76087da 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -219,7 +219,7 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") | |||
219 | .reserve = omap_reserve, | 219 | .reserve = omap_reserve, |
220 | .map_io = omap3_map_io, | 220 | .map_io = omap3_map_io, |
221 | .init_early = omap_sdp_init_early, | 221 | .init_early = omap_sdp_init_early, |
222 | .init_irq = omap_init_irq, | 222 | .init_irq = omap3_init_irq, |
223 | .init_machine = omap_sdp_init, | 223 | .init_machine = omap_sdp_init, |
224 | .timer = &omap_timer, | 224 | .timer = &omap_timer, |
225 | MACHINE_END | 225 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c index 5e438a77cd72..0bed0a4c8338 100644 --- a/arch/arm/mach-omap2/board-am3517crane.c +++ b/arch/arm/mach-omap2/board-am3517crane.c | |||
@@ -104,7 +104,7 @@ MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD") | |||
104 | .reserve = omap_reserve, | 104 | .reserve = omap_reserve, |
105 | .map_io = omap3_map_io, | 105 | .map_io = omap3_map_io, |
106 | .init_early = am3517_crane_init_early, | 106 | .init_early = am3517_crane_init_early, |
107 | .init_irq = omap_init_irq, | 107 | .init_irq = omap3_init_irq, |
108 | .init_machine = am3517_crane_init, | 108 | .init_machine = am3517_crane_init, |
109 | .timer = &omap_timer, | 109 | .timer = &omap_timer, |
110 | MACHINE_END | 110 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 63af4171c043..0db0fb843010 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -494,7 +494,7 @@ MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | |||
494 | .reserve = omap_reserve, | 494 | .reserve = omap_reserve, |
495 | .map_io = omap3_map_io, | 495 | .map_io = omap3_map_io, |
496 | .init_early = am3517_evm_init_early, | 496 | .init_early = am3517_evm_init_early, |
497 | .init_irq = omap_init_irq, | 497 | .init_irq = omap3_init_irq, |
498 | .init_machine = am3517_evm_init, | 498 | .init_machine = am3517_evm_init, |
499 | .timer = &omap_timer, | 499 | .timer = &omap_timer, |
500 | MACHINE_END | 500 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index b124bdfb4239..93576c8a7157 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -354,7 +354,7 @@ MACHINE_START(OMAP_APOLLON, "OMAP24xx Apollon") | |||
354 | .reserve = omap_reserve, | 354 | .reserve = omap_reserve, |
355 | .map_io = omap_apollon_map_io, | 355 | .map_io = omap_apollon_map_io, |
356 | .init_early = omap_apollon_init_early, | 356 | .init_early = omap_apollon_init_early, |
357 | .init_irq = omap_init_irq, | 357 | .init_irq = omap2_init_irq, |
358 | .init_machine = omap_apollon_init, | 358 | .init_machine = omap_apollon_init, |
359 | .timer = &omap_timer, | 359 | .timer = &omap_timer, |
360 | MACHINE_END | 360 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 77456dec93ea..2940d640a661 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -646,7 +646,7 @@ MACHINE_START(CM_T35, "Compulab CM-T35") | |||
646 | .reserve = omap_reserve, | 646 | .reserve = omap_reserve, |
647 | .map_io = omap3_map_io, | 647 | .map_io = omap3_map_io, |
648 | .init_early = cm_t35_init_early, | 648 | .init_early = cm_t35_init_early, |
649 | .init_irq = omap_init_irq, | 649 | .init_irq = omap3_init_irq, |
650 | .init_machine = cm_t35_init, | 650 | .init_machine = cm_t35_init, |
651 | .timer = &omap_timer, | 651 | .timer = &omap_timer, |
652 | MACHINE_END | 652 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index c3a9fd35034a..8f152228977c 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -304,7 +304,7 @@ MACHINE_START(CM_T3517, "Compulab CM-T3517") | |||
304 | .reserve = omap_reserve, | 304 | .reserve = omap_reserve, |
305 | .map_io = omap3_map_io, | 305 | .map_io = omap3_map_io, |
306 | .init_early = cm_t3517_init_early, | 306 | .init_early = cm_t3517_init_early, |
307 | .init_irq = omap_init_irq, | 307 | .init_irq = omap3_init_irq, |
308 | .init_machine = cm_t3517_init, | 308 | .init_machine = cm_t3517_init, |
309 | .timer = &omap_timer, | 309 | .timer = &omap_timer, |
310 | MACHINE_END | 310 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 34956ec83296..00f6cb6e3bf9 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -438,7 +438,7 @@ static void __init devkit8000_init_early(void) | |||
438 | 438 | ||
439 | static void __init devkit8000_init_irq(void) | 439 | static void __init devkit8000_init_irq(void) |
440 | { | 440 | { |
441 | omap_init_irq(); | 441 | omap3_init_irq(); |
442 | #ifdef CONFIG_OMAP_32K_TIMER | 442 | #ifdef CONFIG_OMAP_32K_TIMER |
443 | omap2_gp_clockevent_set_gptimer(12); | 443 | omap2_gp_clockevent_set_gptimer(12); |
444 | #endif | 444 | #endif |
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 73e3c31e8508..ccd503ac24bd 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -70,7 +70,7 @@ MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx") | |||
70 | .reserve = omap_reserve, | 70 | .reserve = omap_reserve, |
71 | .map_io = omap_generic_map_io, | 71 | .map_io = omap_generic_map_io, |
72 | .init_early = omap_generic_init_early, | 72 | .init_early = omap_generic_init_early, |
73 | .init_irq = omap_init_irq, | 73 | .init_irq = omap2_init_irq, |
74 | .init_machine = omap_generic_init, | 74 | .init_machine = omap_generic_init, |
75 | .timer = &omap_timer, | 75 | .timer = &omap_timer, |
76 | MACHINE_END | 76 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index bac7933b8cbb..2e16d6cb3fe1 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -298,7 +298,7 @@ static void __init omap_h4_init_early(void) | |||
298 | 298 | ||
299 | static void __init omap_h4_init_irq(void) | 299 | static void __init omap_h4_init_irq(void) |
300 | { | 300 | { |
301 | omap_init_irq(); | 301 | omap2_init_irq(); |
302 | } | 302 | } |
303 | 303 | ||
304 | static struct at24_platform_data m24c01 = { | 304 | static struct at24_platform_data m24c01 = { |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 0c1bfca3f731..359b765483f5 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -703,7 +703,7 @@ MACHINE_START(IGEP0020, "IGEP v2 board") | |||
703 | .reserve = omap_reserve, | 703 | .reserve = omap_reserve, |
704 | .map_io = omap3_map_io, | 704 | .map_io = omap3_map_io, |
705 | .init_early = igep_init_early, | 705 | .init_early = igep_init_early, |
706 | .init_irq = omap_init_irq, | 706 | .init_irq = omap3_init_irq, |
707 | .init_machine = igep_init, | 707 | .init_machine = igep_init, |
708 | .timer = &omap_timer, | 708 | .timer = &omap_timer, |
709 | MACHINE_END | 709 | MACHINE_END |
@@ -713,7 +713,7 @@ MACHINE_START(IGEP0030, "IGEP OMAP3 module") | |||
713 | .reserve = omap_reserve, | 713 | .reserve = omap_reserve, |
714 | .map_io = omap3_map_io, | 714 | .map_io = omap3_map_io, |
715 | .init_early = igep_init_early, | 715 | .init_early = igep_init_early, |
716 | .init_irq = omap_init_irq, | 716 | .init_irq = omap3_init_irq, |
717 | .init_machine = igep_init, | 717 | .init_machine = igep_init, |
718 | .timer = &omap_timer, | 718 | .timer = &omap_timer, |
719 | MACHINE_END | 719 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index f7d6038075f0..a054f54b1714 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -350,7 +350,7 @@ MACHINE_START(OMAP_LDP, "OMAP LDP board") | |||
350 | .reserve = omap_reserve, | 350 | .reserve = omap_reserve, |
351 | .map_io = omap3_map_io, | 351 | .map_io = omap3_map_io, |
352 | .init_early = omap_ldp_init_early, | 352 | .init_early = omap_ldp_init_early, |
353 | .init_irq = omap_init_irq, | 353 | .init_irq = omap3_init_irq, |
354 | .init_machine = omap_ldp_init, | 354 | .init_machine = omap_ldp_init, |
355 | .timer = &omap_timer, | 355 | .timer = &omap_timer, |
356 | MACHINE_END | 356 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 8d74318ed495..9c791a291898 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -699,7 +699,7 @@ MACHINE_START(NOKIA_N800, "Nokia N800") | |||
699 | .reserve = omap_reserve, | 699 | .reserve = omap_reserve, |
700 | .map_io = n8x0_map_io, | 700 | .map_io = n8x0_map_io, |
701 | .init_early = n8x0_init_early, | 701 | .init_early = n8x0_init_early, |
702 | .init_irq = omap_init_irq, | 702 | .init_irq = omap2_init_irq, |
703 | .init_machine = n8x0_init_machine, | 703 | .init_machine = n8x0_init_machine, |
704 | .timer = &omap_timer, | 704 | .timer = &omap_timer, |
705 | MACHINE_END | 705 | MACHINE_END |
@@ -709,7 +709,7 @@ MACHINE_START(NOKIA_N810, "Nokia N810") | |||
709 | .reserve = omap_reserve, | 709 | .reserve = omap_reserve, |
710 | .map_io = n8x0_map_io, | 710 | .map_io = n8x0_map_io, |
711 | .init_early = n8x0_init_early, | 711 | .init_early = n8x0_init_early, |
712 | .init_irq = omap_init_irq, | 712 | .init_irq = omap2_init_irq, |
713 | .init_machine = n8x0_init_machine, | 713 | .init_machine = n8x0_init_machine, |
714 | .timer = &omap_timer, | 714 | .timer = &omap_timer, |
715 | MACHINE_END | 715 | MACHINE_END |
@@ -719,7 +719,7 @@ MACHINE_START(NOKIA_N810_WIMAX, "Nokia N810 WiMAX") | |||
719 | .reserve = omap_reserve, | 719 | .reserve = omap_reserve, |
720 | .map_io = n8x0_map_io, | 720 | .map_io = n8x0_map_io, |
721 | .init_early = n8x0_init_early, | 721 | .init_early = n8x0_init_early, |
722 | .init_irq = omap_init_irq, | 722 | .init_irq = omap2_init_irq, |
723 | .init_machine = n8x0_init_machine, | 723 | .init_machine = n8x0_init_machine, |
724 | .timer = &omap_timer, | 724 | .timer = &omap_timer, |
725 | MACHINE_END | 725 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 7f21d24bd437..456005548718 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -486,7 +486,7 @@ static void __init omap3_beagle_init_early(void) | |||
486 | 486 | ||
487 | static void __init omap3_beagle_init_irq(void) | 487 | static void __init omap3_beagle_init_irq(void) |
488 | { | 488 | { |
489 | omap_init_irq(); | 489 | omap3_init_irq(); |
490 | #ifdef CONFIG_OMAP_32K_TIMER | 490 | #ifdef CONFIG_OMAP_32K_TIMER |
491 | omap2_gp_clockevent_set_gptimer(12); | 491 | omap2_gp_clockevent_set_gptimer(12); |
492 | #endif | 492 | #endif |
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index b4d43464a303..79d5362cb260 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -740,7 +740,7 @@ MACHINE_START(OMAP3EVM, "OMAP3 EVM") | |||
740 | .reserve = omap_reserve, | 740 | .reserve = omap_reserve, |
741 | .map_io = omap3_map_io, | 741 | .map_io = omap3_map_io, |
742 | .init_early = omap3_evm_init_early, | 742 | .init_early = omap3_evm_init_early, |
743 | .init_irq = omap_init_irq, | 743 | .init_irq = omap3_init_irq, |
744 | .init_machine = omap3_evm_init, | 744 | .init_machine = omap3_evm_init, |
745 | .timer = &omap_timer, | 745 | .timer = &omap_timer, |
746 | MACHINE_END | 746 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index 60d9be49dbab..739fdfc12338 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -215,7 +215,7 @@ MACHINE_START(OMAP3_TORPEDO, "Logic OMAP3 Torpedo board") | |||
215 | .boot_params = 0x80000100, | 215 | .boot_params = 0x80000100, |
216 | .map_io = omap3_map_io, | 216 | .map_io = omap3_map_io, |
217 | .init_early = omap3logic_init_early, | 217 | .init_early = omap3logic_init_early, |
218 | .init_irq = omap_init_irq, | 218 | .init_irq = omap3_init_irq, |
219 | .init_machine = omap3logic_init, | 219 | .init_machine = omap3logic_init, |
220 | .timer = &omap_timer, | 220 | .timer = &omap_timer, |
221 | MACHINE_END | 221 | MACHINE_END |
@@ -224,7 +224,7 @@ MACHINE_START(OMAP3530_LV_SOM, "OMAP Logic 3530 LV SOM board") | |||
224 | .boot_params = 0x80000100, | 224 | .boot_params = 0x80000100, |
225 | .map_io = omap3_map_io, | 225 | .map_io = omap3_map_io, |
226 | .init_early = omap3logic_init_early, | 226 | .init_early = omap3logic_init_early, |
227 | .init_irq = omap_init_irq, | 227 | .init_irq = omap3_init_irq, |
228 | .init_machine = omap3logic_init, | 228 | .init_machine = omap3logic_init, |
229 | .timer = &omap_timer, | 229 | .timer = &omap_timer, |
230 | MACHINE_END | 230 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 2a0bb4818cae..7b4e1391ee80 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -642,7 +642,7 @@ MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console") | |||
642 | .reserve = omap_reserve, | 642 | .reserve = omap_reserve, |
643 | .map_io = omap3_map_io, | 643 | .map_io = omap3_map_io, |
644 | .init_early = omap3pandora_init_early, | 644 | .init_early = omap3pandora_init_early, |
645 | .init_irq = omap_init_irq, | 645 | .init_irq = omap3_init_irq, |
646 | .init_machine = omap3pandora_init, | 646 | .init_machine = omap3pandora_init, |
647 | .timer = &omap_timer, | 647 | .timer = &omap_timer, |
648 | MACHINE_END | 648 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 0c108a212ea2..01616260224b 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -494,7 +494,7 @@ static void __init omap3_stalker_init_early(void) | |||
494 | 494 | ||
495 | static void __init omap3_stalker_init_irq(void) | 495 | static void __init omap3_stalker_init_irq(void) |
496 | { | 496 | { |
497 | omap_init_irq(); | 497 | omap3_init_irq(); |
498 | #ifdef CONFIG_OMAP_32K_TIMER | 498 | #ifdef CONFIG_OMAP_32K_TIMER |
499 | omap2_gp_clockevent_set_gptimer(12); | 499 | omap2_gp_clockevent_set_gptimer(12); |
500 | #endif | 500 | #endif |
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 5f649faf7377..3cc553159557 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -371,7 +371,7 @@ static void __init omap3_touchbook_init_early(void) | |||
371 | 371 | ||
372 | static void __init omap3_touchbook_init_irq(void) | 372 | static void __init omap3_touchbook_init_irq(void) |
373 | { | 373 | { |
374 | omap_init_irq(); | 374 | omap3_init_irq(); |
375 | #ifdef CONFIG_OMAP_32K_TIMER | 375 | #ifdef CONFIG_OMAP_32K_TIMER |
376 | omap2_gp_clockevent_set_gptimer(12); | 376 | omap2_gp_clockevent_set_gptimer(12); |
377 | #endif | 377 | #endif |
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 175e1ab2b04d..9c9f20cd9ce1 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -615,7 +615,7 @@ MACHINE_START(OVERO, "Gumstix Overo") | |||
615 | .reserve = omap_reserve, | 615 | .reserve = omap_reserve, |
616 | .map_io = omap3_map_io, | 616 | .map_io = omap3_map_io, |
617 | .init_early = overo_init_early, | 617 | .init_early = overo_init_early, |
618 | .init_irq = omap_init_irq, | 618 | .init_irq = omap3_init_irq, |
619 | .init_machine = overo_init, | 619 | .init_machine = overo_init, |
620 | .timer = &omap_timer, | 620 | .timer = &omap_timer, |
621 | MACHINE_END | 621 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index 42d10b12da3c..9c3d115b65d1 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -163,7 +163,7 @@ MACHINE_START(NOKIA_RM680, "Nokia RM-680 board") | |||
163 | .reserve = omap_reserve, | 163 | .reserve = omap_reserve, |
164 | .map_io = rm680_map_io, | 164 | .map_io = rm680_map_io, |
165 | .init_early = rm680_init_early, | 165 | .init_early = rm680_init_early, |
166 | .init_irq = omap_init_irq, | 166 | .init_irq = omap3_init_irq, |
167 | .init_machine = rm680_init, | 167 | .init_machine = rm680_init, |
168 | .timer = &omap_timer, | 168 | .timer = &omap_timer, |
169 | MACHINE_END | 169 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index fec4cac8fa0a..ee35e4e8b09d 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -160,7 +160,7 @@ MACHINE_START(NOKIA_RX51, "Nokia RX-51 board") | |||
160 | .reserve = rx51_reserve, | 160 | .reserve = rx51_reserve, |
161 | .map_io = rx51_map_io, | 161 | .map_io = rx51_map_io, |
162 | .init_early = rx51_init_early, | 162 | .init_early = rx51_init_early, |
163 | .init_irq = omap_init_irq, | 163 | .init_irq = omap3_init_irq, |
164 | .init_machine = rx51_init, | 164 | .init_machine = rx51_init, |
165 | .timer = &omap_timer, | 165 | .timer = &omap_timer, |
166 | MACHINE_END | 166 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-ti8168evm.c b/arch/arm/mach-omap2/board-ti8168evm.c index 09fa7bfff8d6..713c20f20f3e 100644 --- a/arch/arm/mach-omap2/board-ti8168evm.c +++ b/arch/arm/mach-omap2/board-ti8168evm.c | |||
@@ -33,11 +33,6 @@ static void __init ti8168_init_early(void) | |||
33 | omap2_init_common_devices(NULL, NULL); | 33 | omap2_init_common_devices(NULL, NULL); |
34 | } | 34 | } |
35 | 35 | ||
36 | static void __init ti8168_evm_init_irq(void) | ||
37 | { | ||
38 | omap_init_irq(); | ||
39 | } | ||
40 | |||
41 | static void __init ti8168_evm_init(void) | 36 | static void __init ti8168_evm_init(void) |
42 | { | 37 | { |
43 | omap_serial_init(); | 38 | omap_serial_init(); |
@@ -56,7 +51,7 @@ MACHINE_START(TI8168EVM, "ti8168evm") | |||
56 | .boot_params = 0x80000100, | 51 | .boot_params = 0x80000100, |
57 | .map_io = ti8168_evm_map_io, | 52 | .map_io = ti8168_evm_map_io, |
58 | .init_early = ti8168_init_early, | 53 | .init_early = ti8168_init_early, |
59 | .init_irq = ti8168_evm_init_irq, | 54 | .init_irq = ti816x_init_irq, |
60 | .timer = &omap_timer, | 55 | .timer = &omap_timer, |
61 | .init_machine = ti8168_evm_init, | 56 | .init_machine = ti8168_evm_init, |
62 | MACHINE_END | 57 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index 4b133d75c935..97a3f0b21c33 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -137,7 +137,7 @@ MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | |||
137 | .reserve = omap_reserve, | 137 | .reserve = omap_reserve, |
138 | .map_io = omap3_map_io, | 138 | .map_io = omap3_map_io, |
139 | .init_early = omap_zoom_init_early, | 139 | .init_early = omap_zoom_init_early, |
140 | .init_irq = omap_init_irq, | 140 | .init_irq = omap3_init_irq, |
141 | .init_machine = omap_zoom_init, | 141 | .init_machine = omap_zoom_init, |
142 | .timer = &omap_timer, | 142 | .timer = &omap_timer, |
143 | MACHINE_END | 143 | MACHINE_END |
@@ -147,7 +147,7 @@ MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | |||
147 | .reserve = omap_reserve, | 147 | .reserve = omap_reserve, |
148 | .map_io = omap3_map_io, | 148 | .map_io = omap3_map_io, |
149 | .init_early = omap_zoom_init_early, | 149 | .init_early = omap_zoom_init_early, |
150 | .init_irq = omap_init_irq, | 150 | .init_irq = omap3_init_irq, |
151 | .init_machine = omap_zoom_init, | 151 | .init_machine = omap_zoom_init, |
152 | .timer = &omap_timer, | 152 | .timer = &omap_timer, |
153 | MACHINE_END | 153 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 441e79d043a7..2ce1ce6fb4db 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -333,23 +333,9 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod *oh, void *data) | |||
333 | return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); | 333 | return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); |
334 | } | 334 | } |
335 | 335 | ||
336 | /* See irq.c, omap4-common.c and entry-macro.S */ | ||
336 | void __iomem *omap_irq_base; | 337 | void __iomem *omap_irq_base; |
337 | 338 | ||
338 | /* | ||
339 | * Initialize asm_irq_base for entry-macro.S | ||
340 | */ | ||
341 | static inline void omap_irq_base_init(void) | ||
342 | { | ||
343 | if (cpu_is_omap24xx()) | ||
344 | omap_irq_base = OMAP2_L4_IO_ADDRESS(OMAP24XX_IC_BASE); | ||
345 | else if (cpu_is_omap34xx()) | ||
346 | omap_irq_base = OMAP2_L4_IO_ADDRESS(OMAP34XX_IC_BASE); | ||
347 | else if (cpu_is_omap44xx()) | ||
348 | omap_irq_base = OMAP2_L4_IO_ADDRESS(OMAP44XX_GIC_CPU_BASE); | ||
349 | else | ||
350 | pr_err("Could not initialize omap_irq_base\n"); | ||
351 | } | ||
352 | |||
353 | void __init omap2_init_common_infrastructure(void) | 339 | void __init omap2_init_common_infrastructure(void) |
354 | { | 340 | { |
355 | u8 postsetup_state; | 341 | u8 postsetup_state; |
@@ -422,7 +408,6 @@ void __init omap2_init_common_devices(struct omap_sdrc_params *sdrc_cs0, | |||
422 | _omap2_init_reprogram_sdrc(); | 408 | _omap2_init_reprogram_sdrc(); |
423 | } | 409 | } |
424 | 410 | ||
425 | omap_irq_base_init(); | ||
426 | } | 411 | } |
427 | 412 | ||
428 | /* | 413 | /* |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 3af2b7a1045e..3a12f7586a4c 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -141,25 +141,20 @@ omap_alloc_gc(void __iomem *base, unsigned int irq_start, unsigned int num) | |||
141 | IRQ_NOREQUEST | IRQ_NOPROBE, 0); | 141 | IRQ_NOREQUEST | IRQ_NOPROBE, 0); |
142 | } | 142 | } |
143 | 143 | ||
144 | void __init omap_init_irq(void) | 144 | static void __init omap_init_irq(u32 base, int nr_irqs) |
145 | { | 145 | { |
146 | unsigned long nr_of_irqs = 0; | 146 | unsigned long nr_of_irqs = 0; |
147 | unsigned int nr_banks = 0; | 147 | unsigned int nr_banks = 0; |
148 | int i, j; | 148 | int i, j; |
149 | 149 | ||
150 | omap_irq_base = ioremap(base, SZ_4K); | ||
151 | if (WARN_ON(!omap_irq_base)) | ||
152 | return; | ||
153 | |||
150 | for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { | 154 | for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { |
151 | unsigned long base = 0; | ||
152 | struct omap_irq_bank *bank = irq_banks + i; | 155 | struct omap_irq_bank *bank = irq_banks + i; |
153 | 156 | ||
154 | if (cpu_is_omap24xx()) | 157 | bank->nr_irqs = nr_irqs; |
155 | base = OMAP24XX_IC_BASE; | ||
156 | else if (cpu_is_omap34xx()) | ||
157 | base = OMAP34XX_IC_BASE; | ||
158 | |||
159 | BUG_ON(!base); | ||
160 | |||
161 | if (cpu_is_ti816x()) | ||
162 | bank->nr_irqs = 128; | ||
163 | 158 | ||
164 | /* Static mapping, never released */ | 159 | /* Static mapping, never released */ |
165 | bank->base_reg = ioremap(base, SZ_4K); | 160 | bank->base_reg = ioremap(base, SZ_4K); |
@@ -181,6 +176,21 @@ void __init omap_init_irq(void) | |||
181 | nr_of_irqs, nr_banks, nr_banks > 1 ? "s" : ""); | 176 | nr_of_irqs, nr_banks, nr_banks > 1 ? "s" : ""); |
182 | } | 177 | } |
183 | 178 | ||
179 | void __init omap2_init_irq(void) | ||
180 | { | ||
181 | omap_init_irq(OMAP24XX_IC_BASE, 96); | ||
182 | } | ||
183 | |||
184 | void __init omap3_init_irq(void) | ||
185 | { | ||
186 | omap_init_irq(OMAP34XX_IC_BASE, 96); | ||
187 | } | ||
188 | |||
189 | void __init ti816x_init_irq(void) | ||
190 | { | ||
191 | omap_init_irq(OMAP34XX_IC_BASE, 128); | ||
192 | } | ||
193 | |||
184 | #ifdef CONFIG_ARCH_OMAP3 | 194 | #ifdef CONFIG_ARCH_OMAP3 |
185 | static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)]; | 195 | static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)]; |
186 | 196 | ||
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 9ef8c29dd817..35ac3e5f6e94 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <asm/hardware/gic.h> | 19 | #include <asm/hardware/gic.h> |
20 | #include <asm/hardware/cache-l2x0.h> | 20 | #include <asm/hardware/cache-l2x0.h> |
21 | 21 | ||
22 | #include <plat/irqs.h> | ||
23 | |||
22 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
23 | #include <mach/omap4-common.h> | 25 | #include <mach/omap4-common.h> |
24 | 26 | ||
@@ -31,17 +33,15 @@ void __iomem *gic_dist_base_addr; | |||
31 | 33 | ||
32 | void __init gic_init_irq(void) | 34 | void __init gic_init_irq(void) |
33 | { | 35 | { |
34 | void __iomem *gic_cpu_base; | ||
35 | |||
36 | /* Static mapping, never released */ | 36 | /* Static mapping, never released */ |
37 | gic_dist_base_addr = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K); | 37 | gic_dist_base_addr = ioremap(OMAP44XX_GIC_DIST_BASE, SZ_4K); |
38 | BUG_ON(!gic_dist_base_addr); | 38 | BUG_ON(!gic_dist_base_addr); |
39 | 39 | ||
40 | /* Static mapping, never released */ | 40 | /* Static mapping, never released */ |
41 | gic_cpu_base = ioremap(OMAP44XX_GIC_CPU_BASE, SZ_512); | 41 | omap_irq_base = ioremap(OMAP44XX_GIC_CPU_BASE, SZ_512); |
42 | BUG_ON(!gic_cpu_base); | 42 | BUG_ON(!omap_irq_base); |
43 | 43 | ||
44 | gic_init(0, 29, gic_dist_base_addr, gic_cpu_base); | 44 | gic_init(0, 29, gic_dist_base_addr, omap_irq_base); |
45 | } | 45 | } |
46 | 46 | ||
47 | #ifdef CONFIG_CACHE_L2X0 | 47 | #ifdef CONFIG_CACHE_L2X0 |