2 # Makefile for the linux kernel.
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 omap_hwmod.o
9 # INTCPS IP block support - XXX should be moved to drivers/
10 obj-$(CONFIG_ARCH_OMAP2) += irq.o
11 obj-$(CONFIG_ARCH_OMAP3) += irq.o
12 obj-$(CONFIG_SOC_AM33XX) += irq.o
14 # Secure monitor API support
15 obj-$(CONFIG_ARCH_OMAP3) += omap-smc.o omap-secure.o
16 obj-$(CONFIG_ARCH_OMAP4) += omap-smc.o omap-secure.o
17 obj-$(CONFIG_SOC_OMAP5) += omap-smc.o omap-secure.o
19 ifneq ($(CONFIG_SND_OMAP_SOC_MCBSP),)
23 obj-$(CONFIG_TWL4030_CORE) += omap_twl.o
25 # SMP support ONLY available for OMAP4
27 obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o
28 obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o
29 obj-$(CONFIG_ARCH_OMAP4) += omap4-common.o omap-wakeupgen.o
30 obj-$(CONFIG_SOC_OMAP5) += omap4-common.o omap-wakeupgen.o
32 plus_sec := $(call as-instr,.arch_extension sec,+sec)
33 AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec)
34 AFLAGS_omap-smc.o :=-Wa,-march=armv7-a$(plus_sec)
35 AFLAGS_sleep44xx.o :=-Wa,-march=armv7-a$(plus_sec)
37 # Functions loaded to SRAM
38 obj-$(CONFIG_SOC_OMAP2420) += sram242x.o
39 obj-$(CONFIG_SOC_OMAP2430) += sram243x.o
40 obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o
42 AFLAGS_sram242x.o :=-Wa,-march=armv6
43 AFLAGS_sram243x.o :=-Wa,-march=armv6
44 AFLAGS_sram34xx.o :=-Wa,-march=armv7-a
47 obj-$(CONFIG_SOC_OMAP2420) += mux2420.o
48 obj-$(CONFIG_SOC_OMAP2430) += mux2430.o
49 obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o
50 obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o
53 obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o
54 # obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o
55 obj-$(CONFIG_SOC_HAS_OMAP2_SDRC) += sdrc.o
57 # OPP table initialization
58 ifeq ($(CONFIG_PM_OPP),y)
60 obj-$(CONFIG_ARCH_OMAP3) += opp3xxx_data.o
61 obj-$(CONFIG_ARCH_OMAP4) += opp4xxx_data.o
66 obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o sleep24xx.o
67 obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o
68 obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o omap-mpuss-lowpower.o
69 obj-$(CONFIG_ARCH_OMAP4) += sleep44xx.o
70 obj-$(CONFIG_SOC_OMAP5) += omap-mpuss-lowpower.o sleep44xx.o
71 obj-$(CONFIG_PM_DEBUG) += pm-debug.o
73 obj-$(CONFIG_POWER_AVS_OMAP) += sr_device.o
74 obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o
76 AFLAGS_sleep24xx.o :=-Wa,-march=armv6
77 AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec)
79 ifeq ($(CONFIG_PM_VERBOSE),y)
80 CFLAGS_pm_bus.o += -DDEBUG
85 ifeq ($(CONFIG_CPU_IDLE),y)
86 obj-$(CONFIG_ARCH_OMAP3) += cpuidle34xx.o
87 obj-$(CONFIG_ARCH_OMAP4) += cpuidle44xx.o
91 obj-y += prcm.o prm_common.o
92 obj-$(CONFIG_ARCH_OMAP2) += cm2xxx_3xxx.o prm2xxx_3xxx.o
93 obj-$(CONFIG_ARCH_OMAP3) += cm2xxx_3xxx.o prm2xxx_3xxx.o
94 obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o
95 obj-$(CONFIG_SOC_AM33XX) += prm33xx.o cm33xx.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 \
100 obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common)
101 obj-$(CONFIG_SOC_OMAP5) += $(omap-prcm-4-5-common)
103 # OMAP voltage domains
104 obj-y += voltage.o vc.o vp.o
105 obj-$(CONFIG_ARCH_OMAP2) += voltagedomains2xxx_data.o
106 obj-$(CONFIG_ARCH_OMAP3) += voltagedomains3xxx_data.o
107 obj-$(CONFIG_ARCH_OMAP4) += voltagedomains44xx_data.o
108 obj-$(CONFIG_SOC_AM33XX) += voltagedomains33xx_data.o
110 # OMAP powerdomain framework
111 obj-y += powerdomain.o powerdomain-common.o
112 obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_data.o
113 obj-$(CONFIG_ARCH_OMAP2) += powerdomain2xxx_3xxx.o
114 obj-$(CONFIG_ARCH_OMAP2) += powerdomains2xxx_3xxx_data.o
115 obj-$(CONFIG_ARCH_OMAP3) += powerdomain2xxx_3xxx.o
116 obj-$(CONFIG_ARCH_OMAP3) += powerdomains3xxx_data.o
117 obj-$(CONFIG_ARCH_OMAP3) += powerdomains2xxx_3xxx_data.o
118 obj-$(CONFIG_ARCH_OMAP4) += powerdomain44xx.o
119 obj-$(CONFIG_ARCH_OMAP4) += powerdomains44xx_data.o
120 obj-$(CONFIG_SOC_AM33XX) += powerdomain33xx.o
121 obj-$(CONFIG_SOC_AM33XX) += powerdomains33xx_data.o
122 obj-$(CONFIG_SOC_OMAP5) += powerdomain44xx.o
124 # PRCM clockdomain control
125 obj-y += clockdomain.o
126 obj-$(CONFIG_ARCH_OMAP2) += clockdomain2xxx_3xxx.o
127 obj-$(CONFIG_ARCH_OMAP2) += clockdomains2xxx_3xxx_data.o
128 obj-$(CONFIG_SOC_OMAP2420) += clockdomains2420_data.o
129 obj-$(CONFIG_SOC_OMAP2430) += clockdomains2430_data.o
130 obj-$(CONFIG_ARCH_OMAP3) += clockdomain2xxx_3xxx.o
131 obj-$(CONFIG_ARCH_OMAP3) += clockdomains2xxx_3xxx_data.o
132 obj-$(CONFIG_ARCH_OMAP3) += clockdomains3xxx_data.o
133 obj-$(CONFIG_ARCH_OMAP4) += clockdomain44xx.o
134 obj-$(CONFIG_ARCH_OMAP4) += clockdomains44xx_data.o
135 obj-$(CONFIG_SOC_AM33XX) += clockdomain33xx.o
136 obj-$(CONFIG_SOC_AM33XX) += clockdomains33xx_data.o
137 obj-$(CONFIG_SOC_OMAP5) += clockdomain44xx.o
140 obj-y += clock.o clock_common_data.o \
141 clkt_dpll.o clkt_clksel.o
142 obj-$(CONFIG_ARCH_OMAP2) += clock2xxx.o
143 obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpllcore.o clkt2xxx_sys.o
144 obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_virt_prcm_set.o
145 obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_apll.o clkt2xxx_osc.o
146 obj-$(CONFIG_ARCH_OMAP2) += clkt2xxx_dpll.o clkt_iclk.o
147 obj-$(CONFIG_SOC_OMAP2420) += clock2420_data.o
148 obj-$(CONFIG_SOC_OMAP2430) += clock2430.o clock2430_data.o
149 obj-$(CONFIG_ARCH_OMAP3) += clock3xxx.o
150 obj-$(CONFIG_ARCH_OMAP3) += clock34xx.o clkt34xx_dpll3m2.o
151 obj-$(CONFIG_ARCH_OMAP3) += clock3517.o clock36xx.o clkt_iclk.o
152 obj-$(CONFIG_ARCH_OMAP3) += dpll3xxx.o clock3xxx_data.o
153 obj-$(CONFIG_ARCH_OMAP4) += clock44xx_data.o
154 obj-$(CONFIG_ARCH_OMAP4) += dpll3xxx.o dpll44xx.o
155 obj-$(CONFIG_SOC_AM33XX) += dpll3xxx.o clock33xx_data.o
156 obj-$(CONFIG_SOC_OMAP5) += dpll3xxx.o dpll44xx.o
158 # OMAP2 clock rate set data (old "OPP" data)
159 obj-$(CONFIG_SOC_OMAP2420) += opp2420_data.o
160 obj-$(CONFIG_SOC_OMAP2430) += opp2430_data.o
163 obj-y += omap_hwmod_common_data.o
164 obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_ipblock_data.o
165 obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_3xxx_ipblock_data.o
166 obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_interconnect_data.o
167 obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2xxx_3xxx_interconnect_data.o
168 obj-$(CONFIG_SOC_OMAP2420) += omap_hwmod_2420_data.o
169 obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2xxx_ipblock_data.o
170 obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2xxx_3xxx_ipblock_data.o
171 obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2xxx_interconnect_data.o
172 obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2xxx_3xxx_interconnect_data.o
173 obj-$(CONFIG_SOC_OMAP2430) += omap_hwmod_2430_data.o
174 obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_2xxx_3xxx_ipblock_data.o
175 obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_2xxx_3xxx_interconnect_data.o
176 obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o
177 obj-$(CONFIG_SOC_AM33XX) += omap_hwmod_33xx_data.o
178 obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o
181 obj-$(CONFIG_OMAP3_EMU) += emu.o
184 obj-$(CONFIG_ARCH_OMAP3) += omap_l3_smx.o
185 obj-$(CONFIG_ARCH_OMAP4) += omap_l3_noc.o
186 obj-$(CONFIG_SOC_OMAP5) += omap_l3_noc.o
188 obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o
189 mailbox_mach-objs := mailbox.o
191 obj-$(CONFIG_OMAP_IOMMU) += iommu2.o
193 iommu-$(CONFIG_OMAP_IOMMU) := omap-iommu.o
194 obj-y += $(iommu-m) $(iommu-y)
196 ifneq ($(CONFIG_TIDSPBRIDGE),)
200 # OMAP2420 MSDI controller integration support ("MMC")
201 obj-$(CONFIG_SOC_OMAP2420) += msdi.o
203 ifneq ($(CONFIG_DRM_OMAP),)
207 # Specific board support
208 obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o
209 obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o
210 obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o
211 obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o
212 obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o
213 obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o
214 obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o
215 obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o
216 obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o
217 obj-$(CONFIG_MACH_ENCORE) += board-omap3encore.o
218 obj-$(CONFIG_MACH_OVERO) += board-overo.o
219 obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o
220 obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o
221 obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o
222 obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o
223 obj-$(CONFIG_MACH_NOKIA_RM680) += board-rm680.o sdram-nokia.o
224 obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o sdram-nokia.o
225 obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51-peripherals.o
226 obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51-video.o
227 obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom.o board-zoom-peripherals.o
228 obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom-display.o
229 obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom-debugboard.o
230 obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom.o board-zoom-peripherals.o
231 obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom-display.o
232 obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom-debugboard.o
233 obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o
234 obj-$(CONFIG_MACH_OMAP_3630SDP) += board-zoom-peripherals.o
235 obj-$(CONFIG_MACH_OMAP_3630SDP) += board-zoom-display.o
236 obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o
237 obj-$(CONFIG_MACH_CM_T3517) += board-cm-t3517.o
238 obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o
239 obj-$(CONFIG_MACH_TOUCHBOOK) += board-omap3touchbook.o
240 obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o
241 obj-$(CONFIG_MACH_OMAP4_PANDA) += board-omap4panda.o
243 obj-$(CONFIG_MACH_PCM049) += board-omap4pcm049.o
245 obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o
247 obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o
249 obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o
250 obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o
251 obj-$(CONFIG_MACH_TI8148EVM) += board-ti8168evm.o
253 # Platform specific device init code
255 omap-flash-$(CONFIG_MTD_NAND_OMAP2) := board-flash.o
256 omap-flash-$(CONFIG_MTD_ONENAND_OMAP2) := board-flash.o
257 obj-y += $(omap-flash-y) $(omap-flash-m)
259 omap-hsmmc-$(CONFIG_MMC_OMAP_HS) := hsmmc.o
260 obj-y += $(omap-hsmmc-m) $(omap-hsmmc-y)
263 obj-y += omap_phy_internal.o
265 obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o
268 onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o
269 obj-y += $(onenand-m) $(onenand-y)
271 nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o
272 obj-y += $(nand-m) $(nand-y)
274 smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o
275 obj-y += $(smc91x-m) $(smc91x-y)
277 smsc911x-$(CONFIG_SMSC911X) := gpmc-smsc911x.o
278 obj-y += $(smsc911x-m) $(smsc911x-y)
279 ifneq ($(CONFIG_HWSPINLOCK_OMAP),)
280 obj-y += hwspinlock.o
283 emac-$(CONFIG_TI_DAVINCI_EMAC) := am35xx-emac.o
284 obj-y += $(emac-m) $(emac-y)
286 obj-y += common-board-devices.o twl-common.o