diff options
| author | Mike Rapoport <mike@compulab.co.il> | 2010-08-04 07:43:18 -0400 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2010-08-04 07:43:18 -0400 |
| commit | 869fef41547db95df8523bf67845a21313709428 (patch) | |
| tree | 5d12824045f9ac8b94a6e2aabfdb7b8693bdf051 | |
| parent | c573bcf96a427923d09de0b247691165d9a96023 (diff) | |
omap3: introduce omap3_map_io
Most OMAP3-based boards use exactly the same code for .map_io method in
the machine_desc structure.
This patch introduces omap3_map_io and updates board-* files to use it
as .map_io method.
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
| -rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-3630sdp.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 8 | ||||
| -rw-r--r-- | arch/arm/mach-omap2/board-zoom3.c | 8 | ||||
| -rw-r--r-- | arch/arm/plat-omap/common.c | 6 | ||||
| -rw-r--r-- | arch/arm/plat-omap/include/plat/common.h | 2 |
17 files changed, 23 insertions, 105 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 4961f3b68739..ecdd2c3ea693 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
| @@ -803,18 +803,12 @@ static void __init omap_3430sdp_init(void) | |||
| 803 | usb_ehci_init(&ehci_pdata); | 803 | usb_ehci_init(&ehci_pdata); |
| 804 | } | 804 | } |
| 805 | 805 | ||
| 806 | static void __init omap_3430sdp_map_io(void) | ||
| 807 | { | ||
| 808 | omap2_set_globals_3xxx(); | ||
| 809 | omap34xx_map_common_io(); | ||
| 810 | } | ||
| 811 | |||
| 812 | MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") | 806 | MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") |
| 813 | /* Maintainer: Syed Khasim - Texas Instruments Inc */ | 807 | /* Maintainer: Syed Khasim - Texas Instruments Inc */ |
| 814 | .phys_io = 0x48000000, | 808 | .phys_io = 0x48000000, |
| 815 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, | 809 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, |
| 816 | .boot_params = 0x80000100, | 810 | .boot_params = 0x80000100, |
| 817 | .map_io = omap_3430sdp_map_io, | 811 | .map_io = omap3_map_io, |
| 818 | .reserve = omap_reserve, | 812 | .reserve = omap_reserve, |
| 819 | .init_irq = omap_3430sdp_init_irq, | 813 | .init_irq = omap_3430sdp_init_irq, |
| 820 | .init_machine = omap_3430sdp_init, | 814 | .init_machine = omap_3430sdp_init, |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 72c2130b7f7a..59860dfd8390 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
| @@ -66,12 +66,6 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | |||
| 66 | .reset_gpio_port[2] = -EINVAL | 66 | .reset_gpio_port[2] = -EINVAL |
| 67 | }; | 67 | }; |
| 68 | 68 | ||
| 69 | static void __init omap_sdp_map_io(void) | ||
| 70 | { | ||
| 71 | omap2_set_globals_3xxx(); | ||
| 72 | omap34xx_map_common_io(); | ||
| 73 | } | ||
| 74 | |||
| 75 | static struct omap_board_config_kernel sdp_config[] __initdata = { | 69 | static struct omap_board_config_kernel sdp_config[] __initdata = { |
| 76 | }; | 70 | }; |
| 77 | 71 | ||
| @@ -107,7 +101,7 @@ MACHINE_START(OMAP_3630SDP, "OMAP 3630SDP board") | |||
| 107 | .phys_io = 0x48000000, | 101 | .phys_io = 0x48000000, |
| 108 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, | 102 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, |
| 109 | .boot_params = 0x80000100, | 103 | .boot_params = 0x80000100, |
| 110 | .map_io = omap_sdp_map_io, | 104 | .map_io = omap3_map_io, |
| 111 | .reserve = omap_reserve, | 105 | .reserve = omap_reserve, |
| 112 | .init_irq = omap_sdp_init_irq, | 106 | .init_irq = omap_sdp_init_irq, |
| 113 | .init_machine = omap_sdp_init, | 107 | .init_machine = omap_sdp_init, |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 43564249c62d..4d0f58592864 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
| @@ -461,17 +461,11 @@ static void __init am3517_evm_init(void) | |||
| 461 | am3517_evm_ethernet_init(&am3517_evm_emac_pdata); | 461 | am3517_evm_ethernet_init(&am3517_evm_emac_pdata); |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | static void __init am3517_evm_map_io(void) | ||
| 465 | { | ||
| 466 | omap2_set_globals_3xxx(); | ||
| 467 | omap34xx_map_common_io(); | ||
| 468 | } | ||
| 469 | |||
| 470 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | 464 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") |
| 471 | .phys_io = 0x48000000, | 465 | .phys_io = 0x48000000, |
| 472 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 466 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
| 473 | .boot_params = 0x80000100, | 467 | .boot_params = 0x80000100, |
| 474 | .map_io = am3517_evm_map_io, | 468 | .map_io = omap3_map_io, |
| 475 | .reserve = omap_reserve, | 469 | .reserve = omap_reserve, |
| 476 | .init_irq = am3517_evm_init_irq, | 470 | .init_irq = am3517_evm_init_irq, |
| 477 | .init_machine = am3517_evm_init, | 471 | .init_machine = am3517_evm_init, |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 6ce30b37cda2..b910f72f43cc 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
| @@ -708,12 +708,6 @@ static void __init cm_t35_init_irq(void) | |||
| 708 | omap_gpio_init(); | 708 | omap_gpio_init(); |
| 709 | } | 709 | } |
| 710 | 710 | ||
| 711 | static void __init cm_t35_map_io(void) | ||
| 712 | { | ||
| 713 | omap2_set_globals_3xxx(); | ||
| 714 | omap34xx_map_common_io(); | ||
| 715 | } | ||
| 716 | |||
| 717 | static struct omap_board_mux board_mux[] __initdata = { | 711 | static struct omap_board_mux board_mux[] __initdata = { |
| 718 | /* nCS and IRQ for CM-T35 ethernet */ | 712 | /* nCS and IRQ for CM-T35 ethernet */ |
| 719 | OMAP3_MUX(GPMC_NCS5, OMAP_MUX_MODE0), | 713 | OMAP3_MUX(GPMC_NCS5, OMAP_MUX_MODE0), |
| @@ -836,7 +830,7 @@ MACHINE_START(CM_T35, "Compulab CM-T35") | |||
| 836 | .phys_io = 0x48000000, | 830 | .phys_io = 0x48000000, |
| 837 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 831 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
| 838 | .boot_params = 0x80000100, | 832 | .boot_params = 0x80000100, |
| 839 | .map_io = cm_t35_map_io, | 833 | .map_io = omap3_map_io, |
| 840 | .reserve = omap_reserve, | 834 | .reserve = omap_reserve, |
| 841 | .init_irq = cm_t35_init_irq, | 835 | .init_irq = cm_t35_init_irq, |
| 842 | .init_machine = cm_t35_init, | 836 | .init_machine = cm_t35_init, |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 116425877628..8233dd551234 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
| @@ -814,17 +814,11 @@ static void __init devkit8000_init(void) | |||
| 814 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); | 814 | omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT); |
| 815 | } | 815 | } |
| 816 | 816 | ||
| 817 | static void __init devkit8000_map_io(void) | ||
| 818 | { | ||
| 819 | omap2_set_globals_3xxx(); | ||
| 820 | omap34xx_map_common_io(); | ||
| 821 | } | ||
| 822 | |||
| 823 | MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") | 817 | MACHINE_START(DEVKIT8000, "OMAP3 Devkit8000") |
| 824 | .phys_io = 0x48000000, | 818 | .phys_io = 0x48000000, |
| 825 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, | 819 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
| 826 | .boot_params = 0x80000100, | 820 | .boot_params = 0x80000100, |
| 827 | .map_io = devkit8000_map_io, | 821 | .map_io = omap3_map_io, |
| 828 | .reserve = omap_reserve, | 822 | .reserve = omap_reserve, |
| 829 | .init_irq = devkit8000_init_irq, | 823 | .init_irq = devkit8000_init_irq, |
| 830 | .init_machine = devkit8000_init, | 824 | .init_machine = devkit8000_init, |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index a8544ab35880..175f04339761 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
| @@ -532,17 +532,11 @@ static void __init igep2_init(void) | |||
| 532 | pr_warning("IGEP v2: Could not obtain gpio GPIO_WIFI_NRESET\n"); | 532 | pr_warning("IGEP v2: Could not obtain gpio GPIO_WIFI_NRESET\n"); |
| 533 | } | 533 | } |
| 534 | 534 | ||
| 535 | static void __init igep2_map_io(void) | ||
| 536 | { | ||
| 537 | omap2_set_globals_3xxx(); | ||
| 538 | omap34xx_map_common_io(); | ||
| 539 | } | ||
| 540 | |||
| 541 | MACHINE_START(IGEP0020, "IGEP v2 board") | 535 | MACHINE_START(IGEP0020, "IGEP v2 board") |
| 542 | .phys_io = 0x48000000, | 536 | .phys_io = 0x48000000, |
| 543 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, | 537 | .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc, |
| 544 | .boot_params = 0x80000100, | 538 | .boot_params = 0x80000100, |
| 545 | .map_io = igep2_map_io, | 539 | .map_io = omap3_map_io, |
| 546 | .reserve = omap_reserve, | 540 | .reserve = omap_reserve, |
| 547 | .init_irq = igep2_init_irq, | ||
