diff options
author | Sergio Aguirre <saaguirre@ti.com> | 2010-08-04 07:43:18 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-04 07:43:18 -0400 |
commit | c573bcf96a427923d09de0b247691165d9a96023 (patch) | |
tree | afeb0c26640e282af9aab08aa169e92cd73b8d38 /arch/arm | |
parent | be82ae0238b0453afcf4a76f0512b7dde34ba500 (diff) |
omap3: Unify omap2_set_globals_3[43,6x]x functions
The only difference between them is the physical address of the
uart4 port, which is only present in 36xx chips.
We don't really need to care about keeping these 2 functions, since
the decision to use uart4 is more cleanly done later when we do have
access to omap_revision variable.
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
[tony@atomide.com: added comment for the uart4_phys]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-3630sdp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-rx51.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-zoom3.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/common.c | 10 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/common.h | 3 |
18 files changed, 19 insertions, 26 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index dd9c03171a19..4961f3b68739 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -805,7 +805,7 @@ static void __init omap_3430sdp_init(void) | |||
805 | 805 | ||
806 | static void __init omap_3430sdp_map_io(void) | 806 | static void __init omap_3430sdp_map_io(void) |
807 | { | 807 | { |
808 | omap2_set_globals_343x(); | 808 | omap2_set_globals_3xxx(); |
809 | omap34xx_map_common_io(); | 809 | omap34xx_map_common_io(); |
810 | } | 810 | } |
811 | 811 | ||
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 57290fb3fcd7..72c2130b7f7a 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -68,7 +68,7 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | |||
68 | 68 | ||
69 | static void __init omap_sdp_map_io(void) | 69 | static void __init omap_sdp_map_io(void) |
70 | { | 70 | { |
71 | omap2_set_globals_36xx(); | 71 | omap2_set_globals_3xxx(); |
72 | omap34xx_map_common_io(); | 72 | omap34xx_map_common_io(); |
73 | } | 73 | } |
74 | 74 | ||
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 7da92defcde0..43564249c62d 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -463,7 +463,7 @@ static void __init am3517_evm_init(void) | |||
463 | 463 | ||
464 | static void __init am3517_evm_map_io(void) | 464 | static void __init am3517_evm_map_io(void) |
465 | { | 465 | { |
466 | omap2_set_globals_343x(); | 466 | omap2_set_globals_3xxx(); |
467 | omap34xx_map_common_io(); | 467 | omap34xx_map_common_io(); |
468 | } | 468 | } |
469 | 469 | ||
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index bc4c3f807068..6ce30b37cda2 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -710,7 +710,7 @@ static void __init cm_t35_init_irq(void) | |||
710 | 710 | ||
711 | static void __init cm_t35_map_io(void) | 711 | static void __init cm_t35_map_io(void) |
712 | { | 712 | { |
713 | omap2_set_globals_343x(); | 713 | omap2_set_globals_3xxx(); |
714 | omap34xx_map_common_io(); | 714 | omap34xx_map_common_io(); |
715 | } | 715 | } |
716 | 716 | ||
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 922b7464807f..116425877628 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -816,7 +816,7 @@ static void __init devkit8000_init(void) | |||
816 | 816 | ||
817 | static void __init devkit8000_map_io(void) | 817 | static void __init devkit8000_map_io(void) |
818 | { | 818 | { |
819 | omap2_set_globals_343x(); | 819 | omap2_set_globals_3xxx(); |
820 | omap34xx_map_common_io(); | 820 | omap34xx_map_common_io(); |
821 | } | 821 | } |
822 | 822 | ||
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 759e39d1a702..a8544ab35880 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -534,7 +534,7 @@ static void __init igep2_init(void) | |||
534 | 534 | ||
535 | static void __init igep2_map_io(void) | 535 | static void __init igep2_map_io(void) |
536 | { | 536 | { |
537 | omap2_set_globals_343x(); | 537 | omap2_set_globals_3xxx(); |
538 | omap34xx_map_common_io(); | 538 | omap34xx_map_common_io(); |
539 | } | 539 | } |
540 | 540 | ||
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index 9cd2669113e4..9bcb18248023 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -408,7 +408,7 @@ static void __init omap_ldp_init(void) | |||
408 | 408 | ||
409 | static void __init omap_ldp_map_io(void) | 409 | static void __init omap_ldp_map_io(void) |
410 | { | 410 | { |
411 | omap2_set_globals_343x(); | 411 | omap2_set_globals_3xxx(); |
412 | omap34xx_map_common_io(); | 412 | omap34xx_map_common_io(); |
413 | } | 413 | } |
414 | 414 | ||
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 0ab0c26db4dd..7b95cc127304 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -509,7 +509,7 @@ static void __init omap3_beagle_init(void) | |||
509 | 509 | ||
510 | static void __init omap3_beagle_map_io(void) | 510 | static void __init omap3_beagle_map_io(void) |
511 | { | 511 | { |
512 | omap2_set_globals_343x(); | 512 | omap2_set_globals_3xxx(); |
513 | omap34xx_map_common_io(); | 513 | omap34xx_map_common_io(); |
514 | } | 514 | } |
515 | 515 | ||
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index a3d2e285e116..65b46d4e6f18 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -717,7 +717,7 @@ static void __init omap3_evm_init(void) | |||
717 | 717 | ||
718 | static void __init omap3_evm_map_io(void) | 718 | static void __init omap3_evm_map_io(void) |
719 | { | 719 | { |
720 | omap2_set_globals_343x(); | 720 | omap2_set_globals_3xxx(); |
721 | omap34xx_map_common_io(); | 721 | omap34xx_map_common_io(); |
722 | } | 722 | } |
723 | 723 | ||
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index c0f4f12eba54..49feae4bcf49 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -592,7 +592,7 @@ static void __init omap3pandora_init(void) | |||
592 | 592 | ||
593 | static void __init omap3pandora_map_io(void) | 593 | static void __init omap3pandora_map_io(void) |
594 | { | 594 | { |
595 | omap2_set_globals_343x(); | 595 | omap2_set_globals_3xxx(); |
596 | omap34xx_map_common_io(); | 596 | omap34xx_map_common_io(); |
597 | } | 597 | } |
598 | 598 | ||
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index a04cffd691c5..497d42976692 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -654,7 +654,7 @@ static void __init omap3_stalker_init(void) | |||
654 | 654 | ||
655 | static void __init omap3_stalker_map_io(void) | 655 | static void __init omap3_stalker_map_io(void) |
656 | { | 656 | { |
657 | omap2_set_globals_343x(); | 657 | omap2_set_globals_3xxx(); |
658 | omap34xx_map_common_io(); | 658 | omap34xx_map_common_io(); |
659 | } | 659 | } |
660 | 660 | ||
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index f05b867c5851..77a0acec28a7 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -561,7 +561,7 @@ static void __init omap3_touchbook_init(void) | |||
561 | 561 | ||
562 | static void __init omap3_touchbook_map_io(void) | 562 | static void __init omap3_touchbook_map_io(void) |
563 | { | 563 | { |
564 | omap2_set_globals_343x(); | 564 | omap2_set_globals_3xxx(); |
565 | omap34xx_map_common_io(); | 565 | omap34xx_map_common_io(); |
566 | } | 566 | } |
567 | 567 | ||
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 87acb2f198ec..7c6cd06cc35f 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -486,7 +486,7 @@ static void __init overo_init(void) | |||
486 | 486 | ||
487 | static void __init overo_map_io(void) | 487 | static void __init overo_map_io(void) |
488 | { | 488 | { |
489 | omap2_set_globals_343x(); | 489 | omap2_set_globals_3xxx(); |
490 | omap34xx_map_common_io(); | 490 | omap34xx_map_common_io(); |
491 | } | 491 | } |
492 | 492 | ||
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 3bd956f9e19f..a58e8cb1a7fc 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -143,7 +143,7 @@ static void __init rx51_init(void) | |||
143 | 143 | ||
144 | static void __init rx51_map_io(void) | 144 | static void __init rx51_map_io(void) |
145 | { | 145 | { |
146 | omap2_set_globals_343x(); | 146 | omap2_set_globals_3xxx(); |
147 | rx51_video_mem_init(); | 147 | rx51_video_mem_init(); |
148 | omap34xx_map_common_io(); | 148 | omap34xx_map_common_io(); |
149 | } | 149 | } |
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index ffe188cb18e9..3d2deb453727 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -86,7 +86,7 @@ static void __init omap_zoom2_init(void) | |||
86 | 86 | ||
87 | static void __init omap_zoom2_map_io(void) | 87 | static void __init omap_zoom2_map_io(void) |
88 | { | 88 | { |
89 | omap2_set_globals_343x(); | 89 | omap2_set_globals_3xxx(); |
90 | omap34xx_map_common_io(); | 90 | omap34xx_map_common_io(); |
91 | } | 91 | } |
92 | 92 | ||
diff --git a/arch/arm/mach-omap2/board-zoom3.c b/arch/arm/mach-omap2/board-zoom3.c index 5b605eba3e7b..91bc56a3e490 100644 --- a/arch/arm/mach-omap2/board-zoom3.c +++ b/arch/arm/mach-omap2/board-zoom3.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | static void __init omap_zoom_map_io(void) | 28 | static void __init omap_zoom_map_io(void) |
29 | { | 29 | { |
30 | omap2_set_globals_36xx(); | 30 | omap2_set_globals_3xxx(); |
31 | omap34xx_map_common_io(); | 31 | omap34xx_map_common_io(); |
32 | } | 32 | } |
33 | 33 | ||
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index ebed82699eb2..8932350abfd2 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -317,19 +317,13 @@ static struct omap_globals omap3_globals = { | |||
317 | .uart1_phys = OMAP3_UART1_BASE, | 317 | .uart1_phys = OMAP3_UART1_BASE, |
318 | .uart2_phys = OMAP3_UART2_BASE, | 318 | .uart2_phys = OMAP3_UART2_BASE, |
319 | .uart3_phys = OMAP3_UART3_BASE, | 319 | .uart3_phys = OMAP3_UART3_BASE, |
320 | .uart4_phys = OMAP3_UART4_BASE, /* Only on 3630 */ | ||
320 | }; | 321 | }; |
321 | 322 | ||
322 | void __init omap2_set_globals_343x(void) | 323 | void __init omap2_set_globals_3xxx(void) |
323 | { | 324 | { |
324 | __omap2_set_globals(&omap3_globals); | 325 | __omap2_set_globals(&omap3_globals); |
325 | } | 326 | } |
326 | |||
327 | void __init omap2_set_globals_36xx(void) | ||
328 | { | ||
329 | omap3_globals.uart4_phys = OMAP3_UART4_BASE; | ||
330 | |||
331 | __omap2_set_globals(&omap3_globals); | ||
332 | } | ||
333 | #endif | 327 | #endif |
334 | 328 | ||
335 | #if defined(CONFIG_ARCH_OMAP4) | 329 | #if defined(CONFIG_ARCH_OMAP4) |
diff --git a/arch/arm/plat-omap/include/plat/common.h b/arch/arm/plat-omap/include/plat/common.h index 5e4afbee0fd7..962aaebf59d4 100644 --- a/arch/arm/plat-omap/include/plat/common.h +++ b/arch/arm/plat-omap/include/plat/common.h | |||
@@ -58,8 +58,7 @@ struct omap_globals { | |||
58 | 58 | ||
59 | void omap2_set_globals_242x(void); | 59 | void omap2_set_globals_242x(void); |
60 | void omap2_set_globals_243x(void); | 60 | void omap2_set_globals_243x(void); |
61 | void omap2_set_globals_343x(void); | 61 | void omap2_set_globals_3xxx(void); |
62 | void omap2_set_globals_36xx(void); | ||
63 | void omap2_set_globals_443x(void); | 62 | void omap2_set_globals_443x(void); |
64 | 63 | ||
65 | /* These get called from omap2_set_globals_xxxx(), do not call these */ | 64 | /* These get called from omap2_set_globals_xxxx(), do not call these */ |