diff options
author | Tony Lindgren <tony@atomide.com> | 2005-07-10 14:58:17 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-10 14:58:17 -0400 |
commit | d48af15ea7227d633ddd5002223c2b122b1032e1 (patch) | |
tree | 15cd2bb63a592bd00b9a83def1a6c5546e923fe4 | |
parent | 5e1c5ff4783e0ddd241580c9996390508722190e (diff) |
[PATCH] ARM: 2802/1: OMAP update 8/11: Update OMAP arch files
Patch from Tony Lindgren
This patch by various OMAP developers syncs the OMAP
specific arch files with the linux-omap tree.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/Kconfig | 4 | ||||
-rw-r--r-- | arch/arm/Makefile | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-generic.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-netstar.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-voiceblue.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-omap1/io.c | 2 | ||||
-rw-r--r-- | include/asm-arm/arch-omap/common.h (renamed from arch/arm/plat-omap/common.h) | 2 |
12 files changed, 25 insertions, 29 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 620f2ca94ed2..56c3b4dfaa12 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -223,7 +223,9 @@ source "arch/arm/mach-pxa/Kconfig" | |||
223 | 223 | ||
224 | source "arch/arm/mach-sa1100/Kconfig" | 224 | source "arch/arm/mach-sa1100/Kconfig" |
225 | 225 | ||
226 | source "arch/arm/mach-omap/Kconfig" | 226 | source "arch/arm/plat-omap/Kconfig" |
227 | |||
228 | source "arch/arm/mach-omap1/Kconfig" | ||
227 | 229 | ||
228 | source "arch/arm/mach-s3c2410/Kconfig" | 230 | source "arch/arm/mach-s3c2410/Kconfig" |
229 | 231 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index eb933dcafba0..67f1453ade05 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -91,7 +91,8 @@ textaddr-$(CONFIG_ARCH_FORTUNET) := 0xc0008000 | |||
91 | machine-$(CONFIG_ARCH_IOP3XX) := iop3xx | 91 | machine-$(CONFIG_ARCH_IOP3XX) := iop3xx |
92 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 92 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx |
93 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 | 93 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 |
94 | machine-$(CONFIG_ARCH_OMAP) := omap | 94 | machine-$(CONFIG_ARCH_OMAP1) := omap1 |
95 | incdir-$(CONFIG_ARCH_OMAP) := omap | ||
95 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 | 96 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 |
96 | machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x | 97 | machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x |
97 | machine-$(CONFIG_ARCH_VERSATILE) := versatile | 98 | machine-$(CONFIG_ARCH_VERSATILE) := versatile |
@@ -142,6 +143,9 @@ core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ | |||
142 | core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) | 143 | core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) |
143 | core-$(CONFIG_VFP) += arch/arm/vfp/ | 144 | core-$(CONFIG_VFP) += arch/arm/vfp/ |
144 | 145 | ||
146 | # If we have a common platform directory, then include it in the build. | ||
147 | core-$(CONFIG_ARCH_OMAP) += arch/arm/plat-omap/ | ||
148 | |||
145 | drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ | 149 | drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ |
146 | drivers-$(CONFIG_ARCH_CLPS7500) += drivers/acorn/char/ | 150 | drivers-$(CONFIG_ARCH_CLPS7500) += drivers/acorn/char/ |
147 | drivers-$(CONFIG_ARCH_L7200) += drivers/acorn/char/ | 151 | drivers-$(CONFIG_ARCH_L7200) += drivers/acorn/char/ |
diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c index e2d338488d10..122796ebe8f5 100644 --- a/arch/arm/mach-omap1/board-generic.c +++ b/arch/arm/mach-omap1/board-generic.c | |||
@@ -26,8 +26,7 @@ | |||
26 | #include <asm/arch/mux.h> | 26 | #include <asm/arch/mux.h> |
27 | #include <asm/arch/usb.h> | 27 | #include <asm/arch/usb.h> |
28 | #include <asm/arch/board.h> | 28 | #include <asm/arch/board.h> |
29 | 29 | #include <asm/arch/common.h> | |
30 | #include "common.h" | ||
31 | 30 | ||
32 | static int __initdata generic_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; | 31 | static int __initdata generic_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; |
33 | 32 | ||
@@ -84,7 +83,7 @@ static void __init omap_generic_init(void) | |||
84 | 83 | ||
85 | static void __init omap_generic_map_io(void) | 84 | static void __init omap_generic_map_io(void) |
86 | { | 85 | { |
87 | omap_map_io(); | 86 | omap_map_common_io() |
88 | } | 87 | } |
89 | 88 | ||
90 | MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") | 89 | MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 02c7e335d3ef..f4983ee95ab4 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -35,8 +35,7 @@ | |||
35 | #include <asm/arch/gpio.h> | 35 | #include <asm/arch/gpio.h> |
36 | #include <asm/arch/tc.h> | 36 | #include <asm/arch/tc.h> |
37 | #include <asm/arch/usb.h> | 37 | #include <asm/arch/usb.h> |
38 | 38 | #include <asm/arch/common.h> | |
39 | #include "common.h" | ||
40 | 39 | ||
41 | extern int omap_gpio_init(void); | 40 | extern int omap_gpio_init(void); |
42 | 41 | ||
@@ -172,7 +171,7 @@ static void __init h2_init(void) | |||
172 | 171 | ||
173 | static void __init h2_map_io(void) | 172 | static void __init h2_map_io(void) |
174 | { | 173 | { |
175 | omap_map_io(); | 174 | omap_map_common_io(); |
176 | omap_serial_init(h2_serial_ports); | 175 | omap_serial_init(h2_serial_ports); |
177 | } | 176 | } |
178 | 177 | ||
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 3ff6eb8c8f2a..7cd419d61b40 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -37,8 +37,7 @@ | |||
37 | #include <asm/arch/mux.h> | 37 | #include <asm/arch/mux.h> |
38 | #include <asm/arch/tc.h> | 38 | #include <asm/arch/tc.h> |
39 | #include <asm/arch/usb.h> | 39 | #include <asm/arch/usb.h> |
40 | 40 | #include <asm/arch/common.h> | |
41 | #include "common.h" | ||
42 | 41 | ||
43 | extern int omap_gpio_init(void); | 42 | extern int omap_gpio_init(void); |
44 | 43 | ||
@@ -190,7 +189,7 @@ void h3_init_irq(void) | |||
190 | 189 | ||
191 | static void __init h3_map_io(void) | 190 | static void __init h3_map_io(void) |
192 | { | 191 | { |
193 | omap_map_io(); | 192 | omap_map_common_io(); |
194 | omap_serial_init(h3_serial_ports); | 193 | omap_serial_init(h3_serial_ports); |
195 | } | 194 | } |
196 | 195 | ||
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index 944e235d78a8..91de60a91ef8 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -33,8 +33,7 @@ | |||
33 | #include <asm/arch/gpio.h> | 33 | #include <asm/arch/gpio.h> |
34 | #include <asm/arch/tc.h> | 34 | #include <asm/arch/tc.h> |
35 | #include <asm/arch/usb.h> | 35 | #include <asm/arch/usb.h> |
36 | 36 | #include <asm/arch/common.h> | |
37 | #include "common.h" | ||
38 | 37 | ||
39 | static int __initdata innovator_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; | 38 | static int __initdata innovator_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; |
40 | 39 | ||
@@ -252,7 +251,7 @@ static void __init innovator_init(void) | |||
252 | 251 | ||
253 | static void __init innovator_map_io(void) | 252 | static void __init innovator_map_io(void) |
254 | { | 253 | { |
255 | omap_map_io(); | 254 | omap_map_common_io(); |
256 | 255 | ||
257 | #ifdef CONFIG_ARCH_OMAP1510 | 256 | #ifdef CONFIG_ARCH_OMAP1510 |
258 | if (cpu_is_omap1510()) { | 257 | if (cpu_is_omap1510()) { |
diff --git a/arch/arm/mach-omap1/board-netstar.c b/arch/arm/mach-omap1/board-netstar.c index 8c653734d5a3..6750b2014092 100644 --- a/arch/arm/mach-omap1/board-netstar.c +++ b/arch/arm/mach-omap1/board-netstar.c | |||
@@ -26,8 +26,7 @@ | |||
26 | #include <asm/arch/gpio.h> | 26 | #include <asm/arch/gpio.h> |
27 | #include <asm/arch/mux.h> | 27 | #include <asm/arch/mux.h> |
28 | #include <asm/arch/usb.h> | 28 | #include <asm/arch/usb.h> |
29 | 29 | #include <asm/arch/common.h> | |
30 | #include "common.h" | ||
31 | 30 | ||
32 | extern void __init omap_init_time(void); | 31 | extern void __init omap_init_time(void); |
33 | extern int omap_gpio_init(void); | 32 | extern int omap_gpio_init(void); |
@@ -100,7 +99,7 @@ static int __initdata omap_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; | |||
100 | 99 | ||
101 | static void __init netstar_map_io(void) | 100 | static void __init netstar_map_io(void) |
102 | { | 101 | { |
103 | omap_map_io(); | 102 | omap_map_common_io(); |
104 | omap_serial_init(omap_serial_ports); | 103 | omap_serial_init(omap_serial_ports); |
105 | } | 104 | } |
106 | 105 | ||
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index b9e3273ac0b0..6844e536c698 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -39,8 +39,7 @@ | |||
39 | #include <asm/arch/usb.h> | 39 | #include <asm/arch/usb.h> |
40 | #include <asm/arch/mux.h> | 40 | #include <asm/arch/mux.h> |
41 | #include <asm/arch/tc.h> | 41 | #include <asm/arch/tc.h> |
42 | 42 | #include <asm/arch/common.h> | |
43 | #include "common.h" | ||
44 | 43 | ||
45 | static struct map_desc osk5912_io_desc[] __initdata = { | 44 | static struct map_desc osk5912_io_desc[] __initdata = { |
46 | { OMAP_OSK_NOR_FLASH_BASE, OMAP_OSK_NOR_FLASH_START, OMAP_OSK_NOR_FLASH_SIZE, | 45 | { OMAP_OSK_NOR_FLASH_BASE, OMAP_OSK_NOR_FLASH_START, OMAP_OSK_NOR_FLASH_SIZE, |
@@ -153,7 +152,7 @@ static void __init osk_init(void) | |||
153 | 152 | ||
154 | static void __init osk_map_io(void) | 153 | static void __init osk_map_io(void) |
155 | { | 154 | { |
156 | omap_map_io(); | 155 | omap_map_common_io(); |
157 | iotable_init(osk5912_io_desc, ARRAY_SIZE(osk5912_io_desc)); | 156 | iotable_init(osk5912_io_desc, ARRAY_SIZE(osk5912_io_desc)); |
158 | omap_serial_init(osk_serial_ports); | 157 | omap_serial_init(osk_serial_ports); |
159 | } | 158 | } |
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 0d460522fcaf..213317392d9b 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -27,8 +27,7 @@ | |||
27 | #include <asm/arch/gpio.h> | 27 | #include <asm/arch/gpio.h> |
28 | #include <asm/arch/mux.h> | 28 | #include <asm/arch/mux.h> |
29 | #include <asm/arch/fpga.h> | 29 | #include <asm/arch/fpga.h> |
30 | 30 | #include <asm/arch/common.h> | |
31 | #include "common.h" | ||
32 | 31 | ||
33 | static struct resource smc91x_resources[] = { | 32 | static struct resource smc91x_resources[] = { |
34 | [0] = { | 33 | [0] = { |
@@ -140,7 +139,7 @@ static struct map_desc omap_perseus2_io_desc[] __initdata = { | |||
140 | 139 | ||
141 | static void __init omap_perseus2_map_io(void) | 140 | static void __init omap_perseus2_map_io(void) |
142 | { | 141 | { |
143 | omap_map_io(); | 142 | omap_map_common_io(); |
144 | iotable_init(omap_perseus2_io_desc, | 143 | iotable_init(omap_perseus2_io_desc, |
145 | ARRAY_SIZE(omap_perseus2_io_desc)); | 144 | ARRAY_SIZE(omap_perseus2_io_desc)); |
146 | 145 | ||
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index d882f43658a0..e42281988990 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -31,8 +31,7 @@ | |||
31 | #include <asm/arch/tc.h> | 31 | #include <asm/arch/tc.h> |
32 | #include <asm/arch/mux.h> | 32 | #include <asm/arch/mux.h> |
33 | #include <asm/arch/usb.h> | 33 | #include <asm/arch/usb.h> |
34 | 34 | #include <asm/arch/common.h> | |
35 | #include "common.h" | ||
36 | 35 | ||
37 | extern void omap_init_time(void); | 36 | extern void omap_init_time(void); |
38 | extern int omap_gpio_init(void); | 37 | extern int omap_gpio_init(void); |
@@ -170,7 +169,7 @@ static int __initdata omap_serial_ports[OMAP_MAX_NR_PORTS] = {1, 1, 1}; | |||
170 | 169 | ||
171 | static void __init voiceblue_map_io(void) | 170 | static void __init voiceblue_map_io(void) |
172 | { | 171 | { |
173 | omap_map_io(); | 172 | omap_map_common_io(); |
174 | omap_serial_init(omap_serial_ports); | 173 | omap_serial_init(omap_serial_ports); |
175 | } | 174 | } |
176 | 175 | ||
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index 8587b339884f..f1258c1f3a97 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -17,8 +17,6 @@ | |||
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/arch/tc.h> | 18 | #include <asm/arch/tc.h> |
19 | 19 | ||
20 | #include "../clock.h" | ||
21 | |||
22 | extern void omap_check_revision(void); | 20 | extern void omap_check_revision(void); |
23 | 21 | ||
24 | /* | 22 | /* |
diff --git a/arch/arm/plat-omap/common.h b/include/asm-arm/arch-omap/common.h index 893964dfe18e..2a676b4f13b5 100644 --- a/arch/arm/plat-omap/common.h +++ b/include/asm-arm/arch-omap/common.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/plat-omap/common.h | 2 | * linux/include/asm-arm/arch-omap/common.h |
3 | * | 3 | * |
4 | * Header for code common to all OMAP machines. | 4 | * Header for code common to all OMAP machines. |
5 | * | 5 | * |