Commit | Line | Data |
---|---|---|
1dbae815 TL |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
5 | # Common support | |
aa218daf | 6 | obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer-gp.o pm.o \ |
81fbc5ef | 7 | common.o gpio.o dma.o wd_timer.o |
d7607663 | 8 | |
cf21405f | 9 | omap-2-3-common = irq.o sdrc.o prm2xxx_3xxx.o |
43b40992 | 10 | hwmod-common = omap_hwmod.o \ |
358f0e63 | 11 | omap_hwmod_common_data.o |
0b96af68 | 12 | clock-common = clock.o clock_common_data.o \ |
df791b3e PW |
13 | clockdomain.o clkt_dpll.o \ |
14 | clkt_clksel.o | |
657ebfad | 15 | |
74bea6b9 RN |
16 | obj-$(CONFIG_ARCH_OMAP2) += $(omap-2-3-common) $(hwmod-common) |
17 | obj-$(CONFIG_ARCH_OMAP3) += $(omap-2-3-common) $(hwmod-common) | |
18 | obj-$(CONFIG_ARCH_OMAP4) += prm44xx.o $(hwmod-common) | |
1dbae815 | 19 | |
78673bc8 EV |
20 | obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o |
21 | ||
934f8be7 SS |
22 | # SMP support ONLY available for OMAP4 |
23 | obj-$(CONFIG_SMP) += omap-smp.o omap-headsmp.o | |
24 | obj-$(CONFIG_LOCAL_TIMERS) += timer-mpu.o | |
7d35b8d0 | 25 | obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o |
fbc9be10 | 26 | obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o |
d660f9a2 | 27 | |
fe297dde JR |
28 | plus_sec := $(call as-instr,.arch_extension sec,+sec) |
29 | AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec) | |
30 | AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec) | |
934f8be7 | 31 | |
c2d43e39 TL |
32 | # Functions loaded to SRAM |
33 | obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o | |
34 | obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o | |
cc26b3b0 | 35 | obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o |
c2d43e39 | 36 | |
56213ca4 TL |
37 | AFLAGS_sram242x.o :=-Wa,-march=armv6 |
38 | AFLAGS_sram243x.o :=-Wa,-march=armv6 | |
39 | AFLAGS_sram34xx.o :=-Wa,-march=armv7-a | |
40 | ||
ddaa912a | 41 | # Pin multiplexing |
fc440461 | 42 | obj-$(CONFIG_ARCH_OMAP2420) += mux2420.o |
89ba1092 | 43 | obj-$(CONFIG_ARCH_OMAP2430) += mux2430.o |
ddaa912a | 44 | obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o |
a041a52c | 45 | obj-$(CONFIG_ARCH_OMAP4) += mux44xx.o |
ddaa912a | 46 | |
f2ab9977 PW |
47 | # SMS/SDRC |
48 | obj-$(CONFIG_ARCH_OMAP2) += sdrc2xxx.o | |
49 | # obj-$(CONFIG_ARCH_OMAP3) += sdrc3xxx.o | |
50 | ||
fd1478cd NM |
51 | # OPP table initialization |
52 | ifeq ($(CONFIG_PM_OPP),y) | |
53 | obj-y += opp.o | |
54 | obj-$(CONFIG_ARCH_OMAP3) += opp3xxx_data.o | |
f5a6422d | 55 | obj-$(CONFIG_ARCH_OMAP4) += opp4xxx_data.o |
fd1478cd NM |
56 | endif |
57 | ||
120db2cb | 58 | # Power Management |
1835f1d7 | 59 | ifeq ($(CONFIG_PM),y) |
8bd22949 | 60 | obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o |
57e6fe7b KH |
61 | obj-$(CONFIG_ARCH_OMAP2) += sleep24xx.o pm_bus.o |
62 | obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o pm_bus.o | |
63 | obj-$(CONFIG_ARCH_OMAP4) += pm44xx.o pm_bus.o | |
8bd22949 | 64 | obj-$(CONFIG_PM_DEBUG) += pm-debug.o |
56213ca4 TL |
65 | |
66 | AFLAGS_sleep24xx.o :=-Wa,-march=armv6 | |
67 | AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a | |
68 | ||
57e6fe7b KH |
69 | ifeq ($(CONFIG_PM_VERBOSE),y) |
70 | CFLAGS_pm_bus.o += -DDEBUG | |
71 | endif | |
72 | ||
1835f1d7 | 73 | endif |
120db2cb | 74 | |
71348bca | 75 | # PRCM |
74bea6b9 RN |
76 | obj-$(CONFIG_ARCH_OMAP2) += prcm.o cm.o |
77 | obj-$(CONFIG_ARCH_OMAP3) += prcm.o cm.o | |
78 | obj-$(CONFIG_ARCH_OMAP4) += prcm.o cm4xxx.o | |
79 | ||
80 | # OMAP powerdomain framework | |
9b7fc907 | 81 | powerdomain-common += powerdomain.o powerdomains_data.o powerdomain-common.o |
f327e07b RN |
82 | obj-$(CONFIG_ARCH_OMAP2) += $(powerdomain-common) \ |
83 | powerdomain2xxx_3xxx.o | |
84 | obj-$(CONFIG_ARCH_OMAP3) += $(powerdomain-common) \ | |
85 | powerdomain2xxx_3xxx.o | |
86 | obj-$(CONFIG_ARCH_OMAP4) += $(powerdomain-common) \ | |
87 | powerdomain44xx.o | |
71348bca | 88 | |
3d876e59 | 89 | # Clock framework |
657ebfad | 90 | obj-$(CONFIG_ARCH_OMAP2) += $(clock-common) clock2xxx.o \ |
81b34fbe | 91 | clkt2xxx_sys.o \ |
657ebfad PW |
92 | clkt2xxx_dpllcore.o \ |
93 | clkt2xxx_virt_prcm_set.o \ | |
94 | clkt2xxx_apll.o clkt2xxx_osc.o | |
81b34fbe PW |
95 | obj-$(CONFIG_ARCH_OMAP2420) += clock2420_data.o |
96 | obj-$(CONFIG_ARCH_OMAP2430) += clock2430.o clock2430_data.o | |
657ebfad PW |
97 | obj-$(CONFIG_ARCH_OMAP3) += $(clock-common) clock3xxx.o \ |
98 | clock34xx.o clkt34xx_dpll3m2.o \ | |
99 | clock3517.o clock36xx.o \ | |
100 | dpll3xxx.o clock3xxx_data.o | |
101 | obj-$(CONFIG_ARCH_OMAP4) += $(clock-common) clock44xx_data.o \ | |
102 | dpll3xxx.o | |
103 | ||
104 | # OMAP2 clock rate set data (old "OPP" data) | |
d8a94458 | 105 | obj-$(CONFIG_ARCH_OMAP2420) += opp2420_data.o |
d8a94458 | 106 | obj-$(CONFIG_ARCH_OMAP2430) += opp2430_data.o |
3d876e59 | 107 | |
7359154e PW |
108 | # hwmod data |
109 | obj-$(CONFIG_ARCH_OMAP2420) += omap_hwmod_2420_data.o | |
110 | obj-$(CONFIG_ARCH_OMAP2430) += omap_hwmod_2430_data.o | |
111 | obj-$(CONFIG_ARCH_OMAP3) += omap_hwmod_3xxx_data.o | |
55d2cb08 | 112 | obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o |
3d876e59 | 113 | |
183bd50f | 114 | # EMU peripherals |
657ebfad | 115 | obj-$(CONFIG_OMAP3_EMU) += emu.o |
183bd50f | 116 | |
59fdc6eb S |
117 | obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o |
118 | mailbox_mach-objs := mailbox.o | |
119 | ||
0bbc6fcf HD |
120 | obj-$(CONFIG_OMAP_IOMMU) += iommu2.o |
121 | ||
122 | iommu-$(CONFIG_OMAP_IOMMU) := omap-iommu.o | |
123 | obj-y += $(iommu-m) $(iommu-y) | |
caf60779 | 124 | |
b63128e8 TL |
125 | i2c-omap-$(CONFIG_I2C_OMAP) := i2c.o |
126 | obj-y += $(i2c-omap-m) $(i2c-omap-y) | |
127 | ||
90173882 FC |
128 | ifneq ($(CONFIG_TIDSPBRIDGE),) |
129 | obj-y += dsp.o | |
130 | endif | |
131 | ||
1dbae815 TL |
132 | # Specific board support |
133 | obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o | |
134 | obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o | |
90c62bf0 | 135 | obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \ |
d02a900b | 136 | hsmmc.o |
120db2cb | 137 | obj-$(CONFIG_MACH_OMAP_APOLLON) += board-apollon.o |
90c62bf0 | 138 | obj-$(CONFIG_MACH_OMAP3_BEAGLE) += board-omap3beagle.o \ |
d02a900b | 139 | hsmmc.o |
476544ca TW |
140 | obj-$(CONFIG_MACH_DEVKIT8000) += board-devkit8000.o \ |
141 | hsmmc.o | |
90c62bf0 | 142 | obj-$(CONFIG_MACH_OMAP_LDP) += board-ldp.o \ |
2430f9df | 143 | board-flash.o \ |
d02a900b | 144 | hsmmc.o |
d40f3f15 TN |
145 | obj-$(CONFIG_MACH_OMAP3530_LV_SOM) += board-omap3logic.o \ |
146 | hsmmc.o | |
147 | obj-$(CONFIG_MACH_OMAP3_TORPEDO) += board-omap3logic.o \ | |
148 | hsmmc.o | |
90c62bf0 | 149 | obj-$(CONFIG_MACH_OVERO) += board-overo.o \ |
d02a900b | 150 | hsmmc.o |
53c5ec31 | 151 | obj-$(CONFIG_MACH_OMAP3EVM) += board-omap3evm.o \ |
d02a900b | 152 | hsmmc.o |
90c62bf0 | 153 | obj-$(CONFIG_MACH_OMAP3_PANDORA) += board-omap3pandora.o \ |
d02a900b | 154 | hsmmc.o |
6fdc29e2 | 155 | obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \ |
d02a900b | 156 | hsmmc.o \ |
13d6b73c | 157 | board-flash.o |
63138812 | 158 | obj-$(CONFIG_MACH_NOKIA_N8X0) += board-n8x0.o |
2d200665 AK |
159 | obj-$(CONFIG_MACH_NOKIA_RM680) += board-rm680.o \ |
160 | sdram-nokia.o \ | |
161 | hsmmc.o | |
ffe7f95b | 162 | obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \ |
6c3bc4eb | 163 | sdram-nokia.o \ |
ffe7f95b | 164 | board-rx51-peripherals.o \ |
03e11104 | 165 | board-rx51-video.o \ |
d02a900b | 166 | hsmmc.o |
20826853 | 167 | obj-$(CONFIG_MACH_OMAP_ZOOM2) += board-zoom.o \ |
479f12c9 | 168 | board-zoom-peripherals.o \ |
7e7eb426 | 169 | board-flash.o \ |
d02a900b | 170 | hsmmc.o \ |
577145f4 | 171 | board-zoom-debugboard.o |
20826853 | 172 | obj-$(CONFIG_MACH_OMAP_ZOOM3) += board-zoom.o \ |
5f35fbe8 | 173 | board-zoom-peripherals.o \ |
e08b105e | 174 | board-flash.o \ |
d02a900b | 175 | hsmmc.o \ |
577145f4 | 176 | board-zoom-debugboard.o |
34c9ac23 | 177 | obj-$(CONFIG_MACH_OMAP_3630SDP) += board-3630sdp.o \ |
178 | board-zoom-peripherals.o \ | |
7875eea5 | 179 | board-flash.o \ |
d02a900b | 180 | hsmmc.o |
2886d128 | 181 | obj-$(CONFIG_MACH_CM_T35) += board-cm-t35.o \ |
d02a900b | 182 | hsmmc.o |
d04b620e | 183 | obj-$(CONFIG_MACH_CM_T3517) += board-cm-t3517.o |
58e11162 | 184 | obj-$(CONFIG_MACH_IGEP0020) += board-igep0020.o \ |
d02a900b | 185 | hsmmc.o |
e844b1da EBS |
186 | obj-$(CONFIG_MACH_IGEP0030) += board-igep0030.o \ |
187 | hsmmc.o | |
7a079cab | 188 | obj-$(CONFIG_MACH_OMAP3_TOUCHBOOK) += board-omap3touchbook.o \ |
d02a900b | 189 | hsmmc.o |
717c1fbf | 190 | obj-$(CONFIG_MACH_OMAP_4430SDP) += board-4430sdp.o \ |
191 | hsmmc.o | |
b075f58b DA |
192 | obj-$(CONFIG_MACH_OMAP4_PANDA) += board-omap4panda.o \ |
193 | hsmmc.o | |
ad19d8d9 | 194 | |
657ebfad | 195 | obj-$(CONFIG_MACH_OMAP3517EVM) += board-am3517evm.o |
c625327e | 196 | |
1cb125ca S |
197 | obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o |
198 | ||
9cbc3493 J |
199 | obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o \ |
200 | hsmmc.o | |
18cb7aca | 201 | # Platform specific device init code |
b5e8905b TL |
202 | usbfs-$(CONFIG_ARCH_OMAP_OTG) := usb-fs.o |
203 | obj-y += $(usbfs-m) $(usbfs-y) | |
18cb7aca | 204 | obj-y += usb-musb.o |
1b52d5df | 205 | obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o |
58a5491c | 206 | obj-y += usb-ehci.o |
aa62e90f JY |
207 | |
208 | onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o | |
209 | obj-y += $(onenand-m) $(onenand-y) | |
1a48e157 | 210 | |
2f70a1e9 VS |
211 | nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o |
212 | obj-y += $(nand-m) $(nand-y) | |
213 | ||
1a48e157 TL |
214 | smc91x-$(CONFIG_SMC91X) := gpmc-smc91x.o |
215 | obj-y += $(smc91x-m) $(smc91x-y) | |
cdd280b9 TN |
216 | |
217 | smsc911x-$(CONFIG_SMSC911X) := gpmc-smsc911x.o | |
218 | obj-y += $(smsc911x-m) $(smsc911x-y) |