diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/Kconfig | 16 | ||||
-rw-r--r-- | arch/arm/mach-omap2/Makefile | 20 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-omap2/common.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/io.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/irq.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mcbsp.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/opp2xxx.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/powerdomains2xxx_data.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/prcm.c | 5 |
13 files changed, 50 insertions, 47 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 7a82a76522af..9b4e78fe3d1c 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -53,20 +53,20 @@ config ARCH_OMAP4 | |||
53 | comment "OMAP Core Type" | 53 | comment "OMAP Core Type" |
54 | depends on ARCH_OMAP2 | 54 | depends on ARCH_OMAP2 |
55 | 55 | ||
56 | config ARCH_OMAP2420 | 56 | config SOC_OMAP2420 |
57 | bool "OMAP2420 support" | 57 | bool "OMAP2420 support" |
58 | depends on ARCH_OMAP2 | 58 | depends on ARCH_OMAP2 |
59 | default y | 59 | default y |
60 | select OMAP_DM_TIMER | 60 | select OMAP_DM_TIMER |
61 | select ARCH_OMAP_OTG | 61 | select ARCH_OMAP_OTG |
62 | 62 | ||
63 | config ARCH_OMAP2430 | 63 | config SOC_OMAP2430 |
64 | bool "OMAP2430 support" | 64 | bool "OMAP2430 support" |
65 | depends on ARCH_OMAP2 | 65 | depends on ARCH_OMAP2 |
66 | default y | 66 | default y |
67 | select ARCH_OMAP_OTG | 67 | select ARCH_OMAP_OTG |
68 | 68 | ||
69 | config ARCH_OMAP3430 | 69 | config SOC_OMAP3430 |
70 | bool "OMAP3430 support" | 70 | bool "OMAP3430 support" |
71 | depends on ARCH_OMAP3 | 71 | depends on ARCH_OMAP3 |
72 | default y | 72 | default y |
@@ -111,25 +111,25 @@ config MACH_OMAP_GENERIC | |||
111 | 111 | ||
112 | config MACH_OMAP2_TUSB6010 | 112 | config MACH_OMAP2_TUSB6010 |
113 | bool | 113 | bool |
114 | depends on ARCH_OMAP2 && ARCH_OMAP2420 | 114 | depends on ARCH_OMAP2 && SOC_OMAP2420 |
115 | default y if MACH_NOKIA_N8X0 | 115 | default y if MACH_NOKIA_N8X0 |
116 | 116 | ||
117 | config MACH_OMAP_H4 | 117 | config MACH_OMAP_H4 |
118 | bool "OMAP 2420 H4 board" | 118 | bool "OMAP 2420 H4 board" |
119 | depends on ARCH_OMAP2420 | 119 | depends on SOC_OMAP2420 |
120 | default y | 120 | default y |
121 | select OMAP_PACKAGE_ZAF | 121 | select OMAP_PACKAGE_ZAF |
122 | select OMAP_DEBUG_DEVICES | 122 | select OMAP_DEBUG_DEVICES |
123 | 123 | ||
124 | config MACH_OMAP_APOLLON | 124 | config MACH_OMAP_APOLLON |
125 | bool "OMAP 2420 Apollon board" | 125 | bool "OMAP 2420 Apollon board" |
126 | depends on ARCH_OMAP2420 | 126 | depends on SOC_OMAP2420 |
127 | default y | 127 | default y |
128 | select OMAP_PACKAGE_ZAC | 128 | select OMAP_PACKAGE_ZAC |
129 | 129 | ||
130 | config MACH_OMAP_2430SDP | 130 | config MACH_OMAP_2430SDP |
131 | bool "OMAP 2430 SDP board" | 131 | bool "OMAP 2430 SDP board" |
132 | depends on ARCH_OMAP2430 | 132 | depends on SOC_OMAP2430 |
133 | default y | 133 | default y |
134 | select OMAP_PACKAGE_ZAC | 134 | select OMAP_PACKAGE_ZAC |
135 | 135 | ||
@@ -224,7 +224,7 @@ config MACH_NOKIA_N810_WIMAX | |||
224 | 224 | ||
225 | config MACH_NOKIA_N8X0 | 225 | config MACH_NOKIA_N8X0 |
226 | bool "Nokia N800/N810" | 226 | bool "Nokia N800/N810" |
227 | depends on ARCH_OMAP2420 | 227 | depends on SOC_OMAP2420 |
228 | default y | 228 | default y |
229 | select OMAP_PACKAGE_ZAC | 229 | select OMAP_PACKAGE_ZAC |
230 | select MACH_NOKIA_N800 | 230 | select MACH_NOKIA_N800 |
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index b577e001d209..a9e3974d015f 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -31,8 +31,8 @@ AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) | |||
31 | AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec) | 31 | AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec) |
32 | 32 | ||
33 | # Functions loaded to SRAM | 33 | # Functions loaded to SRAM |
34 | obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o | 34 | obj-$(CONFIG_SOC_OMAP2420) += sram242x.o |
35 | obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o | 35 | obj-$(CONFIG_SOC_OMAP2430) += sram243x.o |
36 | obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o | 36 | obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o |
37 | 37 | ||
38 | AFLAGS_sram242x.o :=-Wa,-march=armv6 | 38 | AFLAGS_sram242x.o :=-Wa,-march=armv6 |
@@ -40,8 +40,8 @@ AFLAGS_sram243x.o :=-Wa,-march=armv6 | |||
40 | AFLAGS_sram34xx.o :=-Wa,-march=armv7-a | 40 | AFLAGS_sram34xx.o :=-Wa,-march=armv7-a |
41 | 41 | ||
42 | # Pin multiplexing | 42 | # Pin multiplexing |
43 | obj-$(CONFIG_ARCH_OMAP2420) += mux2420.o | 43 | obj-$(CONFIG_SOC_OMAP2420) += mux2420.o |
44 | obj-$(CONFIG_ARCH_OMAP2430) += mux2430.o | 44 | obj-$(CONFIG_SOC_OMAP2430) += mux2430.o |
45 | obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o | 45 | obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o |
46 | obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o | 46 | obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o |
47 | 47 | ||
@@ -113,8 +113,8 @@ obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o \ | |||
113 | clkt2xxx_dpllcore.o \ | 113 | clkt2xxx_dpllcore.o \ |
114 | clkt2xxx_virt_prcm_set.o \ | 114 | clkt2xxx_virt_prcm_set.o \ |
115 | clkt2xxx_apll.o clkt2xxx_osc.o | 115 | clkt2xxx_apll.o clkt2xxx_osc.o |
116 | obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o | 116 | obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o |
117 | obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o | 117 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o |
118 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \ | 118 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \ |
119 | clock34xx.o clkt34xx_dpll3m2.o \ | 119 | clock34xx.o clkt34xx_dpll3m2.o \ |
120 | clock3517.o clock36xx.o \ | 120 | clock3517.o clock36xx.o \ |
@@ -123,12 +123,12 @@ obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o \ | |||
123 | dpll3xxx.o | 123 | dpll3xxx.o |
124 | 124 | ||
125 | # OMAP2 clock rate set data (old "OPP" data) | 125 | # OMAP2 clock rate set data (old "OPP" data) |
126 | obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o | 126 | obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o |
127 | obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o | 127 | obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o |
128 | 128 | ||
129 | # hwmod data | 129 | # hwmod data |
130 | obj-$(CONFIG_ARCH_OMAP2420) += omap_hwmod_2420_data.o | 130 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2420_data.o |
131 | obj-$(CONFIG_ARCH_OMAP2430) += omap_hwmod_2430_data.o | 131 | obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2430_data.o |
132 | obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o | 132 | obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o |
133 | obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o | 133 | obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o |
134 | 134 | ||
diff --git a/arch/arm/mach-omap2/clock2xxx.h b/arch/arm/mach-omap2/clock2xxx.h index 6a658b890c17..cc5c8d422c5b 100644 --- a/arch/arm/mach-omap2/clock2xxx.h +++ b/arch/arm/mach-omap2/clock2xxx.h | |||
@@ -20,13 +20,13 @@ u32 omap2xxx_get_apll_clkin(void); | |||
20 | u32 omap2xxx_get_sysclkdiv(void); | 20 | u32 omap2xxx_get_sysclkdiv(void); |
21 | void omap2xxx_clk_prepare_for_reboot(void); | 21 | void omap2xxx_clk_prepare_for_reboot(void); |
22 | 22 | ||
23 | #ifdef CONFIG_ARCH_OMAP2420 | 23 | #ifdef CONFIG_SOC_OMAP2420 |
24 | int omap2420_clk_init(void); | 24 | int omap2420_clk_init(void); |
25 | #else | 25 | #else |
26 | #define omap2420_clk_init() 0 | 26 | #define omap2420_clk_init() 0 |
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #ifdef CONFIG_ARCH_OMAP2430 | 29 | #ifdef CONFIG_SOC_OMAP2430 |
30 | int omap2430_clk_init(void); | 30 | int omap2430_clk_init(void); |
31 | #else | 31 | #else |
32 | #define omap2430_clk_init() 0 | 32 | #define omap2430_clk_init() 0 |
diff --git a/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c b/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c index e4a7133ea3b3..e6f0d18d5e8d 100644 --- a/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c +++ b/arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c | |||
@@ -171,7 +171,7 @@ static struct clkdm_dep core_24xx_wkdeps[] = { | |||
171 | 171 | ||
172 | /* 2430-specific possible wakeup dependencies */ | 172 | /* 2430-specific possible wakeup dependencies */ |
173 | 173 | ||
174 | #ifdef CONFIG_ARCH_OMAP2430 | 174 | #ifdef CONFIG_SOC_OMAP2430 |
175 | 175 | ||
176 | /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ | 176 | /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ |
177 | static struct clkdm_dep mdm_2430_wkdeps[] = { | 177 | static struct clkdm_dep mdm_2430_wkdeps[] = { |
@@ -194,7 +194,7 @@ static struct clkdm_dep mdm_2430_wkdeps[] = { | |||
194 | { NULL }, | 194 | { NULL }, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | #endif /* CONFIG_ARCH_OMAP2430 */ | 197 | #endif /* CONFIG_SOC_OMAP2430 */ |
198 | 198 | ||
199 | 199 | ||
200 | /* OMAP3-specific possible dependencies */ | 200 | /* OMAP3-specific possible dependencies */ |
@@ -450,7 +450,7 @@ static struct clockdomain cm_clkdm = { | |||
450 | * 2420-only clockdomains | 450 | * 2420-only clockdomains |
451 | */ | 451 | */ |
452 | 452 | ||
453 | #if defined(CONFIG_ARCH_OMAP2420) | 453 | #if defined(CONFIG_SOC_OMAP2420) |
454 | 454 | ||
455 | static struct clockdomain mpu_2420_clkdm = { | 455 | static struct clockdomain mpu_2420_clkdm = { |
456 | .name = "mpu_clkdm", | 456 | .name = "mpu_clkdm", |
@@ -514,14 +514,14 @@ static struct clockdomain dss_2420_clkdm = { | |||
514 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420), | 514 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420), |
515 | }; | 515 | }; |
516 | 516 | ||
517 | #endif /* CONFIG_ARCH_OMAP2420 */ | 517 | #endif /* CONFIG_SOC_OMAP2420 */ |
518 | 518 | ||
519 | 519 | ||
520 | /* | 520 | /* |
521 | * 2430-only clockdomains | 521 | * 2430-only clockdomains |
522 | */ | 522 | */ |
523 | 523 | ||
524 | #if defined(CONFIG_ARCH_OMAP2430) | 524 | #if defined(CONFIG_SOC_OMAP2430) |
525 | 525 | ||
526 | static struct clockdomain mpu_2430_clkdm = { | 526 | static struct clockdomain mpu_2430_clkdm = { |
527 | .name = "mpu_clkdm", | 527 | .name = "mpu_clkdm", |
@@ -600,7 +600,7 @@ static struct clockdomain dss_2430_clkdm = { | |||
600 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), | 600 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), |
601 | }; | 601 | }; |
602 | 602 | ||
603 | #endif /* CONFIG_ARCH_OMAP2430 */ | 603 | #endif /* CONFIG_SOC_OMAP2430 */ |
604 | 604 | ||
605 | 605 | ||
606 | /* | 606 | /* |
@@ -811,7 +811,7 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { | |||
811 | &cm_clkdm, | 811 | &cm_clkdm, |
812 | &prm_clkdm, | 812 | &prm_clkdm, |
813 | 813 | ||
814 | #ifdef CONFIG_ARCH_OMAP2420 | 814 | #ifdef CONFIG_SOC_OMAP2420 |
815 | &mpu_2420_clkdm, | 815 | &mpu_2420_clkdm, |
816 | &iva1_2420_clkdm, | 816 | &iva1_2420_clkdm, |
817 | &dsp_2420_clkdm, | 817 | &dsp_2420_clkdm, |
@@ -821,7 +821,7 @@ static struct clockdomain *clockdomains_omap2[] __initdata = { | |||
821 | &dss_2420_clkdm, | 821 | &dss_2420_clkdm, |
822 | #endif | 822 | #endif |
823 | 823 | ||
824 | #ifdef CONFIG_ARCH_OMAP2430 | 824 | #ifdef CONFIG_SOC_OMAP2430 |
825 | &mpu_2430_clkdm, | 825 | &mpu_2430_clkdm, |
826 | &mdm_clkdm, | 826 | &mdm_clkdm, |
827 | &dsp_2430_clkdm, | 827 | &dsp_2430_clkdm, |
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index 79fb948f8144..48de4513de49 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -40,7 +40,7 @@ static void __init __omap2_set_globals(struct omap_globals *omap2_globals) | |||
40 | 40 | ||
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if defined(CONFIG_ARCH_OMAP2420) | 43 | #if defined(CONFIG_SOC_OMAP2420) |
44 | 44 | ||
45 | static struct omap_globals omap242x_globals = { | 45 | static struct omap_globals omap242x_globals = { |
46 | .class = OMAP242X_CLASS, | 46 | .class = OMAP242X_CLASS, |
@@ -61,7 +61,7 @@ void __init omap2_set_globals_242x(void) | |||
61 | } | 61 | } |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | #if defined(CONFIG_ARCH_OMAP2430) | 64 | #if defined(CONFIG_SOC_OMAP2430) |
65 | 65 | ||
66 | static struct omap_globals omap243x_globals = { | 66 | static struct omap_globals omap243x_globals = { |
67 | .class = OMAP243X_CLASS, | 67 | .class = OMAP243X_CLASS, |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 2c9c912f2c42..e0f0ef952bc9 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -333,7 +333,7 @@ static struct platform_device omap2_mcspi2 = { | |||
333 | }, | 333 | }, |
334 | }; | 334 | }; |
335 | 335 | ||
336 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ | 336 | #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ |
337 | defined(CONFIG_ARCH_OMAP4) | 337 | defined(CONFIG_ARCH_OMAP4) |
338 | static struct omap2_mcspi_platform_config omap2_mcspi3_config = { | 338 | static struct omap2_mcspi_platform_config omap2_mcspi3_config = { |
339 | .num_cs = 2, | 339 | .num_cs = 2, |
@@ -400,7 +400,7 @@ static inline void omap4_mcspi_fixup(void) | |||
400 | } | 400 | } |
401 | #endif | 401 | #endif |
402 | 402 | ||
403 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ | 403 | #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ |
404 | defined(CONFIG_ARCH_OMAP4) | 404 | defined(CONFIG_ARCH_OMAP4) |
405 | static inline void omap2_mcspi3_init(void) | 405 | static inline void omap2_mcspi3_init(void) |
406 | { | 406 | { |
@@ -895,7 +895,7 @@ void __init omap2_init_mmc(struct omap_mmc_platform_data **mmc_data, | |||
895 | /*-------------------------------------------------------------------------*/ | 895 | /*-------------------------------------------------------------------------*/ |
896 | 896 | ||
897 | #if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) | 897 | #if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) |
898 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3430) | 898 | #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) |
899 | #define OMAP_HDQ_BASE 0x480B2000 | 899 | #define OMAP_HDQ_BASE 0x480B2000 |
900 | #endif | 900 | #endif |
901 | static struct resource omap_hdq_resources[] = { | 901 | static struct resource omap_hdq_resources[] = { |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index f992a81c3939..b8b49e4ae928 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -66,7 +66,7 @@ static struct map_desc omap24xx_io_desc[] __initdata = { | |||
66 | }, | 66 | }, |
67 | }; | 67 | }; |
68 | 68 | ||
69 | #ifdef CONFIG_ARCH_OMAP2420 | 69 | #ifdef CONFIG_SOC_OMAP2420 |
70 | static struct map_desc omap242x_io_desc[] __initdata = { | 70 | static struct map_desc omap242x_io_desc[] __initdata = { |
71 | { | 71 | { |
72 | .virtual = DSP_MEM_2420_VIRT, | 72 | .virtual = DSP_MEM_2420_VIRT, |
@@ -90,7 +90,7 @@ static struct map_desc omap242x_io_desc[] __initdata = { | |||
90 | 90 | ||
91 | #endif | 91 | #endif |
92 | 92 | ||
93 | #ifdef CONFIG_ARCH_OMAP2430 | 93 | #ifdef CONFIG_SOC_OMAP2430 |
94 | static struct map_desc omap243x_io_desc[] __initdata = { | 94 | static struct map_desc omap243x_io_desc[] __initdata = { |
95 | { | 95 | { |
96 | .virtual = L4_WK_243X_VIRT, | 96 | .virtual = L4_WK_243X_VIRT, |
@@ -253,7 +253,7 @@ static void __init _omap2_map_common_io(void) | |||
253 | omap_sram_init(); | 253 | omap_sram_init(); |
254 | } | 254 | } |
255 | 255 | ||
256 | #ifdef CONFIG_ARCH_OMAP2420 | 256 | #ifdef CONFIG_SOC_OMAP2420 |
257 | void __init omap242x_map_common_io(void) | 257 | void __init omap242x_map_common_io(void) |
258 | { | 258 | { |
259 | iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); | 259 | iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); |
@@ -262,7 +262,7 @@ void __init omap242x_map_common_io(void) | |||
262 | } | 262 | } |
263 | #endif | 263 | #endif |
264 | 264 | ||
265 | #ifdef CONFIG_ARCH_OMAP2430 | 265 | #ifdef CONFIG_SOC_OMAP2430 |
266 | void __init omap243x_map_common_io(void) | 266 | void __init omap243x_map_common_io(void) |
267 | { | 267 | { |
268 | iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); | 268 | iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc)); |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 0b9a23d721f4..bc524b94fd59 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -61,8 +61,6 @@ struct omap3_intc_regs { | |||
61 | u32 mir[INTCPS_NR_MIR_REGS]; | 61 | u32 mir[INTCPS_NR_MIR_REGS]; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)]; | ||
65 | |||
66 | /* INTC bank register get/set */ | 64 | /* INTC bank register get/set */ |
67 | 65 | ||
68 | static void intc_bank_write_reg(u32 val, struct omap_irq_bank *bank, u16 reg) | 66 | static void intc_bank_write_reg(u32 val, struct omap_irq_bank *bank, u16 reg) |
@@ -232,6 +230,8 @@ void __init omap_init_irq(void) | |||
232 | } | 230 | } |
233 | 231 | ||
234 | #ifdef CONFIG_ARCH_OMAP3 | 232 | #ifdef CONFIG_ARCH_OMAP3 |
233 | static struct omap3_intc_regs intc_context[ARRAY_SIZE(irq_banks)]; | ||
234 | |||
235 | void omap_intc_save_context(void) | 235 | void omap_intc_save_context(void) |
236 | { | 236 | { |
237 | int ind = 0, i = 0; | 237 | int ind = 0, i = 0; |
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 394413dc7deb..29b9dc3917af 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -310,7 +310,7 @@ struct omap_mbox mbox_dsp_info = { | |||
310 | struct omap_mbox *omap3_mboxes[] = { &mbox_dsp_info, NULL }; | 310 | struct omap_mbox *omap3_mboxes[] = { &mbox_dsp_info, NULL }; |
311 | #endif | 311 | #endif |
312 | 312 | ||
313 | #if defined(CONFIG_ARCH_OMAP2420) | 313 | #if defined(CONFIG_SOC_OMAP2420) |
314 | /* IVA */ | 314 | /* IVA */ |
315 | static struct omap_mbox2_priv omap2_mbox_iva_priv = { | 315 | static struct omap_mbox2_priv omap2_mbox_iva_priv = { |
316 | .tx_fifo = { | 316 | .tx_fifo = { |
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index f9c9df5b5ff1..0526b758bdcc 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -104,7 +104,7 @@ EXPORT_SYMBOL(omap2_mcbsp_set_clks_src); | |||
104 | 104 | ||
105 | /* Platform data */ | 105 | /* Platform data */ |
106 | 106 | ||
107 | #ifdef CONFIG_ARCH_OMAP2420 | 107 | #ifdef CONFIG_SOC_OMAP2420 |
108 | static struct omap_mcbsp_platform_data omap2420_mcbsp_pdata[] = { | 108 | static struct omap_mcbsp_platform_data omap2420_mcbsp_pdata[] = { |
109 | { | 109 | { |
110 | .phys_base = OMAP24XX_MCBSP1_BASE, | 110 | .phys_base = OMAP24XX_MCBSP1_BASE, |
@@ -129,7 +129,7 @@ static struct omap_mcbsp_platform_data omap2420_mcbsp_pdata[] = { | |||
129 | #define OMAP2420_MCBSP_REG_NUM 0 | 129 | #define OMAP2420_MCBSP_REG_NUM 0 |
130 | #endif | 130 | #endif |
131 | 131 | ||
132 | #ifdef CONFIG_ARCH_OMAP2430 | 132 | #ifdef CONFIG_SOC_OMAP2430 |
133 | static struct omap_mcbsp_platform_data omap2430_mcbsp_pdata[] = { | 133 | static struct omap_mcbsp_platform_data omap2430_mcbsp_pdata[] = { |
134 | { | 134 | { |
135 | .phys_base = OMAP24XX_MCBSP1_BASE, | 135 | .phys_base = OMAP24XX_MCBSP1_BASE, |
diff --git a/arch/arm/mach-omap2/opp2xxx.h b/arch/arm/mach-omap2/opp2xxx.h index 38b730550506..8affc66a92c2 100644 --- a/arch/arm/mach-omap2/opp2xxx.h +++ b/arch/arm/mach-omap2/opp2xxx.h | |||
@@ -418,7 +418,7 @@ struct prcm_config { | |||
418 | 418 | ||
419 | extern const struct prcm_config omap2420_rate_table[]; | 419 | extern const struct prcm_config omap2420_rate_table[]; |
420 | 420 | ||
421 | #ifdef CONFIG_ARCH_OMAP2430 | 421 | #ifdef CONFIG_SOC_OMAP2430 |
422 | extern const struct prcm_config omap2430_rate_table[]; | 422 | extern const struct prcm_config omap2430_rate_table[]; |
423 | #else | 423 | #else |
424 | #define omap2430_rate_table NULL | 424 | #define omap2430_rate_table NULL |
diff --git a/arch/arm/mach-omap2/powerdomains2xxx_data.c b/arch/arm/mach-omap2/powerdomains2xxx_data.c index 9b1a33500577..78739e10f5b9 100644 --- a/arch/arm/mach-omap2/powerdomains2xxx_data.c +++ b/arch/arm/mach-omap2/powerdomains2xxx_data.c | |||
@@ -78,7 +78,7 @@ static struct powerdomain core_24xx_pwrdm = { | |||
78 | * 2430-specific powerdomains | 78 | * 2430-specific powerdomains |
79 | */ | 79 | */ |
80 | 80 | ||
81 | #ifdef CONFIG_ARCH_OMAP2430 | 81 | #ifdef CONFIG_SOC_OMAP2430 |
82 | 82 | ||
83 | /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */ | 83 | /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */ |
84 | 84 | ||
@@ -97,7 +97,7 @@ static struct powerdomain mdm_pwrdm = { | |||
97 | }, | 97 | }, |
98 | }; | 98 | }; |
99 | 99 | ||
100 | #endif /* CONFIG_ARCH_OMAP2430 */ | 100 | #endif /* CONFIG_SOC_OMAP2430 */ |
101 | 101 | ||
102 | /* As powerdomains are added or removed above, this list must also be changed */ | 102 | /* As powerdomains are added or removed above, this list must also be changed */ |
103 | static struct powerdomain *powerdomains_omap2xxx[] __initdata = { | 103 | static struct powerdomain *powerdomains_omap2xxx[] __initdata = { |
@@ -111,7 +111,7 @@ static struct powerdomain *powerdomains_omap2xxx[] __initdata = { | |||
111 | &core_24xx_pwrdm, | 111 | &core_24xx_pwrdm, |
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | #ifdef CONFIG_ARCH_OMAP2430 | 114 | #ifdef CONFIG_SOC_OMAP2430 |
115 | &mdm_pwrdm, | 115 | &mdm_pwrdm, |
116 | #endif | 116 | #endif |
117 | NULL | 117 | NULL |
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 679bcd28576e..6be14389e4f3 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
26 | 26 | ||
27 | #include <mach/system.h> | ||
27 | #include <plat/common.h> | 28 | #include <plat/common.h> |
28 | #include <plat/prcm.h> | 29 | #include <plat/prcm.h> |
29 | #include <plat/irqs.h> | 30 | #include <plat/irqs.h> |
@@ -57,7 +58,7 @@ u32 omap_prcm_get_reset_sources(void) | |||
57 | EXPORT_SYMBOL(omap_prcm_get_reset_sources); | 58 | EXPORT_SYMBOL(omap_prcm_get_reset_sources); |
58 | 59 | ||
59 | /* Resets clock rates and reboots the system. Only called from system.h */ | 60 | /* Resets clock rates and reboots the system. Only called from system.h */ |
60 | void omap_prcm_arch_reset(char mode, const char *cmd) | 61 | static void omap_prcm_arch_reset(char mode, const char *cmd) |
61 | { | 62 | { |
62 | s16 prcm_offs = 0; | 63 | s16 prcm_offs = 0; |
63 | 64 | ||
@@ -108,6 +109,8 @@ void omap_prcm_arch_reset(char mode, const char *cmd) | |||
108 | omap2_prm_read_mod_reg(prcm_offs, OMAP2_RM_RSTCTRL); /* OCP barrier */ | 109 | omap2_prm_read_mod_reg(prcm_offs, OMAP2_RM_RSTCTRL); /* OCP barrier */ |
109 | } | 110 | } |
110 | 111 | ||
112 | void (*arch_reset)(char, const char *) = omap_prcm_arch_reset; | ||
113 | |||
111 | /** | 114 | /** |
112 | * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness | 115 | * omap2_cm_wait_idlest - wait for IDLEST bit to indicate module readiness |
113 | * @reg: physical address of module IDLEST register | 116 | * @reg: physical address of module IDLEST register |