diff options
author | Olof Johansson <olof@lixom.net> | 2012-10-04 23:17:25 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-10-04 23:17:25 -0400 |
commit | 54d69df5849ec2e660aa12ac75562618c10fb499 (patch) | |
tree | adbfb8bcc7cc73b83bf2b784fa331911ba03573a /arch/arm/mach-omap2 | |
parent | ad932bb6b549722a561fb31ac2fa50dcbcb3e36b (diff) | |
parent | 46f2007c1efadfa4071c17e75f140c47f09293de (diff) |
Merge branch 'late/kirkwood' into late/soc
Merge in the late Kirkwood branch with the OMAP late branch for upstream
submission.
Final contents described in shared tag.
Fixup remove/change conflicts in arch/arm/mach-omap2/devices.c and
drivers/spi/spi-omap2-mcspi.c.
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-omap2')
82 files changed, 431 insertions, 185 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 346fd26f3aa6..eef99b77c40b 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig | |||
@@ -18,6 +18,7 @@ config ARCH_OMAP2PLUS_TYPICAL | |||
18 | select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 | 18 | select TWL4030_CORE if ARCH_OMAP3 || ARCH_OMAP4 |
19 | select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4 | 19 | select TWL4030_POWER if ARCH_OMAP3 || ARCH_OMAP4 |
20 | select HIGHMEM | 20 | select HIGHMEM |
21 | select PINCTRL | ||
21 | help | 22 | help |
22 | Compile a kernel suitable for booting most boards | 23 | Compile a kernel suitable for booting most boards |
23 | 24 | ||
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 0deb30072977..b807deb0f521 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile | |||
@@ -4,36 +4,30 @@ | |||
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \ | 6 | obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \ |
7 | common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o | 7 | common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o |
8 | 8 | ||
9 | omap-2-3-common = irq.o | 9 | # INTCPS IP block support - XXX should be moved to drivers/ |
10 | hwmod-common = omap_hwmod.o \ | 10 | obj-$(CONFIG_ARCH_OMAP2) += irq.o |
11 | omap_hwmod_common_data.o | 11 | obj-$(CONFIG_ARCH_OMAP3) += irq.o |
12 | clock-common = clock.o clock_common_data.o \ | 12 | obj-$(CONFIG_SOC_AM33XX) += irq.o |
13 | clkt_dpll.o clkt_clksel.o | ||
14 | secure-common = omap-smc.o omap-secure.o | ||
15 | 13 | ||
16 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(hwmod-common) | 14 | # Secure monitor API support |
17 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(hwmod-common) $(secure-common) | 15 | obj-$(CONFIG_ARCH_OMAP3) += omap-smc.o omap-secure.o |
18 | obj-$(CONFIG_ARCH_OMAP4) += prm44xx.o $(hwmod-common) $(secure-common) | 16 | obj-$(CONFIG_ARCH_OMAP4) += omap-smc.o omap-secure.o |
19 | obj-$(CONFIG_SOC_AM33XX) += irq.o $(hwmod-common) | 17 | obj-$(CONFIG_SOC_OMAP5) += omap-smc.o omap-secure.o |
20 | obj-$(CONFIG_SOC_OMAP5) += prm44xx.o $(hwmod-common) $(secure-common) | ||
21 | 18 | ||
22 | ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),) | 19 | ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),) |
23 | obj-y += mcbsp.o | 20 | obj-y += mcbsp.o |
24 | endif | 21 | endif |
25 | 22 | ||
26 | obj-$(CONFIG_TWL4030_CORE) += omap_twl.o | 23 | obj-$(CONFIG_TWL4030_CORE) += omap_twl.o |
27 | obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdrc.o | ||
28 | 24 | ||
29 | # SMP support ONLY available for OMAP4 | 25 | # SMP support ONLY available for OMAP4 |
30 | 26 | ||
31 | obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o | 27 | obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o |
32 | obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o | 28 | obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o |
33 | omap-4-5-common = omap4-common.o omap-wakeupgen.o \ | 29 | obj-$(CONFIG_ARCH_OMAP4) += omap4-common.o omap-wakeupgen.o |
34 | sleep44xx.o | 30 | obj-$(CONFIG_SOC_OMAP5) += omap4-common.o omap-wakeupgen.o |
35 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-4-5-common) | ||
36 | obj-$(CONFIG_SOC_OMAP5) += $(omap-4-5-common) | ||
37 | 31 | ||
38 | plus_sec := $(call as-instr,.arch_extension sec,+sec) | 32 | plus_sec := $(call as-instr,.arch_extension sec,+sec) |
39 | AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) | 33 | AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) |
@@ -58,6 +52,7 @@ obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o | |||
58 | # SMS/SDRC | 52 | # SMS/SDRC |
59 | obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o | 53 | obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o |
60 | # obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o | 54 | # obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o |
55 | obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdrc.o | ||
61 | 56 | ||
62 | # OPP table initialization | 57 | # OPP table initialization |
63 | ifeq ($(CONFIG_PM_OPP),y) | 58 | ifeq ($(CONFIG_PM_OPP),y) |
@@ -68,15 +63,15 @@ endif | |||
68 | 63 | ||
69 | # Power Management | 64 | # Power Management |
70 | ifeq ($(CONFIG_PM),y) | 65 | ifeq ($(CONFIG_PM),y) |
71 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o | 66 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o sleep24xx.o |
72 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o | ||
73 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o | 67 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o |
74 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o omap-mpuss-lowpower.o | 68 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o omap-mpuss-lowpower.o |
75 | obj-$(CONFIG_SOC_OMAP5) += omap-mpuss-lowpower.o | 69 | obj-$(CONFIG_ARCH_OMAP4) += sleep44xx.o |
70 | obj-$(CONFIG_SOC_OMAP5) += omap-mpuss-lowpower.o sleep44xx.o | ||
76 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o | 71 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o |
77 | 72 | ||
78 | obj-$(CONFIG_POWER_AVS_OMAP) += sr_device.o | 73 | obj-$(CONFIG_POWER_AVS_OMAP) += sr_device.o |
79 | obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o | 74 | obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o |
80 | 75 | ||
81 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 | 76 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 |
82 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec) | 77 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec) |
@@ -88,92 +83,76 @@ endif | |||
88 | endif | 83 | endif |
89 | 84 | ||
90 | ifeq ($(CONFIG_CPU_IDLE),y) | 85 | ifeq ($(CONFIG_CPU_IDLE),y) |
91 | obj-$(CONFIG_ARCH_OMAP3) += cpuidle34xx.o | 86 | obj-$(CONFIG_ARCH_OMAP3) += cpuidle34xx.o |
92 | obj-$(CONFIG_ARCH_OMAP4) += cpuidle44xx.o | 87 | obj-$(CONFIG_ARCH_OMAP4) += cpuidle44xx.o |
93 | endif | 88 | endif |
94 | 89 | ||
95 | # PRCM | 90 | # PRCM |
96 | omap-prcm-4-5-common = prcm.o cminst44xx.o cm44xx.o \ | 91 | obj-y += prcm.o prm_common.o |
97 | prcm_mpu44xx.o prminst44xx.o \ | 92 | obj-$(CONFIG_ARCH_OMAP2) += cm2xxx_3xxx.o prm2xxx_3xxx.o |
98 | vc44xx_data.o vp44xx_data.o | 93 | obj-$(CONFIG_ARCH_OMAP3) += cm2xxx_3xxx.o prm2xxx_3xxx.o |
99 | obj-y += prm_common.o | ||
100 | obj-$(CONFIG_ARCH_OMAP2) += prcm.o cm2xxx_3xxx.o prm2xxx_3xxx.o | ||
101 | obj-$(CONFIG_ARCH_OMAP3) += prcm.o cm2xxx_3xxx.o prm2xxx_3xxx.o | ||
102 | obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o | 94 | obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o |
103 | obj-$(CONFIG_SOC_AM33XX) += prcm.o prm33xx.o cm33xx.o | 95 | obj-$(CONFIG_SOC_AM33XX) += prm33xx.o cm33xx.o |
104 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common) prm44xx.o | 96 | omap-prcm-4-5-common = cminst44xx.o cm44xx.o prm44xx.o \ |
97 | prcm_mpu44xx.o prminst44xx.o \ | ||
98 | vc44xx_data.o vp44xx_data.o \ | ||
99 | prm44xx.o | ||
100 | obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common) | ||
105 | obj-$(CONFIG_SOC_OMAP5) += $(omap-prcm-4-5-common) | 101 | obj-$(CONFIG_SOC_OMAP5) += $(omap-prcm-4-5-common) |
106 | 102 | ||
107 | # OMAP voltage domains | 103 | # OMAP voltage domains |
108 | voltagedomain-common := voltage.o vc.o vp.o | 104 | obj-y += voltage.o vc.o vp.o |
109 | obj-$(CONFIG_ARCH_OMAP2) += $(voltagedomain-common) | ||
110 | obj-$(CONFIG_ARCH_OMAP2) += voltagedomains2xxx_data.o | 105 | obj-$(CONFIG_ARCH_OMAP2) += voltagedomains2xxx_data.o |
111 | obj-$(CONFIG_ARCH_OMAP3) += $(voltagedomain-common) | ||
112 | obj-$(CONFIG_ARCH_OMAP3) += voltagedomains3xxx_data.o | 106 | obj-$(CONFIG_ARCH_OMAP3) += voltagedomains3xxx_data.o |
113 | obj-$(CONFIG_ARCH_OMAP4) += $(voltagedomain-common) | ||
114 | obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o | 107 | obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o |
115 | obj-$(CONFIG_SOC_AM33XX) += $(voltagedomain-common) | 108 | obj-$(CONFIG_SOC_AM33XX) += voltagedomains33xx_data.o |
116 | obj-$(CONFIG_SOC_AM33XX) += voltagedomains33xx_data.o | ||
117 | obj-$(CONFIG_SOC_OMAP5) += $(voltagedomain-common) | ||
118 | 109 | ||
119 | # OMAP powerdomain framework | 110 | # OMAP powerdomain framework |
120 | powerdomain-common += powerdomain.o powerdomain-common.o | 111 | obj-y += powerdomain.o powerdomain-common.o |
121 | obj-$(CONFIG_ARCH_OMAP2) += $(powerdomain-common) | ||
122 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_data.o | 112 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_data.o |
123 | obj-$(CONFIG_ARCH_OMAP2) += powerdomain2xxx_3xxx.o | 113 | obj-$(CONFIG_ARCH_OMAP2) += powerdomain2xxx_3xxx.o |
124 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_3xxx_data.o | 114 | obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_3xxx_data.o |
125 | obj-$(CONFIG_ARCH_OMAP3) += $(powerdomain-common) | ||
126 | obj-$(CONFIG_ARCH_OMAP3) += powerdomain2xxx_3xxx.o | 115 | obj-$(CONFIG_ARCH_OMAP3) += powerdomain2xxx_3xxx.o |
127 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains3xxx_data.o | 116 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains3xxx_data.o |
128 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains2xxx_3xxx_data.o | 117 | obj-$(CONFIG_ARCH_OMAP3) += powerdomains2xxx_3xxx_data.o |
129 | obj-$(CONFIG_ARCH_OMAP4) += $(powerdomain-common) | ||
130 | obj-$(CONFIG_ARCH_OMAP4) += powerdomain44xx.o | 118 | obj-$(CONFIG_ARCH_OMAP4) += powerdomain44xx.o |
131 | obj-$(CONFIG_ARCH_OMAP4) += powerdomains44xx_data.o | 119 | obj-$(CONFIG_ARCH_OMAP4) += powerdomains44xx_data.o |
132 | obj-$(CONFIG_SOC_AM33XX) += $(powerdomain-common) | ||
133 | obj-$(CONFIG_SOC_AM33XX) += powerdomain33xx.o | 120 | obj-$(CONFIG_SOC_AM33XX) += powerdomain33xx.o |
134 | obj-$(CONFIG_SOC_AM33XX) += powerdomains33xx_data.o | 121 | obj-$(CONFIG_SOC_AM33XX) += powerdomains33xx_data.o |
135 | obj-$(CONFIG_SOC_OMAP5) += $(powerdomain-common) | ||
136 | obj-$(CONFIG_SOC_OMAP5) += powerdomain44xx.o | 122 | obj-$(CONFIG_SOC_OMAP5) += powerdomain44xx.o |
137 | 123 | ||
138 | # PRCM clockdomain control | 124 | # PRCM clockdomain control |
139 | clockdomain-common += clockdomain.o | 125 | obj-y += clockdomain.o |
140 | obj-$(CONFIG_ARCH_OMAP2) += $(clockdomain-common) | ||
141 | obj-$(CONFIG_ARCH_OMAP2) += clockdomain2xxx_3xxx.o | 126 | obj-$(CONFIG_ARCH_OMAP2) += clockdomain2xxx_3xxx.o |
142 | obj-$(CONFIG_ARCH_OMAP2) += clockdomains2xxx_3xxx_data.o | 127 | obj-$(CONFIG_ARCH_OMAP2) += clockdomains2xxx_3xxx_data.o |
143 | obj-$(CONFIG_SOC_OMAP2420) += clockdomains2420_data.o | 128 | obj-$(CONFIG_SOC_OMAP2420) += clockdomains2420_data.o |
144 | obj-$(CONFIG_SOC_OMAP2430) += clockdomains2430_data.o | 129 | obj-$(CONFIG_SOC_OMAP2430) += clockdomains2430_data.o |
145 | obj-$(CONFIG_ARCH_OMAP3) += $(clockdomain-common) | ||
146 | obj-$(CONFIG_ARCH_OMAP3) += clockdomain2xxx_3xxx.o | 130 | obj-$(CONFIG_ARCH_OMAP3) += clockdomain2xxx_3xxx.o |
147 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains2xxx_3xxx_data.o | 131 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains2xxx_3xxx_data.o |
148 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains3xxx_data.o | 132 | obj-$(CONFIG_ARCH_OMAP3) += clockdomains3xxx_data.o |
149 | obj-$(CONFIG_ARCH_OMAP4) += $(clockdomain-common) | ||
150 | obj-$(CONFIG_ARCH_OMAP4) += clockdomain44xx.o | 133 | obj-$(CONFIG_ARCH_OMAP4) += clockdomain44xx.o |
151 | obj-$(CONFIG_ARCH_OMAP4) += clockdomains44xx_data.o | 134 | obj-$(CONFIG_ARCH_OMAP4) += clockdomains44xx_data.o |
152 | obj-$(CONFIG_SOC_AM33XX) += $(clockdomain-common) | ||
153 | obj-$(CONFIG_SOC_AM33XX) += clockdomain33xx.o | 135 | obj-$(CONFIG_SOC_AM33XX) += clockdomain33xx.o |
154 | obj-$(CONFIG_SOC_AM33XX) += clockdomains33xx_data.o | 136 | obj-$(CONFIG_SOC_AM33XX) += clockdomains33xx_data.o |
155 | obj-$(CONFIG_SOC_OMAP5) += $(clockdomain-common) | ||
156 | obj-$(CONFIG_SOC_OMAP5) += clockdomain44xx.o | 137 | obj-$(CONFIG_SOC_OMAP5) += clockdomain44xx.o |
157 | 138 | ||
158 | # Clock framework | 139 | # Clock framework |
159 | obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o | 140 | obj-y += clock.o clock_common_data.o \ |
160 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_sys.o | 141 | clkt_dpll.o clkt_clksel.o |
161 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o | 142 | obj-$(CONFIG_ARCH_OMAP2) += clock2xxx.o |
143 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o clkt2xxx_sys.o | ||
162 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o | 144 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o |
163 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_apll.o clkt2xxx_osc.o | 145 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_apll.o clkt2xxx_osc.o |
164 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o | 146 | obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o |
165 | obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o | 147 | obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o |
166 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o | 148 | obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o |
167 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o | 149 | obj-$(CONFIG_ARCH_OMAP3) += clock3xxx.o |
168 | obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clkt34xx_dpll3m2.o | 150 | obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clkt34xx_dpll3m2.o |
169 | obj-$(CONFIG_ARCH_OMAP3) += clock3517.o clock36xx.o | 151 | obj-$(CONFIG_ARCH_OMAP3) += clock3517.o clock36xx.o clkt_iclk.o |
170 | obj-$(CONFIG_ARCH_OMAP3) += dpll3xxx.o clock3xxx_data.o | 152 | obj-$(CONFIG_ARCH_OMAP3) += dpll3xxx.o clock3xxx_data.o |
171 | obj-$(CONFIG_ARCH_OMAP3) += clkt_iclk.o | 153 | obj-$(CONFIG_ARCH_OMAP4) += clock44xx_data.o |
172 | obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o | ||
173 | obj-$(CONFIG_ARCH_OMAP4) += dpll3xxx.o dpll44xx.o | 154 | obj-$(CONFIG_ARCH_OMAP4) += dpll3xxx.o dpll44xx.o |
174 | obj-$(CONFIG_SOC_AM33XX) += $(clock-common) dpll3xxx.o | 155 | obj-$(CONFIG_SOC_AM33XX) += dpll3xxx.o clock33xx_data.o |
175 | obj-$(CONFIG_SOC_AM33XX) += clock33xx_data.o | ||
176 | obj-$(CONFIG_SOC_OMAP5) += $(clock-common) | ||
177 | obj-$(CONFIG_SOC_OMAP5) += dpll3xxx.o dpll44xx.o | 156 | obj-$(CONFIG_SOC_OMAP5) += dpll3xxx.o dpll44xx.o |
178 | 157 | ||
179 | # OMAP2 clock rate set data (old "OPP" data) | 158 | # OMAP2 clock rate set data (old "OPP" data) |
@@ -181,6 +160,7 @@ obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o | |||
181 | obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o | 160 | obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o |
182 | 161 | ||
183 | # hwmod data | 162 | # hwmod data |
163 | obj-y += omap_hwmod_common_data.o | ||
184 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_ipblock_data.o | 164 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_ipblock_data.o |
185 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_3xxx_ipblock_data.o | 165 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_3xxx_ipblock_data.o |
186 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_interconnect_data.o | 166 | obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_interconnect_data.o |
@@ -231,10 +211,10 @@ obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o | |||
231 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o | 211 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o |
232 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o | 212 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o |
233 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o | 213 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o |
234 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o | 214 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o |
235 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o | 215 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o |
236 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o | 216 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o |
237 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o | 217 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o |
238 | obj-$(CONFIG_MACH_ENCORE) += board-omap3encore.o | 218 | obj-$(CONFIG_MACH_ENCORE) += board-omap3encore.o |
239 | obj-$(CONFIG_MACH_OVERO) += board-overo.o | 219 | obj-$(CONFIG_MACH_OVERO) += board-overo.o |
240 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o | 220 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o |
diff --git a/arch/arm/mach-omap2/am35xx-emac.c b/arch/arm/mach-omap2/am35xx-emac.c index 2c90ac686686..d0c54c573d34 100644 --- a/arch/arm/mach-omap2/am35xx-emac.c +++ b/arch/arm/mach-omap2/am35xx-emac.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/davinci_emac.h> | 19 | #include <linux/davinci_emac.h> |
20 | #include <asm/system.h> | 20 | #include <asm/system.h> |
21 | #include <plat/omap_device.h> | 21 | #include <plat/omap_device.h> |
22 | #include <mach/am35xx.h> | 22 | #include "am35xx.h" |
23 | #include "control.h" | 23 | #include "control.h" |
24 | #include "am35xx-emac.h" | 24 | #include "am35xx-emac.h" |
25 | 25 | ||
diff --git a/arch/arm/mach-omap2/include/mach/am35xx.h b/arch/arm/mach-omap2/am35xx.h index 95594495fcf6..95594495fcf6 100644 --- a/arch/arm/mach-omap2/include/mach/am35xx.h +++ b/arch/arm/mach-omap2/am35xx.h | |||
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 0900eac57d56..95b384d54f8a 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "common.h" | 36 | #include "common.h" |
37 | #include <plat/gpmc.h> | 37 | #include <plat/gpmc.h> |
38 | #include <plat/usb.h> | 38 | #include <plat/usb.h> |
39 | #include <plat/gpmc-smc91x.h> | 39 | #include "gpmc-smc91x.h" |
40 | 40 | ||
41 | #include <video/omapdss.h> | 41 | #include <video/omapdss.h> |
42 | #include <video/omap-panel-generic-dpi.h> | 42 | #include <video/omap-panel-generic-dpi.h> |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 5453173ff57b..96cd3693e1ae 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -24,12 +24,12 @@ | |||
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/gpio.h> | 25 | #include <linux/gpio.h> |
26 | #include <linux/mmc/host.h> | 26 | #include <linux/mmc/host.h> |
27 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
27 | 28 | ||
28 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
29 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
30 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
31 | 32 | ||
32 | #include <plat/mcspi.h> | ||
33 | #include <plat/usb.h> | 33 | #include <plat/usb.h> |
34 | #include "common.h" | 34 | #include "common.h" |
35 | #include <plat/dma.h> | 35 | #include <plat/dma.h> |
@@ -37,7 +37,7 @@ | |||
37 | #include <video/omapdss.h> | 37 | #include <video/omapdss.h> |
38 | #include <video/omap-panel-tfp410.h> | 38 | #include <video/omap-panel-tfp410.h> |
39 | 39 | ||
40 | #include <plat/gpmc-smc91x.h> | 40 | #include "gpmc-smc91x.h" |
41 | 41 | ||
42 | #include "board-flash.h" | 42 | #include "board-flash.h" |
43 | #include "mux.h" | 43 | #include "mux.h" |
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 8518b1345988..fc224ad86747 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/mach/arch.h> | 17 | #include <asm/mach/arch.h> |
18 | 18 | ||
19 | #include "common.h" | 19 | #include "common.h" |
20 | #include <plat/gpmc-smc91x.h> | 20 | #include "gpmc-smc91x.h" |
21 | #include <plat/usb.h> | 21 | #include <plat/usb.h> |
22 | 22 | ||
23 | #include <mach/board-zoom.h> | 23 | #include <mach/board-zoom.h> |
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index db43e22526c0..6fe90796d462 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "common.h" | 36 | #include "common.h" |
37 | #include <plat/usb.h> | 37 | #include <plat/usb.h> |
38 | #include <plat/mmc.h> | 38 | #include <plat/mmc.h> |
39 | #include <plat/omap4-keypad.h> | 39 | #include "omap4-keypad.h" |
40 | #include <video/omapdss.h> | 40 | #include <video/omapdss.h> |
41 | #include <video/omap-panel-nokia-dsi.h> | 41 | #include <video/omap-panel-nokia-dsi.h> |
42 | #include <video/omap-panel-picodlp.h> | 42 | #include <video/omap-panel-picodlp.h> |
@@ -907,6 +907,7 @@ static void __init omap_4430sdp_init(void) | |||
907 | MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") | 907 | MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") |
908 | /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */ | 908 | /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */ |
909 | .atag_offset = 0x100, | 909 | .atag_offset = 0x100, |
910 | .smp = smp_ops(omap4_smp_ops), | ||
910 | .reserve = omap_reserve, | 911 | .reserve = omap_reserve, |
911 | .map_io = omap4_map_io, | 912 | .map_io = omap4_map_io, |
912 | .init_early = omap4430_init_early, | 913 | .init_early = omap4430_init_early, |
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 403d048a00ee..0d99c9110d01 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <linux/mmc/host.h> | 27 | #include <linux/mmc/host.h> |
28 | #include <linux/platform_data/gpio-omap.h> | 28 | #include <linux/platform_data/gpio-omap.h> |
29 | 29 | ||
30 | #include <mach/am35xx.h> | 30 | #include "am35xx.h" |
31 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
32 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
33 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 34cb90471d96..8ffd612c5e07 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -39,13 +39,13 @@ | |||
39 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
40 | 40 | ||
41 | #include "common.h" | 41 | #include "common.h" |
42 | #include <plat/nand.h> | 42 | #include <linux/platform_data/mtd-nand-omap2.h> |
43 | #include <plat/gpmc.h> | 43 | #include <plat/gpmc.h> |
44 | #include <plat/usb.h> | 44 | #include <plat/usb.h> |
45 | #include <video/omapdss.h> | 45 | #include <video/omapdss.h> |
46 | #include <video/omap-panel-generic-dpi.h> | 46 | #include <video/omap-panel-generic-dpi.h> |
47 | #include <video/omap-panel-tfp410.h> | 47 | #include <video/omap-panel-tfp410.h> |
48 | #include <plat/mcspi.h> | 48 | #include <linux/platform_data/spi-omap2-mcspi.h> |
49 | 49 | ||
50 | #include <mach/hardware.h> | 50 | #include <mach/hardware.h> |
51 | 51 | ||
@@ -64,7 +64,7 @@ | |||
64 | 64 | ||
65 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 65 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
66 | #include <linux/smsc911x.h> | 66 | #include <linux/smsc911x.h> |
67 | #include <plat/gpmc-smsc911x.h> | 67 | #include "gpmc-smsc911x.h" |
68 | 68 | ||
69 | static struct omap_smsc911x_platform_data cm_t35_smsc911x_cfg = { | 69 | static struct omap_smsc911x_platform_data cm_t35_smsc911x_cfg = { |
70 | .id = 0, | 70 | .id = 0, |
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 27a5450751ed..59c0a45f75b0 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -40,10 +40,10 @@ | |||
40 | 40 | ||
41 | #include "common.h" | 41 | #include "common.h" |
42 | #include <plat/usb.h> | 42 | #include <plat/usb.h> |
43 | #include <plat/nand.h> | 43 | #include <linux/platform_data/mtd-nand-omap2.h> |
44 | #include <plat/gpmc.h> | 44 | #include <plat/gpmc.h> |
45 | 45 | ||
46 | #include <mach/am35xx.h> | 46 | #include "am35xx.h" |
47 | 47 | ||
48 | #include "mux.h" | 48 | #include "mux.h" |
49 | #include "control.h" | 49 | #include "control.h" |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 18b63ad56274..7bb8056d4388 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include <linux/regulator/machine.h> | 33 | #include <linux/regulator/machine.h> |
34 | #include <linux/i2c/twl.h> | 34 | #include <linux/i2c/twl.h> |
35 | #include <mach/id.h> | 35 | #include "id.h" |
36 | #include <asm/mach-types.h> | 36 | #include <asm/mach-types.h> |
37 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
@@ -40,13 +40,13 @@ | |||
40 | 40 | ||
41 | #include "common.h" | 41 | #include "common.h" |
42 | #include <plat/gpmc.h> | 42 | #include <plat/gpmc.h> |
43 | #include <plat/nand.h> | 43 | #include <linux/platform_data/mtd-nand-omap2.h> |
44 | #include <plat/usb.h> | 44 | #include <plat/usb.h> |
45 | #include <video/omapdss.h> | 45 | #include <video/omapdss.h> |
46 | #include <video/omap-panel-generic-dpi.h> | 46 | #include <video/omap-panel-generic-dpi.h> |
47 | #include <video/omap-panel-tfp410.h> | 47 | #include <video/omap-panel-tfp410.h> |
48 | 48 | ||
49 | #include <plat/mcspi.h> | 49 | #include <linux/platform_data/spi-omap2-mcspi.h> |
50 | #include <linux/input/matrix_keypad.h> | 50 | #include <linux/input/matrix_keypad.h> |
51 | #include <linux/spi/spi.h> | 51 | #include <linux/spi/spi.h> |
52 | #include <linux/dm9000.h> | 52 | #include <linux/dm9000.h> |
diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach-omap2/board-flash.c index 9017813f9abc..0cabe61cd507 100644 --- a/arch/arm/mach-omap2/board-flash.c +++ b/arch/arm/mach-omap2/board-flash.c | |||
@@ -19,8 +19,8 @@ | |||
19 | 19 | ||
20 | #include <plat/cpu.h> | 20 | #include <plat/cpu.h> |
21 | #include <plat/gpmc.h> | 21 | #include <plat/gpmc.h> |
22 | #include <plat/nand.h> | 22 | #include <linux/platform_data/mtd-nand-omap2.h> |
23 | #include <plat/onenand.h> | 23 | #include <linux/platform_data/mtd-onenand-omap2.h> |
24 | #include <plat/tc.h> | 24 | #include <plat/tc.h> |
25 | 25 | ||
26 | #include "common.h" | 26 | #include "common.h" |
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 2ea7c577b295..601ecdfb1cf9 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -125,6 +125,7 @@ static const char *omap4_boards_compat[] __initdata = { | |||
125 | 125 | ||
126 | DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)") | 126 | DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)") |
127 | .reserve = omap_reserve, | 127 | .reserve = omap_reserve, |
128 | .smp = smp_ops(omap4_smp_ops), | ||
128 | .map_io = omap4_map_io, | 129 | .map_io = omap4_map_io, |
129 | .init_early = omap4430_init_early, | 130 | .init_early = omap4430_init_early, |
130 | .init_irq = omap_gic_of_init, | 131 | .init_irq = omap_gic_of_init, |
@@ -145,6 +146,7 @@ static const char *omap5_boards_compat[] __initdata = { | |||
145 | 146 | ||
146 | DT_MACHINE_START(OMAP5_DT, "Generic OMAP5 (Flattened Device Tree)") | 147 | DT_MACHINE_START(OMAP5_DT, "Generic OMAP5 (Flattened Device Tree)") |
147 | .reserve = omap_reserve, | 148 | .reserve = omap_reserve, |
149 | .smp = smp_ops(omap4_smp_ops), | ||
148 | .map_io = omap5_map_io, | 150 | .map_io = omap5_map_io, |
149 | .init_early = omap5_init_early, | 151 | .init_early = omap5_init_early, |
150 | .init_irq = omap_gic_of_init, | 152 | .init_irq = omap_gic_of_init, |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 313b3f426a56..8d04bf851af4 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <plat/menelaus.h> | 34 | #include <plat/menelaus.h> |
35 | #include <plat/dma.h> | 35 | #include <plat/dma.h> |
36 | #include <plat/gpmc.h> | 36 | #include <plat/gpmc.h> |
37 | #include <plat/debug-devices.h> | 37 | #include "debug-devices.h" |
38 | 38 | ||
39 | #include <video/omapdss.h> | 39 | #include <video/omapdss.h> |
40 | #include <video/omap-panel-generic-dpi.h> | 40 | #include <video/omap-panel-generic-dpi.h> |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 8408bb2748a6..fb8bd837dd13 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | #include <video/omapdss.h> | 36 | #include <video/omapdss.h> |
37 | #include <video/omap-panel-tfp410.h> | 37 | #include <video/omap-panel-tfp410.h> |
38 | #include <plat/onenand.h> | 38 | #include <linux/platform_data/mtd-onenand-omap2.h> |
39 | 39 | ||
40 | #include "mux.h" | 40 | #include "mux.h" |
41 | #include "hsmmc.h" | 41 | #include "hsmmc.h" |
@@ -192,7 +192,7 @@ static void __init igep_flash_init(void) {} | |||
192 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 192 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
193 | 193 | ||
194 | #include <linux/smsc911x.h> | 194 | #include <linux/smsc911x.h> |
195 | #include <plat/gpmc-smsc911x.h> | 195 | #include "gpmc-smsc911x.h" |
196 | 196 | ||
197 | static struct omap_smsc911x_platform_data smsc911x_cfg = { | 197 | static struct omap_smsc911x_platform_data smsc911x_cfg = { |
198 | .cs = IGEP2_SMSC911X_CS, | 198 | .cs = IGEP2_SMSC911X_CS, |
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index 3f3a552b1036..ee8c3cfb95b3 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -28,17 +28,17 @@ | |||
28 | #include <linux/io.h> | 28 | #include <linux/io.h> |
29 | #include <linux/smsc911x.h> | 29 | #include <linux/smsc911x.h> |
30 | #include <linux/mmc/host.h> | 30 | #include <linux/mmc/host.h> |
31 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
31 | 32 | ||
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
33 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
35 | 36 | ||
36 | #include <plat/mcspi.h> | ||
37 | #include "common.h" | 37 | #include "common.h" |
38 | #include <plat/gpmc.h> | 38 | #include <plat/gpmc.h> |
39 | #include <mach/board-zoom.h> | 39 | #include <mach/board-zoom.h> |
40 | #include <plat/usb.h> | 40 | #include <plat/usb.h> |
41 | #include <plat/gpmc-smsc911x.h> | 41 | #include "gpmc-smsc911x.h" |
42 | 42 | ||
43 | #include <video/omapdss.h> | 43 | #include <video/omapdss.h> |
44 | #include <video/omap-panel-generic-dpi.h> | 44 | #include <video/omap-panel-generic-dpi.h> |
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 4b43fe311571..d95f727ca39a 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -20,6 +20,8 @@ | |||
20 | #include <linux/i2c.h> | 20 | #include <linux/i2c.h> |
21 | #include <linux/spi/spi.h> | 21 | #include <linux/spi/spi.h> |
22 | #include <linux/usb/musb.h> | 22 | #include <linux/usb/musb.h> |
23 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
24 | #include <linux/platform_data/mtd-onenand-omap2.h> | ||
23 | #include <sound/tlv320aic3x.h> | 25 | #include <sound/tlv320aic3x.h> |
24 | 26 | ||
25 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
@@ -27,8 +29,6 @@ | |||
27 | 29 | ||
28 | #include "common.h" | 30 | #include "common.h" |
29 | #include <plat/menelaus.h> | 31 | #include <plat/menelaus.h> |
30 | #include <plat/mcspi.h> | ||
31 | #include <plat/onenand.h> | ||
32 | #include <plat/mmc.h> | 32 | #include <plat/mmc.h> |
33 | 33 | ||
34 | #include "mux.h" | 34 | #include "mux.h" |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 801bcb4c5e22..68ff8d51973c 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #include <video/omapdss.h> | 42 | #include <video/omapdss.h> |
43 | #include <video/omap-panel-tfp410.h> | 43 | #include <video/omap-panel-tfp410.h> |
44 | #include <plat/gpmc.h> | 44 | #include <plat/gpmc.h> |
45 | #include <plat/nand.h> | 45 | #include <linux/platform_data/mtd-nand-omap2.h> |
46 | #include <plat/usb.h> | 46 | #include <plat/usb.h> |
47 | #include <plat/omap_device.h> | 47 | #include <plat/omap_device.h> |
48 | 48 | ||
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index b94873d0c6b6..3fe5f0f69c73 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -45,9 +45,9 @@ | |||
45 | #include <asm/mach/map.h> | 45 | #include <asm/mach/map.h> |
46 | 46 | ||
47 | #include <plat/usb.h> | 47 | #include <plat/usb.h> |
48 | #include <plat/nand.h> | 48 | #include <linux/platform_data/mtd-nand-omap2.h> |
49 | #include "common.h" | 49 | #include "common.h" |
50 | #include <plat/mcspi.h> | 50 | #include <linux/platform_data/spi-omap2-mcspi.h> |
51 | #include <video/omapdss.h> | 51 | #include <video/omapdss.h> |
52 | #include <video/omap-panel-tfp410.h> | 52 | #include <video/omap-panel-tfp410.h> |
53 | 53 | ||
@@ -118,7 +118,7 @@ static void __init omap3_evm_get_revision(void) | |||
118 | } | 118 | } |
119 | 119 | ||
120 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 120 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
121 | #include <plat/gpmc-smsc911x.h> | 121 | #include "gpmc-smsc911x.h" |
122 | 122 | ||
123 | static struct omap_smsc911x_platform_data smsc911x_cfg = { | 123 | static struct omap_smsc911x_platform_data smsc911x_cfg = { |
124 | .cs = OMAP3EVM_SMSC911X_CS, | 124 | .cs = OMAP3EVM_SMSC911X_CS, |
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index b5e56fa83c19..7bd8253b5d1d 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
35 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
36 | 36 | ||
37 | #include <plat/gpmc-smsc911x.h> | 37 | #include "gpmc-smsc911x.h" |
38 | #include <plat/gpmc.h> | 38 | #include <plat/gpmc.h> |
39 | #include <plat/sdrc.h> | 39 | #include <plat/sdrc.h> |
40 | #include <plat/usb.h> | 40 | #include <plat/usb.h> |
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index e700a98feba6..00a1f4ae6e44 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -35,16 +35,16 @@ | |||
35 | #include <linux/mmc/host.h> | 35 | #include <linux/mmc/host.h> |
36 | #include <linux/mmc/card.h> | 36 | #include <linux/mmc/card.h> |
37 | #include <linux/regulator/fixed.h> | 37 | #include <linux/regulator/fixed.h> |
38 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
38 | 39 | ||
39 | #include <asm/mach-types.h> | 40 | #include <asm/mach-types.h> |
40 | #include <asm/mach/arch.h> | 41 | #include <asm/mach/arch.h> |
41 | #include <asm/mach/map.h> | 42 | #include <asm/mach/map.h> |
42 | 43 | ||
43 | #include "common.h" | 44 | #include "common.h" |
44 | #include <plat/mcspi.h> | ||
45 | #include <plat/usb.h> | 45 | #include <plat/usb.h> |
46 | #include <video/omapdss.h> | 46 | #include <video/omapdss.h> |
47 | #include <plat/nand.h> | 47 | #include <linux/platform_data/mtd-nand-omap2.h> |
48 | 48 | ||
49 | #include "mux.h" | 49 | #include "mux.h" |
50 | #include "sdram-micron-mt46h32m32lf-6.h" | 50 | #include "sdram-micron-mt46h32m32lf-6.h" |
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index b8756f0d2a08..c7f3d026e6d4 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -41,13 +41,13 @@ | |||
41 | 41 | ||
42 | #include "common.h" | 42 | #include "common.h" |
43 | #include <plat/gpmc.h> | 43 | #include <plat/gpmc.h> |
44 | #include <plat/nand.h> | 44 | #include <linux/platform_data/mtd-nand-omap2.h> |
45 | #include <plat/usb.h> | 45 | #include <plat/usb.h> |
46 | #include <video/omapdss.h> | 46 | #include <video/omapdss.h> |
47 | #include <video/omap-panel-generic-dpi.h> | 47 | #include <video/omap-panel-generic-dpi.h> |
48 | #include <video/omap-panel-tfp410.h> | 48 | #include <video/omap-panel-tfp410.h> |
49 | 49 | ||
50 | #include <plat/mcspi.h> | 50 | #include <linux/platform_data/spi-omap2-mcspi.h> |
51 | #include <linux/input/matrix_keypad.h> | 51 | #include <linux/input/matrix_keypad.h> |
52 | #include <linux/spi/spi.h> | 52 | #include <linux/spi/spi.h> |
53 | #include <linux/interrupt.h> | 53 | #include <linux/interrupt.h> |
@@ -60,7 +60,7 @@ | |||
60 | #include "common-board-devices.h" | 60 | #include "common-board-devices.h" |
61 | 61 | ||
62 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 62 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
63 | #include <plat/gpmc-smsc911x.h> | 63 | #include "gpmc-smsc911x.h" |
64 | 64 | ||
65 | #define OMAP3STALKER_ETHR_START 0x2c000000 | 65 | #define OMAP3STALKER_ETHR_START 0x2c000000 |
66 | #define OMAP3STALKER_ETHR_SIZE 1024 | 66 | #define OMAP3STALKER_ETHR_SIZE 1024 |
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 0e2f838e4009..944ffc436577 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/mtd/nand.h> | 29 | #include <linux/mtd/nand.h> |
30 | #include <linux/mmc/host.h> | 30 | #include <linux/mmc/host.h> |
31 | 31 | ||
32 | #include <plat/mcspi.h> | 32 | #include <linux/platform_data/spi-omap2-mcspi.h> |
33 | #include <linux/spi/spi.h> | 33 | #include <linux/spi/spi.h> |
34 | 34 | ||
35 | #include <linux/spi/ads7846.h> | 35 | #include <linux/spi/ads7846.h> |
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | #include "common.h" | 46 | #include "common.h" |
47 | #include <plat/gpmc.h> | 47 | #include <plat/gpmc.h> |
48 | #include <plat/nand.h> | 48 | #include <linux/platform_data/mtd-nand-omap2.h> |
49 | #include <plat/usb.h> | 49 | #include <plat/usb.h> |
50 | 50 | ||
51 | #include "mux.h" | 51 | #include "mux.h" |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 8ae2c599dd7f..556e777b9c40 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -516,6 +516,7 @@ static void __init omap4_panda_init(void) | |||
516 | MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board") | 516 | MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board") |
517 | /* Maintainer: David Anders - Texas Instruments Inc */ | 517 | /* Maintainer: David Anders - Texas Instruments Inc */ |
518 | .atag_offset = 0x100, | 518 | .atag_offset = 0x100, |
519 | .smp = smp_ops(omap4_smp_ops), | ||
519 | .reserve = omap_reserve, | 520 | .reserve = omap_reserve, |
520 | .map_io = omap4_map_io, | 521 | .map_io = omap4_map_io, |
521 | .init_early = omap4430_init_early, | 522 | .init_early = omap4430_init_early, |
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 13c101c2c643..2e7f24030fc9 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -37,6 +37,9 @@ | |||
37 | #include <linux/mtd/partitions.h> | 37 | #include <linux/mtd/partitions.h> |
38 | #include <linux/mmc/host.h> | 38 | #include <linux/mmc/host.h> |
39 | 39 | ||
40 | #include <linux/platform_data/mtd-nand-omap2.h> | ||
41 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
42 | |||
40 | #include <asm/mach-types.h> | 43 | #include <asm/mach-types.h> |
41 | #include <asm/mach/arch.h> | 44 | #include <asm/mach/arch.h> |
42 | #include <asm/mach/flash.h> | 45 | #include <asm/mach/flash.h> |
@@ -47,8 +50,6 @@ | |||
47 | #include <video/omap-panel-generic-dpi.h> | 50 | #include <video/omap-panel-generic-dpi.h> |
48 | #include <video/omap-panel-tfp410.h> | 51 | #include <video/omap-panel-tfp410.h> |
49 | #include <plat/gpmc.h> | 52 | #include <plat/gpmc.h> |
50 | #include <plat/nand.h> | ||
51 | #include <plat/mcspi.h> | ||
52 | #include <plat/usb.h> | 53 | #include <plat/usb.h> |
53 | 54 | ||
54 | #include "mux.h" | 55 | #include "mux.h" |
@@ -113,7 +114,7 @@ static inline void __init overo_ads7846_init(void) { return; } | |||
113 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 114 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
114 | 115 | ||
115 | #include <linux/smsc911x.h> | 116 | #include <linux/smsc911x.h> |
116 | #include <plat/gpmc-smsc911x.h> | 117 | #include "gpmc-smsc911x.h" |
117 | 118 | ||
118 | static struct omap_smsc911x_platform_data smsc911x_cfg = { | 119 | static struct omap_smsc911x_platform_data smsc911x_cfg = { |
119 | .id = 0, | 120 | .id = 0, |
diff --git a/arch/arm/mach-omap2/board-rm680.c b/arch/arm/mach-omap2/board-rm680.c index 00773a32524a..45997bfbcbd2 100644 --- a/arch/arm/mach-omap2/board-rm680.c +++ b/arch/arm/mach-omap2/board-rm680.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/regulator/fixed.h> | 17 | #include <linux/regulator/fixed.h> |
18 | #include <linux/regulator/machine.h> | 18 | #include <linux/regulator/machine.h> |
19 | #include <linux/regulator/consumer.h> | 19 | #include <linux/regulator/consumer.h> |
20 | #include <linux/platform_data/mtd-onenand-omap2.h> | ||
20 | 21 | ||
21 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
22 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
@@ -26,7 +27,6 @@ | |||
26 | #include <plat/usb.h> | 27 | #include <plat/usb.h> |
27 | #include <plat/gpmc.h> | 28 | #include <plat/gpmc.h> |
28 | #include "common.h" | 29 | #include "common.h" |
29 | #include <plat/onenand.h> | ||
30 | #include <plat/serial.h> | 30 | #include <plat/serial.h> |
31 | 31 | ||
32 | #include "mux.h" | 32 | #include "mux.h" |
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 456049055daa..3945c5017085 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -25,16 +25,17 @@ | |||
25 | #include <linux/gpio_keys.h> | 25 | #include <linux/gpio_keys.h> |
26 | #include <linux/mmc/host.h> | 26 | #include <linux/mmc/host.h> |
27 | #include <linux/power/isp1704_charger.h> | 27 | #include <linux/power/isp1704_charger.h> |
28 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
29 | #include <linux/platform_data/mtd-onenand-omap2.h> | ||
30 | |||
28 | #include <asm/system_info.h> | 31 | #include <asm/system_info.h> |
29 | 32 | ||
30 | #include <plat/mcspi.h> | ||
31 | #include "common.h" | 33 | #include "common.h" |
32 | #include <plat/dma.h> | 34 | #include <plat/dma.h> |
33 | #include <plat/gpmc.h> | 35 | #include <plat/gpmc.h> |
34 | #include <plat/onenand.h> | 36 | #include "gpmc-smc91x.h" |
35 | #include <plat/gpmc-smc91x.h> | ||
36 | 37 | ||
37 | #include <mach/board-rx51.h> | 38 | #include "board-rx51.h" |
38 | 39 | ||
39 | #include <sound/tlv320aic3x.h> | 40 | #include <sound/tlv320aic3x.h> |
40 | #include <sound/tpa6130a2-plat.h> | 41 | #include <sound/tpa6130a2-plat.h> |
diff --git a/arch/arm/mach-omap2/board-rx51-video.c b/arch/arm/mach-omap2/board-rx51-video.c index 2c1289bd5e6a..c22e111bcd00 100644 --- a/arch/arm/mach-omap2/board-rx51-video.c +++ b/arch/arm/mach-omap2/board-rx51-video.c | |||
@@ -17,9 +17,9 @@ | |||
17 | #include <asm/mach-types.h> | 17 | #include <asm/mach-types.h> |
18 | #include <video/omapdss.h> | 18 | #include <video/omapdss.h> |
19 | #include <plat/vram.h> | 19 | #include <plat/vram.h> |
20 | #include <plat/mcspi.h> | 20 | #include <linux/platform_data/spi-omap2-mcspi.h> |
21 | 21 | ||
22 | #include <mach/board-rx51.h> | 22 | #include "board-rx51.h" |
23 | 23 | ||
24 | #include "mux.h" | 24 | #include "mux.h" |
25 | 25 | ||
diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 93b466150002..7bbb05d9689b 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c | |||
@@ -17,12 +17,12 @@ | |||
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/gpio.h> | 18 | #include <linux/gpio.h> |
19 | #include <linux/leds.h> | 19 | #include <linux/leds.h> |
20 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
20 | 21 | ||
21 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
23 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
24 | 25 | ||
25 | #include <plat/mcspi.h> | ||
26 | #include "common.h" | 26 | #include "common.h" |
27 | #include <plat/dma.h> | 27 | #include <plat/dma.h> |
28 | #include <plat/gpmc.h> | 28 | #include <plat/gpmc.h> |
diff --git a/arch/arm/mach-omap2/include/mach/board-rx51.h b/arch/arm/mach-omap2/board-rx51.h index b76f49e7eed5..b76f49e7eed5 100644 --- a/arch/arm/mach-omap2/include/mach/board-rx51.h +++ b/arch/arm/mach-omap2/board-rx51.h | |||
diff --git a/arch/arm/mach-omap2/board-zoom-debugboard.c b/arch/arm/mach-omap2/board-zoom-debugboard.c index 0d8d91917d10..afb2278a29f6 100644 --- a/arch/arm/mach-omap2/board-zoom-debugboard.c +++ b/arch/arm/mach-omap2/board-zoom-debugboard.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/regulator/machine.h> | 18 | #include <linux/regulator/machine.h> |
19 | 19 | ||
20 | #include <plat/gpmc.h> | 20 | #include <plat/gpmc.h> |
21 | #include <plat/gpmc-smsc911x.h> | 21 | #include "gpmc-smsc911x.h" |
22 | 22 | ||
23 | #include <mach/board-zoom.h> | 23 | #include <mach/board-zoom.h> |
24 | 24 | ||
diff --git a/arch/arm/mach-omap2/board-zoom-display.c b/arch/arm/mach-omap2/board-zoom-display.c index ea79bc299baf..b940ab2259fb 100644 --- a/arch/arm/mach-omap2/board-zoom-display.c +++ b/arch/arm/mach-omap2/board-zoom-display.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/gpio.h> | 14 | #include <linux/gpio.h> |
15 | #include <linux/i2c/twl.h> | 15 | #include <linux/i2c/twl.h> |
16 | #include <linux/spi/spi.h> | 16 | #include <linux/spi/spi.h> |
17 | #include <plat/mcspi.h> | 17 | #include <linux/platform_data/spi-omap2-mcspi.h> |
18 | #include <video/omapdss.h> | 18 | #include <video/omapdss.h> |
19 | #include <mach/board-zoom.h> | 19 | #include <mach/board-zoom.h> |
20 | 20 | ||
diff --git a/arch/arm/mach-omap2/common-board-devices.c b/arch/arm/mach-omap2/common-board-devices.c index f81dd0a18aaf..48daac2581b4 100644 --- a/arch/arm/mach-omap2/common-board-devices.c +++ b/arch/arm/mach-omap2/common-board-devices.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <linux/spi/spi.h> | 24 | #include <linux/spi/spi.h> |
25 | #include <linux/spi/ads7846.h> | 25 | #include <linux/spi/ads7846.h> |
26 | 26 | ||
27 | #include <plat/mcspi.h> | 27 | #include <linux/platform_data/spi-omap2-mcspi.h> |
28 | #include <plat/nand.h> | 28 | #include <linux/platform_data/mtd-nand-omap2.h> |
29 | 29 | ||
30 | #include "common.h" | 30 | #include "common.h" |
31 | #include "common-board-devices.h" | 31 | #include "common-board-devices.h" |
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index 8e43c4d885d5..17950c6e130b 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | 19 | ||
20 | #include <plat/mux.h> | ||
21 | #include <plat/clock.h> | 20 | #include <plat/clock.h> |
22 | 21 | ||
23 | #include "soc.h" | 22 | #include "soc.h" |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index da0f5c187353..7045e4d61ac3 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -285,6 +285,11 @@ extern void omap_secondary_startup(void); | |||
285 | extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); | 285 | extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask); |
286 | extern void omap_auxcoreboot_addr(u32 cpu_addr); | 286 | extern void omap_auxcoreboot_addr(u32 cpu_addr); |
287 | extern u32 omap_read_auxcoreboot0(void); | 287 | extern u32 omap_read_auxcoreboot0(void); |
288 | |||
289 | extern void omap4_cpu_die(unsigned int cpu); | ||
290 | |||
291 | extern struct smp_operations omap4_smp_ops; | ||
292 | |||
288 | extern void omap5_secondary_startup(void); | 293 | extern void omap5_secondary_startup(void); |
289 | #endif | 294 | #endif |
290 | 295 | ||
diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h index 5594b42372ee..a89e8256fd0e 100644 --- a/arch/arm/mach-omap2/control.h +++ b/arch/arm/mach-omap2/control.h | |||
@@ -16,10 +16,10 @@ | |||
16 | #ifndef __ARCH_ARM_MACH_OMAP2_CONTROL_H | 16 | #ifndef __ARCH_ARM_MACH_OMAP2_CONTROL_H |
17 | #define __ARCH_ARM_MACH_OMAP2_CONTROL_H | 17 | #define __ARCH_ARM_MACH_OMAP2_CONTROL_H |
18 | 18 | ||
19 | #include <mach/ctrl_module_core_44xx.h> | 19 | #include "ctrl_module_core_44xx.h" |
20 | #include <mach/ctrl_module_wkup_44xx.h> | 20 | #include "ctrl_module_wkup_44xx.h" |
21 | #include <mach/ctrl_module_pad_core_44xx.h> | 21 | #include "ctrl_module_pad_core_44xx.h" |
22 | #include <mach/ctrl_module_pad_wkup_44xx.h> | 22 | #include "ctrl_module_pad_wkup_44xx.h" |
23 | 23 | ||
24 | #include "am33xx.h" | 24 | #include "am33xx.h" |
25 | 25 | ||
diff --git a/arch/arm/mach-omap2/include/mach/ctrl_module_core_44xx.h b/arch/arm/mach-omap2/ctrl_module_core_44xx.h index 01970824e0e5..01970824e0e5 100644 --- a/arch/arm/mach-omap2/include/mach/ctrl_module_core_44xx.h +++ b/arch/arm/mach-omap2/ctrl_module_core_44xx.h | |||
diff --git a/arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h b/arch/arm/mach-omap2/ctrl_module_pad_core_44xx.h index c88420de1151..c88420de1151 100644 --- a/arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +++ b/arch/arm/mach-omap2/ctrl_module_pad_core_44xx.h | |||
diff --git a/arch/arm/mach-omap2/include/mach/ctrl_module_pad_wkup_44xx.h b/arch/arm/mach-omap2/ctrl_module_pad_wkup_44xx.h index 17c9b37042c0..17c9b37042c0 100644 --- a/arch/arm/mach-omap2/include/mach/ctrl_module_pad_wkup_44xx.h +++ b/arch/arm/mach-omap2/ctrl_module_pad_wkup_44xx.h | |||
diff --git a/arch/arm/mach-omap2/include/mach/ctrl_module_wkup_44xx.h b/arch/arm/mach-omap2/ctrl_module_wkup_44xx.h index a0af9baec3f7..a0af9baec3f7 100644 --- a/arch/arm/mach-omap2/include/mach/ctrl_module_wkup_44xx.h +++ b/arch/arm/mach-omap2/ctrl_module_wkup_44xx.h | |||
diff --git a/arch/arm/mach-omap2/debug-devices.h b/arch/arm/mach-omap2/debug-devices.h new file mode 100644 index 000000000000..a4edbd2f7484 --- /dev/null +++ b/arch/arm/mach-omap2/debug-devices.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef _OMAP_DEBUG_DEVICES_H | ||
2 | #define _OMAP_DEBUG_DEVICES_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | /* for TI reference platforms sharing the same debug card */ | ||
7 | extern int debug_card_init(u32 addr, unsigned gpio); | ||
8 | |||
9 | #endif | ||
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 1b7e1c6e5359..c8c211731d26 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -22,13 +22,12 @@ | |||
22 | 22 | ||
23 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
24 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
25 | #include <asm/pmu.h> | ||
26 | 25 | ||
27 | #include "iomap.h" | 26 | #include "iomap.h" |
28 | #include <plat/dma.h> | 27 | #include <plat/dma.h> |
29 | #include <plat/omap_hwmod.h> | 28 | #include <plat/omap_hwmod.h> |
30 | #include <plat/omap_device.h> | 29 | #include <plat/omap_device.h> |
31 | #include <plat/omap4-keypad.h> | 30 | #include "omap4-keypad.h" |
32 | 31 | ||
33 | #include "soc.h" | 32 | #include "soc.h" |
34 | #include "common.h" | 33 | #include "common.h" |
@@ -385,7 +384,7 @@ static inline void omap_init_hdmi_audio(void) {} | |||
385 | 384 | ||
386 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) | 385 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) |
387 | 386 | ||
388 | #include <plat/mcspi.h> | 387 | #include <linux/platform_data/spi-omap2-mcspi.h> |
389 | 388 | ||
390 | static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused) | 389 | static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused) |
391 | { | 390 | { |
diff --git a/arch/arm/mach-omap2/dsp.c b/arch/arm/mach-omap2/dsp.c index a636ebc16b39..98388109f22a 100644 --- a/arch/arm/mach-omap2/dsp.c +++ b/arch/arm/mach-omap2/dsp.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <plat/omap-pm.h> | 30 | #include <plat/omap-pm.h> |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #include <plat/dsp.h> | 33 | #include <linux/platform_data/dsp-omap.h> |
34 | 34 | ||
35 | static struct platform_device *omap_dsp_pdev; | 35 | static struct platform_device *omap_dsp_pdev; |
36 | 36 | ||
diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index 9e9f47ad6187..4acf497faeb3 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach-omap2/gpmc-nand.c | |||
@@ -13,10 +13,10 @@ | |||
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/mtd/nand.h> | 15 | #include <linux/mtd/nand.h> |
16 | #include <linux/platform_data/mtd-nand-omap2.h> | ||
16 | 17 | ||
17 | #include <asm/mach/flash.h> | 18 | #include <asm/mach/flash.h> |
18 | 19 | ||
19 | #include <plat/nand.h> | ||
20 | #include <plat/gpmc.h> | 20 | #include <plat/gpmc.h> |
21 | 21 | ||
22 | #include "soc.h" | 22 | #include "soc.h" |
diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach-omap2/gpmc-onenand.c index b66fb8e5faaa..916716e1da3b 100644 --- a/arch/arm/mach-omap2/gpmc-onenand.c +++ b/arch/arm/mach-omap2/gpmc-onenand.c | |||
@@ -15,10 +15,10 @@ | |||
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | #include <linux/mtd/onenand_regs.h> | 16 | #include <linux/mtd/onenand_regs.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/platform_data/mtd-onenand-omap2.h> | ||
18 | 19 | ||
19 | #include <asm/mach/flash.h> | 20 | #include <asm/mach/flash.h> |
20 | 21 | ||
21 | #include <plat/onenand.h> | ||
22 | #include <plat/gpmc.h> | 22 | #include <plat/gpmc.h> |
23 | 23 | ||
24 | #include "soc.h" | 24 | #include "soc.h" |
diff --git a/arch/arm/mach-omap2/gpmc-smc91x.c b/arch/arm/mach-omap2/gpmc-smc91x.c index 245839dfc722..565475310374 100644 --- a/arch/arm/mach-omap2/gpmc-smc91x.c +++ b/arch/arm/mach-omap2/gpmc-smc91x.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/smc91x.h> | 18 | #include <linux/smc91x.h> |
19 | 19 | ||
20 | #include <plat/gpmc.h> | 20 | #include <plat/gpmc.h> |
21 | #include <plat/gpmc-smc91x.h> | 21 | #include "gpmc-smc91x.h" |
22 | 22 | ||
23 | #include "soc.h" | 23 | #include "soc.h" |
24 | 24 | ||
diff --git a/arch/arm/mach-omap2/gpmc-smc91x.h b/arch/arm/mach-omap2/gpmc-smc91x.h new file mode 100644 index 000000000000..b64fbee4d567 --- /dev/null +++ b/arch/arm/mach-omap2/gpmc-smc91x.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/gpmc-smc91x.h | ||
3 | * | ||
4 | * Copyright (C) 2009 Nokia Corporation | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_OMAP_GPMC_SMC91X_H__ | ||
12 | |||
13 | #define GPMC_TIMINGS_SMC91C96 (1 << 4) | ||
14 | #define GPMC_MUX_ADD_DATA (1 << 5) /* GPMC_CONFIG1_MUXADDDATA */ | ||
15 | #define GPMC_READ_MON (1 << 6) /* GPMC_CONFIG1_WAIT_READ_MON */ | ||
16 | #define GPMC_WRITE_MON (1 << 7) /* GPMC_CONFIG1_WAIT_WRITE_MON */ | ||
17 | |||
18 | struct omap_smc91x_platform_data { | ||
19 | int cs; | ||
20 | int gpio_irq; | ||
21 | int gpio_pwrdwn; | ||
22 | int gpio_reset; | ||
23 | int wait_pin; /* Optional GPMC_CONFIG1_WAITPINSELECT */ | ||
24 | u32 flags; | ||
25 | int (*retime)(void); | ||
26 | }; | ||
27 | |||
28 | #if defined(CONFIG_SMC91X) || \ | ||
29 | defined(CONFIG_SMC91X_MODULE) | ||
30 | |||
31 | extern void gpmc_smc91x_init(struct omap_smc91x_platform_data *d); | ||
32 | |||
33 | #else | ||
34 | |||
35 | #define board_smc91x_data NULL | ||
36 | |||
37 | static inline void gpmc_smc91x_init(struct omap_smc91x_platform_data *d) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | #endif | ||
42 | #endif | ||
diff --git a/arch/arm/mach-omap2/gpmc-smsc911x.c b/arch/arm/mach-omap2/gpmc-smsc911x.c index a3a28878f0c9..249a0b440cd6 100644 --- a/arch/arm/mach-omap2/gpmc-smsc911x.c +++ b/arch/arm/mach-omap2/gpmc-smsc911x.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/smsc911x.h> | 21 | #include <linux/smsc911x.h> |
22 | 22 | ||
23 | #include <plat/gpmc.h> | 23 | #include <plat/gpmc.h> |
24 | #include <plat/gpmc-smsc911x.h> | 24 | #include "gpmc-smsc911x.h" |
25 | 25 | ||
26 | static struct resource gpmc_smsc911x_resources[] = { | 26 | static struct resource gpmc_smsc911x_resources[] = { |
27 | [0] = { | 27 | [0] = { |
diff --git a/arch/arm/mach-omap2/gpmc-smsc911x.h b/arch/arm/mach-omap2/gpmc-smsc911x.h new file mode 100644 index 000000000000..ea6c9c88c725 --- /dev/null +++ b/arch/arm/mach-omap2/gpmc-smsc911x.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/plat/gpmc-smsc911x.h | ||
3 | * | ||
4 | * Copyright (C) 2009 Li-Pro.Net | ||
5 | * Stephan Linz <linz@li-pro.net> | ||
6 | * | ||
7 | * Modified from arch/arm/plat-omap/include/plat/gpmc-smc91x.h | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #ifndef __ASM_ARCH_OMAP_GPMC_SMSC911X_H__ | ||
15 | |||
16 | struct omap_smsc911x_platform_data { | ||
17 | int id; | ||
18 | int cs; | ||
19 | int gpio_irq; | ||
20 | int gpio_reset; | ||
21 | u32 flags; | ||
22 | }; | ||
23 | |||
24 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | ||
25 | |||
26 | extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d); | ||
27 | |||
28 | #else | ||
29 | |||
30 | static inline void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | #endif | ||
35 | #endif | ||
diff --git a/arch/arm/mach-omap2/hdq1w.c b/arch/arm/mach-omap2/hdq1w.c index cdd6dda03828..e003f2bba30c 100644 --- a/arch/arm/mach-omap2/hdq1w.c +++ b/arch/arm/mach-omap2/hdq1w.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | #include <plat/omap_hwmod.h> | 30 | #include <plat/omap_hwmod.h> |
31 | #include <plat/omap_device.h> | 31 | #include <plat/omap_device.h> |
32 | #include <plat/hdq1w.h> | 32 | #include "hdq1w.h" |
33 | 33 | ||
34 | #include "common.h" | 34 | #include "common.h" |
35 | 35 | ||
diff --git a/arch/arm/mach-omap2/hdq1w.h b/arch/arm/mach-omap2/hdq1w.h new file mode 100644 index 000000000000..0c1efc846d8d --- /dev/null +++ b/arch/arm/mach-omap2/hdq1w.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * Shared macros and function prototypes for the HDQ1W/1-wire IP block | ||
3 | * | ||
4 | * Copyright (C) 2012 Texas Instruments, Inc. | ||
5 | * Paul Walmsley | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU General Public License | ||
9 | * version 2 as published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, but | ||
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
19 | * 02110-1301 USA | ||
20 | */ | ||
21 | #ifndef ARCH_ARM_MACH_OMAP2_HDQ1W_H | ||
22 | #define ARCH_ARM_MACH_OMAP2_HDQ1W_H | ||
23 | |||
24 | #include <plat/omap_hwmod.h> | ||
25 | |||
26 | /* | ||
27 | * XXX A future cleanup patch should modify | ||
28 | * drivers/w1/masters/omap_hdq.c to use these macros | ||
29 | */ | ||
30 | #define HDQ_CTRL_STATUS_OFFSET 0x0c | ||
31 | #define HDQ_CTRL_STATUS_CLOCKENABLE_SHIFT 5 | ||
32 | |||
33 | |||
34 | extern int omap_hdq1w_reset(struct omap_hwmod *oh); | ||
35 | |||
36 | #endif | ||
diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c index 80399d740952..03ebf47cfa9a 100644 --- a/arch/arm/mach-omap2/hsmmc.c +++ b/arch/arm/mach-omap2/hsmmc.c | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #include <plat/mmc.h> | 20 | #include <plat/mmc.h> |
21 | #include <plat/omap-pm.h> | 21 | #include <plat/omap-pm.h> |
22 | #include <plat/mux.h> | ||
23 | #include <plat/omap_device.h> | 22 | #include <plat/omap_device.h> |
24 | 23 | ||
25 | #include "mux.h" | 24 | #include "mux.h" |
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 6b98a178fbe0..cf2362ccb234 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #include "common.h" | 24 | #include "common.h" |
25 | 25 | ||
26 | #include <mach/id.h> | 26 | #include "id.h" |
27 | 27 | ||
28 | #include "soc.h" | 28 | #include "soc.h" |
29 | #include "control.h" | 29 | #include "control.h" |
diff --git a/arch/arm/mach-omap2/include/mach/id.h b/arch/arm/mach-omap2/id.h index 02ed3aa56f1e..02ed3aa56f1e 100644 --- a/arch/arm/mach-omap2/include/mach/id.h +++ b/arch/arm/mach-omap2/id.h | |||
diff --git a/arch/arm/mach-omap2/include/mach/smp.h b/arch/arm/mach-omap2/include/mach/smp.h deleted file mode 100644 index 323675f21b69..000000000000 --- a/arch/arm/mach-omap2/include/mach/smp.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-omap2/include/mach/smp.h | ||
3 | */ | ||
4 | |||
5 | #include <plat/smp.h> | ||
diff --git a/arch/arm/mach-omap2/l3_2xxx.h b/arch/arm/mach-omap2/l3_2xxx.h new file mode 100644 index 000000000000..b8b5641379b0 --- /dev/null +++ b/arch/arm/mach-omap2/l3_2xxx.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/plat/l3_2xxx.h - L3 firewall definitions | ||
3 | * | ||
4 | * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * Sumit Semwal | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_L3_2XXX_H | ||
14 | #define __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_L3_2XXX_H | ||
15 | |||
16 | /* L3 CONNIDs */ | ||
17 | /* Display Sub system (DSS) */ | ||
18 | #define OMAP2_L3_CORE_FW_CONNID_DSS 8 | ||
19 | |||
20 | #endif | ||
diff --git a/arch/arm/mach-omap2/l3_3xxx.h b/arch/arm/mach-omap2/l3_3xxx.h new file mode 100644 index 000000000000..cde1938c5f82 --- /dev/null +++ b/arch/arm/mach-omap2/l3_3xxx.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/plat/l3_3xxx.h - L3 firewall definitions | ||
3 | * | ||
4 | * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * Sumit Semwal | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_L3_3XXX_H | ||
14 | #define __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_L3_3XXX_H | ||
15 | |||
16 | /* L3 Initiator IDs */ | ||
17 | /* Display Sub system (DSS) */ | ||
18 | #define OMAP3_L3_CORE_FW_INIT_ID_DSS 29 | ||
19 | |||
20 | #endif | ||
diff --git a/arch/arm/mach-omap2/l4_2xxx.h b/arch/arm/mach-omap2/l4_2xxx.h new file mode 100644 index 000000000000..3f39cf8a35c6 --- /dev/null +++ b/arch/arm/mach-omap2/l4_2xxx.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/plat/l4_2xxx.h - L4 firewall definitions | ||
3 | * | ||
4 | * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * Sumit Semwal | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_L4_2XXX_H | ||
14 | #define __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_L4_2XXX_H | ||
15 | |||
16 | /* L4 CORE */ | ||
17 | /* Display Sub system (DSS) */ | ||
18 | #define OMAP2420_L4_CORE_FW_DSS_CORE_REGION 28 | ||
19 | #define OMAP2420_L4_CORE_FW_DSS_DISPC_REGION 29 | ||
20 | #define OMAP2420_L4_CORE_FW_DSS_RFBI_REGION 30 | ||
21 | #define OMAP2420_L4_CORE_FW_DSS_VENC_REGION 31 | ||
22 | #define OMAP2420_L4_CORE_FW_DSS_TA_REGION 32 | ||
23 | |||
24 | #endif | ||
diff --git a/arch/arm/mach-omap2/l4_3xxx.h b/arch/arm/mach-omap2/l4_3xxx.h new file mode 100644 index 000000000000..881a858b1ffc --- /dev/null +++ b/arch/arm/mach-omap2/l4_3xxx.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/l4_3xxx.h - L4 firewall definitions | ||
3 | * | ||
4 | * Copyright (C) 2009 Nokia Corporation | ||
5 | * Paul Walmsley | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | */ | ||
13 | #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_L4_3XXX_H | ||
14 | #define __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_L4_3XXX_H | ||
15 | |||
16 | /* L4 CORE */ | ||
17 | #define OMAP3_L4_CORE_FW_I2C1_REGION 21 | ||
18 | #define OMAP3_L4_CORE_FW_I2C1_TA_REGION 22 | ||
19 | #define OMAP3_L4_CORE_FW_I2C2_REGION 23 | ||
20 | #define OMAP3_L4_CORE_FW_I2C2_TA_REGION 24 | ||
21 | #define OMAP3_L4_CORE_FW_I2C3_REGION 73 | ||
22 | #define OMAP3_L4_CORE_FW_I2C3_TA_REGION 74 | ||
23 | |||
24 | /* Display Sub system (DSS) */ | ||
25 | #define OMAP3_L4_CORE_FW_DSS_PROT_GROUP 2 | ||
26 | |||
27 | #define OMAP3_L4_CORE_FW_DSS_DSI_REGION 104 | ||
28 | #define OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION 3 | ||
29 | #define OMAP3_L4_CORE_FW_DSS_CORE_REGION 4 | ||
30 | #define OMAP3_L4_CORE_FW_DSS_DISPC_REGION 4 | ||
31 | #define OMAP3_L4_CORE_FW_DSS_RFBI_REGION 5 | ||
32 | #define OMAP3_L4_CORE_FW_DSS_VENC_REGION 6 | ||
33 | #define OMAP3_L4_CORE_FW_DSS_TA_REGION 7 | ||
34 | #endif | ||
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index d493727632e9..7d47407d6d46 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c | |||
@@ -17,9 +17,9 @@ | |||
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/slab.h> | 19 | #include <linux/slab.h> |
20 | #include <linux/platform_data/asoc-ti-mcbsp.h> | ||
20 | 21 | ||
21 | #include <plat/dma.h> | 22 | #include <plat/dma.h> |
22 | #include <plat/mcbsp.h> | ||
23 | #include <plat/omap_device.h> | 23 | #include <plat/omap_device.h> |
24 | #include <linux/pm_runtime.h> | 24 | #include <linux/pm_runtime.h> |
25 | 25 | ||
diff --git a/arch/arm/mach-omap2/omap-hotplug.c b/arch/arm/mach-omap2/omap-hotplug.c index 414083b427df..e712d1725a8b 100644 --- a/arch/arm/mach-omap2/omap-hotplug.c +++ b/arch/arm/mach-omap2/omap-hotplug.c | |||
@@ -20,22 +20,17 @@ | |||
20 | #include <linux/io.h> | 20 | #include <linux/io.h> |
21 | 21 | ||
22 | #include <asm/cacheflush.h> | 22 | #include <asm/cacheflush.h> |
23 | #include <mach/omap-wakeupgen.h> | 23 | #include "omap-wakeupgen.h" |
24 | 24 | ||
25 | #include "common.h" | 25 | #include "common.h" |
26 | 26 | ||
27 | #include "powerdomain.h" | 27 | #include "powerdomain.h" |
28 | 28 | ||
29 | int platform_cpu_kill(unsigned int cpu) | ||
30 | { | ||
31 | return 1; | ||
32 | } | ||
33 | |||
34 | /* | 29 | /* |
35 | * platform-specific code to shutdown a CPU | 30 | * platform-specific code to shutdown a CPU |
36 | * Called with IRQs disabled | 31 | * Called with IRQs disabled |
37 | */ | 32 | */ |
38 | void __ref platform_cpu_die(unsigned int cpu) | 33 | void __ref omap4_cpu_die(unsigned int cpu) |
39 | { | 34 | { |
40 | unsigned int boot_cpu = 0; | 35 | unsigned int boot_cpu = 0; |
41 | void __iomem *base = omap_get_wakeupgen_base(); | 36 | void __iomem *base = omap_get_wakeupgen_base(); |
@@ -75,12 +70,3 @@ void __ref platform_cpu_die(unsigned int cpu) | |||
75 | pr_debug("CPU%u: spurious wakeup call\n", cpu); | 70 | pr_debug("CPU%u: spurious wakeup call\n", cpu); |
76 | } | 71 | } |
77 | } | 72 | } |
78 | |||
79 | int platform_cpu_disable(unsigned int cpu) | ||
80 | { | ||
81 | /* | ||
82 | * we don't allow CPU 0 to be shutdown (it is still too special | ||
83 | * e.g. clock tick interrupts) | ||
84 | */ | ||
85 | return cpu == 0 ? -EPERM : 0; | ||
86 | } | ||
diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c index d9ae4a53d818..a004cb9acf52 100644 --- a/arch/arm/mach-omap2/omap-secure.c +++ b/arch/arm/mach-omap2/omap-secure.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <asm/memblock.h> | 19 | #include <asm/memblock.h> |
20 | 20 | ||
21 | #include <plat/omap-secure.h> | 21 | #include <plat/omap-secure.h> |
22 | #include <mach/omap-secure.h> | 22 | #include "omap-secure.h" |
23 | 23 | ||
24 | static phys_addr_t omap_secure_memblock_base; | 24 | static phys_addr_t omap_secure_memblock_base; |
25 | 25 | ||
diff --git a/arch/arm/mach-omap2/include/mach/omap-secure.h b/arch/arm/mach-omap2/omap-secure.h index c90a43589abe..c90a43589abe 100644 --- a/arch/arm/mach-omap2/include/mach/omap-secure.h +++ b/arch/arm/mach-omap2/omap-secure.h | |||
diff --git a/arch/arm/mach-omap2/omap-smp.c b/arch/arm/mach-omap2/omap-smp.c index 19cc5f504f7e..4d05fa8a4e48 100644 --- a/arch/arm/mach-omap2/omap-smp.c +++ b/arch/arm/mach-omap2/omap-smp.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <asm/hardware/gic.h> | 24 | #include <asm/hardware/gic.h> |
25 | #include <asm/smp_scu.h> | 25 | #include <asm/smp_scu.h> |
26 | 26 | ||
27 | #include <mach/omap-secure.h> | 27 | #include "omap-secure.h" |
28 | #include <mach/omap-wakeupgen.h> | 28 | #include "omap-wakeupgen.h" |
29 | #include <asm/cputype.h> | 29 | #include <asm/cputype.h> |
30 | 30 | ||
31 | #include "soc.h" | 31 | #include "soc.h" |
@@ -49,7 +49,7 @@ void __iomem *omap4_get_scu_base(void) | |||
49 | return scu_base; | 49 | return scu_base; |
50 | } | 50 | } |
51 | 51 | ||
52 | void __cpuinit platform_secondary_init(unsigned int cpu) | 52 | static void __cpuinit omap4_secondary_init(unsigned int cpu) |
53 | { | 53 | { |
54 | /* | 54 | /* |
55 | * Configure ACTRL and enable NS SMP bit access on CPU1 on HS device. | 55 | * Configure ACTRL and enable NS SMP bit access on CPU1 on HS device. |
@@ -77,7 +77,7 @@ void __cpuinit platform_secondary_init(unsigned int cpu) | |||
77 | spin_unlock(&boot_lock); | 77 | spin_unlock(&boot_lock); |
78 | } | 78 | } |
79 | 79 | ||
80 | int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle) | 80 | static int __cpuinit omap4_boot_secondary(unsigned int cpu, struct task_struct *idle) |
81 | { | 81 | { |
82 | static struct clockdomain *cpu1_clkdm; | 82 | static struct clockdomain *cpu1_clkdm; |
83 | static bool booted; | 83 | static bool booted; |
@@ -165,7 +165,7 @@ static void __init wakeup_secondary(void) | |||
165 | * Initialise the CPU possible map early - this describes the CPUs | 165 | * Initialise the CPU possible map early - this describes the CPUs |
166 | * which may be present or become present in the system. | 166 | * which may be present or become present in the system. |
167 | */ | 167 | */ |
168 | void __init smp_init_cpus(void) | 168 | static void __init omap4_smp_init_cpus(void) |
169 | { | 169 | { |
170 | unsigned int i = 0, ncores = 1, cpu_id; | 170 | unsigned int i = 0, ncores = 1, cpu_id; |
171 | 171 | ||
@@ -196,7 +196,7 @@ void __init smp_init_cpus(void) | |||
196 | set_smp_cross_call(gic_raise_softirq); | 196 | set_smp_cross_call(gic_raise_softirq); |
197 | } | 197 | } |
198 | 198 | ||
199 | void __init platform_smp_prepare_cpus(unsigned int max_cpus) | 199 | static void __init omap4_smp_prepare_cpus(unsigned int max_cpus) |
200 | { | 200 | { |
201 | 201 | ||
202 | /* | 202 | /* |
@@ -207,3 +207,13 @@ void __init platform_smp_prepare_cpus(unsigned int max_cpus) | |||
207 | scu_enable(scu_base); | 207 | scu_enable(scu_base); |
208 | wakeup_secondary(); | 208 | wakeup_secondary(); |
209 | } | 209 | } |
210 | |||
211 | struct smp_operations omap4_smp_ops __initdata = { | ||
212 | .smp_init_cpus = omap4_smp_init_cpus, | ||
213 | .smp_prepare_cpus = omap4_smp_prepare_cpus, | ||
214 | .smp_secondary_init = omap4_secondary_init, | ||
215 | .smp_boot_secondary = omap4_boot_secondary, | ||
216 | #ifdef CONFIG_HOTPLUG_CPU | ||
217 | .cpu_die = omap4_cpu_die, | ||
218 | #endif | ||
219 | }; | ||
diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c index ecaad7d371ee..b3275babf192 100644 --- a/arch/arm/mach-omap2/omap-wakeupgen.c +++ b/arch/arm/mach-omap2/omap-wakeupgen.c | |||
@@ -27,8 +27,8 @@ | |||
27 | 27 | ||
28 | #include <asm/hardware/gic.h> | 28 | #include <asm/hardware/gic.h> |
29 | 29 | ||
30 | #include <mach/omap-wakeupgen.h> | 30 | #include "omap-wakeupgen.h" |
31 | #include <mach/omap-secure.h> | 31 | #include "omap-secure.h" |
32 | 32 | ||
33 | #include "soc.h" | 33 | #include "soc.h" |
34 | #include "omap4-sar-layout.h" | 34 | #include "omap4-sar-layout.h" |
diff --git a/arch/arm/mach-omap2/include/mach/omap-wakeupgen.h b/arch/arm/mach-omap2/omap-wakeupgen.h index b0fd16f5c391..b0fd16f5c391 100644 --- a/arch/arm/mach-omap2/include/mach/omap-wakeupgen.h +++ b/arch/arm/mach-omap2/omap-wakeupgen.h | |||
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 73c1440a8253..e1f289748c5d 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <plat/omap-secure.h> | 29 | #include <plat/omap-secure.h> |
30 | #include <plat/mmc.h> | 30 | #include <plat/mmc.h> |
31 | 31 | ||
32 | #include <mach/omap-wakeupgen.h> | 32 | #include "omap-wakeupgen.h" |
33 | 33 | ||
34 | #include "soc.h" | 34 | #include "soc.h" |
35 | #include "common.h" | 35 | #include "common.h" |
@@ -170,7 +170,10 @@ static int __init omap_l2_cache_init(void) | |||
170 | /* Enable PL310 L2 Cache controller */ | 170 | /* Enable PL310 L2 Cache controller */ |
171 | omap_smc1(0x102, 0x1); | 171 | omap_smc1(0x102, 0x1); |
172 | 172 | ||
173 | l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK); | 173 | if (of_have_populated_dt()) |
174 | l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK); | ||
175 | else | ||
176 | l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK); | ||
174 | 177 | ||
175 | /* | 178 | /* |
176 | * Override default outer_cache.disable with a OMAP4 | 179 | * Override default outer_cache.disable with a OMAP4 |
diff --git a/arch/arm/mach-omap2/omap4-keypad.h b/arch/arm/mach-omap2/omap4-keypad.h new file mode 100644 index 000000000000..20de0d5a7e77 --- /dev/null +++ b/arch/arm/mach-omap2/omap4-keypad.h | |||
@@ -0,0 +1,8 @@ | |||
1 | #ifndef ARCH_ARM_PLAT_OMAP4_KEYPAD_H | ||
2 | #define ARCH_ARM_PLAT_OMAP4_KEYPAD_H | ||
3 | |||
4 | struct omap_board_data; | ||
5 | |||
6 | extern int omap4_keyboard_init(struct omap4_keypad_platform_data *, | ||
7 | struct omap_board_data *); | ||
8 | #endif | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 6af64bbd9e1d..299ca2821ad1 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -3403,6 +3403,33 @@ int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res) | |||
3403 | } | 3403 | } |
3404 | 3404 | ||
3405 | /** | 3405 | /** |
3406 | * omap_hwmod_fill_dma_resources - fill struct resource array with dma data | ||
3407 | * @oh: struct omap_hwmod * | ||
3408 | * @res: pointer to the array of struct resource to fill | ||
3409 | * | ||
3410 | * Fill the struct resource array @res with dma resource data from the | ||
3411 | * omap_hwmod @oh. Intended to be called by code that registers | ||
3412 | * omap_devices. See also omap_hwmod_count_resources(). Returns the | ||
3413 | * number of array elements filled. | ||
3414 | */ | ||
3415 | int omap_hwmod_fill_dma_resources(struct omap_hwmod *oh, struct resource *res) | ||
3416 | { | ||
3417 | int i, sdma_reqs_cnt; | ||
3418 | int r = 0; | ||
3419 | |||
3420 | sdma_reqs_cnt = _count_sdma_reqs(oh); | ||
3421 | for (i = 0; i < sdma_reqs_cnt; i++) { | ||
3422 | (res + r)->name = (oh->sdma_reqs + i)->name; | ||
3423 | (res + r)->start = (oh->sdma_reqs + i)->dma_req; | ||
3424 | (res + r)->end = (oh->sdma_reqs + i)->dma_req; | ||
3425 | (res + r)->flags = IORESOURCE_DMA; | ||
3426 | r++; | ||
3427 | } | ||
3428 | |||
3429 | return r; | ||
3430 | } | ||
3431 | |||
3432 | /** | ||
3406 | * omap_hwmod_get_resource_byname - fetch IP block integration data by name | 3433 | * omap_hwmod_get_resource_byname - fetch IP block integration data by name |
3407 | * @oh: struct omap_hwmod * to operate on | 3434 | * @oh: struct omap_hwmod * to operate on |
3408 | * @type: one of the IORESOURCE_* constants from include/linux/ioport.h | 3435 | * @type: one of the IORESOURCE_* constants from include/linux/ioport.h |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm/mach-omap2/omap_hwmod_2420_data.c index e778ff4e1887..b5db6007c523 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2420_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2420_data.c | |||
@@ -12,14 +12,15 @@ | |||
12 | * XXX handle crossbar/shared link difference for L3? | 12 | * XXX handle crossbar/shared link difference for L3? |
13 | * XXX these should be marked initdata for multi-OMAP kernels | 13 | * XXX these should be marked initdata for multi-OMAP kernels |
14 | */ | 14 | */ |
15 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
16 | |||
15 | #include <plat/omap_hwmod.h> | 17 | #include <plat/omap_hwmod.h> |
16 | #include <plat/dma.h> | 18 | #include <plat/dma.h> |
17 | #include <plat/serial.h> | 19 | #include <plat/serial.h> |
18 | #include <plat/i2c.h> | 20 | #include <plat/i2c.h> |
19 | #include <plat/mcspi.h> | ||
20 | #include <plat/dmtimer.h> | 21 | #include <plat/dmtimer.h> |
21 | #include <plat/l3_2xxx.h> | 22 | #include "l3_2xxx.h" |
22 | #include <plat/l4_2xxx.h> | 23 | #include "l4_2xxx.h" |
23 | #include <plat/mmc.h> | 24 | #include <plat/mmc.h> |
24 | 25 | ||
25 | #include "omap_hwmod_common_data.h" | 26 | #include "omap_hwmod_common_data.h" |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c index cc4ed9024372..c455e41b0237 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c | |||
@@ -12,15 +12,16 @@ | |||
12 | * XXX handle crossbar/shared link difference for L3? | 12 | * XXX handle crossbar/shared link difference for L3? |
13 | * XXX these should be marked initdata for multi-OMAP kernels | 13 | * XXX these should be marked initdata for multi-OMAP kernels |
14 | */ | 14 | */ |
15 | #include <linux/platform_data/asoc-ti-mcbsp.h> | ||
16 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
17 | |||
15 | #include <plat/omap_hwmod.h> | 18 | #include <plat/omap_hwmod.h> |
16 | #include <plat/dma.h> | 19 | #include <plat/dma.h> |
17 | #include <plat/serial.h> | 20 | #include <plat/serial.h> |
18 | #include <plat/i2c.h> | 21 | #include <plat/i2c.h> |
19 | #include <plat/mcbsp.h> | ||
20 | #include <plat/mcspi.h> | ||
21 | #include <plat/dmtimer.h> | 22 | #include <plat/dmtimer.h> |
22 | #include <plat/mmc.h> | 23 | #include <plat/mmc.h> |
23 | #include <plat/l3_2xxx.h> | 24 | #include "l3_2xxx.h" |
24 | 25 | ||
25 | #include "soc.h" | 26 | #include "soc.h" |
26 | #include "omap_hwmod_common_data.h" | 27 | #include "omap_hwmod_common_data.h" |
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c index bea700e928e7..8851bbb6bb24 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <plat/serial.h> | 13 | #include <plat/serial.h> |
14 | #include <plat/dma.h> | 14 | #include <plat/dma.h> |
15 | #include <plat/common.h> | 15 | #include <plat/common.h> |
16 | #include <plat/hdq1w.h> | 16 | #include "hdq1w.h" |
17 | 17 | ||
18 | #include "omap_hwmod_common_data.h" | 18 | #include "omap_hwmod_common_data.h" |
19 | 19 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c index c83d6c517be4..1a1287d62648 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c | |||
@@ -15,8 +15,8 @@ | |||
15 | 15 | ||
16 | #include <plat/omap_hwmod.h> | 16 | #include <plat/omap_hwmod.h> |
17 | #include <plat/serial.h> | 17 | #include <plat/serial.h> |
18 | #include <plat/l3_2xxx.h> | 18 | #include "l3_2xxx.h" |
19 | #include <plat/l4_2xxx.h> | 19 | #include "l4_2xxx.h" |
20 | 20 | ||
21 | #include "omap_hwmod_common_data.h" | 21 | #include "omap_hwmod_common_data.h" |
22 | 22 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c index d59a9ce40d2a..35dcdb66a4e0 100644 --- a/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/platform_data/gpio-omap.h> | 13 | #include <linux/platform_data/gpio-omap.h> |
14 | #include <plat/dma.h> | 14 | #include <plat/dma.h> |
15 | #include <plat/dmtimer.h> | 15 | #include <plat/dmtimer.h> |
16 | #include <plat/mcspi.h> | 16 | #include <linux/platform_data/spi-omap2-mcspi.h> |
17 | 17 | ||
18 | #include "omap_hwmod_common_data.h" | 18 | #include "omap_hwmod_common_data.h" |
19 | #include "cm-regbits-24xx.h" | 19 | #include "cm-regbits-24xx.h" |
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c index 22433cb2bec0..59d5c1cd316d 100644 --- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c | |||
@@ -17,9 +17,9 @@ | |||
17 | #include <plat/omap_hwmod.h> | 17 | #include <plat/omap_hwmod.h> |
18 | #include <plat/cpu.h> | 18 | #include <plat/cpu.h> |
19 | #include <linux/platform_data/gpio-omap.h> | 19 | #include <linux/platform_data/gpio-omap.h> |
20 | #include <linux/platform_data/spi-omap2-mcspi.h> | ||
20 | #include <plat/dma.h> | 21 | #include <plat/dma.h> |
21 | #include <plat/mmc.h> | 22 | #include <plat/mmc.h> |
22 | #include <plat/mcspi.h> | ||
23 | #include <plat/i2c.h> | 23 | #include <plat/i2c.h> |
24 | 24 | ||
25 | #include "omap_hwmod_common_data.h" | 25 | #include "omap_hwmod_common_data.h" |
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 016429d89bb0..285777241d5a 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -20,16 +20,16 @@ | |||
20 | #include <plat/omap_hwmod.h> | 20 | #include <plat/omap_hwmod.h> |
21 | #include <plat/dma.h> | 21 | #include <plat/dma.h> |
22 | #include <plat/serial.h> | 22 | #include <plat/serial.h> |
23 | #include <plat/l3_3xxx.h> | 23 | #include "l3_3xxx.h" |
24 | #include <plat/l4_3xxx.h> | 24 | #include "l4_3xxx.h" |
25 | #include <plat/i2c.h> | 25 | #include <plat/i2c.h> |
26 | #include <plat/mmc.h> | 26 | #include <plat/mmc.h> |
27 | #include <plat/mcbsp.h> | 27 | #include <linux/platform_data/asoc-ti-mcbsp.h> |
28 | #include <plat/mcspi.h> | 28 | #include <linux/platform_data/spi-omap2-mcspi.h> |
29 | #include <plat/dmtimer.h> | 29 | #include <plat/dmtimer.h> |
30 | #include <plat/iommu.h> | 30 | #include <plat/iommu.h> |
31 | 31 | ||
32 | #include <mach/am35xx.h> | 32 | #include "am35xx.h" |
33 | 33 | ||
34 | #include "soc.h" | 34 | #include "soc.h" |
35 | #include "omap_hwmod_common_data.h" | 35 | #include "omap_hwmod_common_data.h" |
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index e6b8d02d0b0e..ae0acaf506ed 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -25,8 +25,8 @@ | |||
25 | #include <plat/omap_hwmod.h> | 25 | #include <plat/omap_hwmod.h> |
26 | #include <plat/i2c.h> | 26 | #include <plat/i2c.h> |
27 | #include <plat/dma.h> | 27 | #include <plat/dma.h> |
28 | #include <plat/mcspi.h> | 28 | #include <linux/platform_data/spi-omap2-mcspi.h> |
29 | #include <plat/mcbsp.h> | 29 | #include <linux/platform_data/asoc-ti-mcbsp.h> |
30 | #include <plat/mmc.h> | 30 | #include <plat/mmc.h> |
31 | #include <plat/dmtimer.h> | 31 | #include <plat/dmtimer.h> |
32 | #include <plat/common.h> | 32 | #include <plat/common.h> |
diff --git a/arch/arm/mach-omap2/sleep44xx.S b/arch/arm/mach-omap2/sleep44xx.S index b7d8ead4b86a..88ff83a0942e 100644 --- a/arch/arm/mach-omap2/sleep44xx.S +++ b/arch/arm/mach-omap2/sleep44xx.S | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <asm/memory.h> | 14 | #include <asm/memory.h> |
15 | #include <asm/hardware/cache-l2x0.h> | 15 | #include <asm/hardware/cache-l2x0.h> |
16 | 16 | ||
17 | #include <mach/omap-secure.h> | 17 | #include "omap-secure.h" |
18 | 18 | ||
19 | #include "common.h" | 19 | #include "common.h" |
20 | #include "omap44xx.h" | 20 | #include "omap44xx.h" |
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 5214d5bfba27..810aa1a332e1 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/clocksource.h> | 36 | #include <linux/clocksource.h> |
37 | #include <linux/clockchips.h> | 37 | #include <linux/clockchips.h> |
38 | #include <linux/slab.h> | 38 | #include <linux/slab.h> |
39 | #include <linux/of.h> | ||
39 | 40 | ||
40 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
41 | #include <asm/smp_twd.h> | 42 | #include <asm/smp_twd.h> |
@@ -394,6 +395,11 @@ static void __init omap4_timer_init(void) | |||
394 | if (omap_rev() != OMAP4430_REV_ES1_0) { | 395 | if (omap_rev() != OMAP4430_REV_ES1_0) { |
395 | int err; | 396 | int err; |
396 | 397 | ||
398 | if (of_have_populated_dt()) { | ||
399 | twd_local_timer_of_register(); | ||
400 | return; | ||
401 | } | ||
402 | |||
397 | err = twd_local_timer_register(&twd_local_timer); | 403 | err = twd_local_timer_register(&twd_local_timer); |
398 | if (err) | 404 | if (err) |
399 | pr_err("twd_local_timer_register failed %d\n", err); | 405 | pr_err("twd_local_timer_register failed %d\n", err); |
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 89150b2435e5..136c64bc9028 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <plat/usb.h> | 28 | #include <plat/usb.h> |
29 | #include <plat/omap_device.h> | 29 | #include <plat/omap_device.h> |
30 | 30 | ||
31 | #include <mach/am35xx.h> | 31 | #include "am35xx.h" |
32 | 32 | ||
33 | #include "mux.h" | 33 | #include "mux.h" |
34 | 34 | ||
diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h index 0ac2caf15941..7283b7ed7de8 100644 --- a/arch/arm/mach-omap2/voltage.h +++ b/arch/arm/mach-omap2/voltage.h | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | 18 | ||
19 | #include <plat/voltage.h> | 19 | #include <linux/platform_data/voltage-omap.h> |
20 | 20 | ||
21 | #include "vc.h" | 21 | #include "vc.h" |
22 | #include "vp.h" | 22 | #include "vp.h" |