ARM: tegra: refactor xusb registration
[linux-2.6.git] / arch / arm / mach-tegra / Makefile
1 GCOV_PROFILE := y
2
3 subdir-ccflags-y := -Werror
4
5 obj-y                                   += tegra_rst_reason.o
6 obj-y                                   += board-pinmux.o
7 obj-y                                   += ahb.o
8 obj-y                                   += common.o
9 obj-y                                   += devices.o
10 obj-y                                   += board-info.o
11 obj-y                                   += io.o
12 obj-y                                   += irq.o
13 obj-y                                   += clock.o
14 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_clocks.o
15 obj-$(CONFIG_TEGRA_ATOMICS)             += atomics.o
16 obj-y                                   += timer.o
17 obj-y                                   += timerinfo.o
18 ifneq ($(CONFIG_ARCH_TEGRA_2x_SOC),y)
19 ifneq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
20 obj-y                                   += mipi-cal.o
21 endif
22 endif
23 ifeq ($(CONFIG_CPU_FREQ),y)
24 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_cpu_volt_cap.o
25 endif
26 ifeq ($(CONFIG_ARCH_TEGRA_2x_SOC),y)
27 obj-y                                   += common-t2.o
28 obj-y                                   += pm-t2.o
29 obj-y                                   += sleep-t2.o
30 obj-y                                   += timer-t2.o
31 obj-y                                   += wakeups-t2.o
32 ifeq ($(CONFIG_CPU_IDLE),y)
33 obj-$(CONFIG_PM_SLEEP)                  += cpuidle-t2.o
34 endif
35 else
36 obj-y                                   += common-t3.o
37 obj-y                                   += pm-t3.o
38 obj-y                                   += sleep-t3.o
39 obj-$(CONFIG_DEBUG_FS)                  += clocks_stats.o
40 obj-y                                   += timer-t3.o
41 obj-y                                   += tegra_core_volt_cap.o
42 ifeq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
43 obj-y                                   += wakeups-t3.o
44 else
45 obj-y                                   += wakeups-t11x.o
46 endif
47 ifeq ($(CONFIG_CPU_IDLE),y)
48 ifeq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
49 obj-$(CONFIG_PM_SLEEP)                  += cpuidle-t3.o
50 else
51 obj-$(CONFIG_PM_SLEEP)                  += cpuidle-t11x.o
52 endif
53 endif
54 endif
55
56 obj-y                                   += pinmux.o
57 obj-y                                   += delay.o
58 obj-y                                   += pm.o
59 obj-$(CONFIG_TEGRA_WDT_RECOVERY)        += wdt-recovery.o
60 obj-$(CONFIG_PM_SLEEP)                  += pm-irq.o
61 obj-y                                   += gic.o
62
63 obj-y                                   += sleep.o
64 obj-$(CONFIG_TEGRA_USE_NCT)             += nct.o nct_sysfs.o
65
66 plus_sec := $(call as-instr,.arch_extension sec,+sec)
67 AFLAGS_sleep.o :=-Wa,-march=armv7-a$(plus_sec)
68
69 obj-y                                   += tegra_fuse.o
70 obj-y                                   += kfuse.o
71 obj-y                                   += csi.o
72 obj-y                                   += i2c_error_recovery.o
73 obj-y                                   += mc.o
74 obj-$(CONFIG_TEGRA_STAT_MON)            += tegra2_statmon.o
75 obj-$(CONFIG_USB_SUPPORT)               += xusb.o
76 obj-$(CONFIG_USB_SUPPORT)               += usb_phy.o
77 obj-$(CONFIG_USB_SUPPORT)               += tegra_usb_pmc.o
78 obj-$(CONFIG_USB_SUPPORT)               += tegra_usb_pad_ctrl.o
79 obj-$(CONFIG_USB_SUPPORT)               += tegra3_usb_phy.o
80 obj-$(CONFIG_USB_SUPPORT)               += tegra2_usb_phy.o
81 obj-$(CONFIG_USB_SUPPORT)               += tegra11x_usb_phy.o
82 obj-$(CONFIG_FIQ)                       += fiq.o
83 obj-$(CONFIG_TEGRA_FIQ_DEBUGGER)        += tegra_fiq_debugger.o
84 obj-$(CONFIG_TEGRA_PWM)                 += pwm.o
85 obj-$(CONFIG_TEGRA_ARB_SEMAPHORE)       += arb_sema.o
86
87 obj-y                                   += powergate.o
88 obj-y                                   += powergate-ops-txx.o
89 obj-y                                   += powergate-ops-t1xx.o
90 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += powergate-t20.o
91 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += powergate-t30.o
92 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += powergate-t11x.o
93
94 obj-y                                   += dvfs.o
95 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_dvfs.o
96 ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
97 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_dvfs.o
98 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_dvfs.o
99 obj-$(CONFIG_TEGRA_LATENCY_ALLOWANCE)   += latency_allowance.o
100 obj-$(CONFIG_TEGRA_EDP_LIMITS)          += edp.o
101 obj-$(CONFIG_TEGRA_CORE_EDP_LIMITS)     += edp_core.o
102 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_edp.o
103 endif
104 ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
105 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_speedo.o
106 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_speedo.o
107 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_speedo.o
108 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_actmon.o
109 endif
110 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra3_actmon.o
111 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_emc.o
112 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_emc.o
113 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_emc.o
114 obj-y                                   += tegra_emc.o
115 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += pinmux-tegra20-tables.o
116 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += pinmux-tegra30-tables.o
117 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += board-dt-tegra30.o
118 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += pinmux-t11-tables.o
119 obj-$(CONFIG_HOTPLUG_CPU)               += hotplug.o
120 obj-y                                   += pmc.o
121 obj-y                                   += flowctrl.o
122 obj-$(CONFIG_CPU_IDLE)                  += cpuidle.o
123 obj-$(CONFIG_CPU_IDLE)                  += sleep.o
124 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_clocks.o
125 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra30_clocks.o
126 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_clocks.o
127 obj-$(CONFIG_SMP)                       += platsmp.o
128 obj-y                                   += headsmp.o
129 obj-y                                   += reset.o
130 obj-$(CONFIG_TEGRA_SYSTEM_DMA)          += dma.o apbio.o
131 obj-$(CONFIG_CPU_FREQ)                  += cpu-tegra.o
132 ifeq ($(CONFIG_TEGRA_AUTO_HOTPLUG),y)
133 ifeq ($(CONFIG_TEGRA_CPUQUIET),y)
134 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += cpuquiet.o
135 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += cpuquiet.o
136 else
137 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += cpu-tegra3.o
138 endif
139 endif
140 obj-$(CONFIG_TEGRA_PCI)                 += pcie.o
141 obj-$(CONFIG_USB_SUPPORT)               += usb_phy.o
142 ifeq ($(CONFIG_TEGRA_SOCTHERM),y)
143 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_soctherm.o
144 endif
145 ifeq ($(CONFIG_TEGRA_THERMAL_THROTTLE),y)
146 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_throttle.o
147 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_throttle.o
148 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra3_throttle.o
149 endif
150 obj-$(CONFIG_TEGRA_IOVMM)               += iovmm.o
151 obj-$(CONFIG_TEGRA_IOVMM_GART)          += iovmm-gart.o
152 obj-$(CONFIG_TEGRA_IOVMM_SMMU)          += iovmm-smmu.o
153 obj-$(CONFIG_DEBUG_ICEDCC)              += sysfs-dcc.o
154 obj-$(CONFIG_TEGRA_CLUSTER_CONTROL)     += sysfs-cluster.o
155 ifeq ($(CONFIG_TEGRA_MC_PROFILE),y)
156 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_mc.o
157 endif
158 obj-$(CONFIG_SENSORS_TEGRA_TSENSOR)     += tegra3_tsensor.o
159 obj-$(CONFIG_TEGRA_DYNAMIC_PWRDET)      += powerdetect.o
160 obj-$(CONFIG_ARCH_TEGRA_HAS_CL_DVFS)    += tegra_cl_dvfs.o
161
162 obj-y                                   += board-common.o
163 obj-y                                   += board-panel.o
164 obj-$(CONFIG_TEGRA_WAKEUP_MONITOR)      += tegra_wakeup_monitor.o
165 obj-$(CONFIG_TEGRA_PCI)                 += pcie.o
166
167 # MC error reporting.
168 ifeq ($(CONFIG_ARCH_TEGRA_2x_SOC),)
169 obj-y                                   += mcerr.o
170 ifeq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
171 obj-y                                   += mcerr-t3.o
172 else
173 obj-y                                   += mcerr-t11.o
174 endif
175 endif
176
177 obj-$(CONFIG_MACH_HARMONY)              += board-harmony.o
178 obj-$(CONFIG_MACH_HARMONY)              += board-harmony-kbc.o
179 obj-$(CONFIG_MACH_HARMONY)              += board-harmony-panel.o
180 obj-$(CONFIG_MACH_HARMONY)              += board-harmony-pinmux.o
181 obj-$(CONFIG_MACH_HARMONY)              += board-harmony-pcie.o
182 obj-$(CONFIG_MACH_HARMONY)              += board-harmony-power.o
183
184 obj-$(CONFIG_MACH_PAZ00)                += board-paz00.o
185 obj-$(CONFIG_MACH_PAZ00)                += board-paz00-pinmux.o
186
187 obj-$(CONFIG_MACH_SEABOARD)             += board-seaboard.o
188 obj-$(CONFIG_MACH_SEABOARD)             += board-seaboard-pinmux.o
189
190 obj-$(CONFIG_MACH_TEGRA_DT)             += board-dt-tegra20.o
191 obj-$(CONFIG_MACH_TEGRA_DT)             += board-harmony-pinmux.o
192 obj-$(CONFIG_MACH_TEGRA_DT)             += board-seaboard-pinmux.o
193 obj-$(CONFIG_MACH_TEGRA_DT)             += board-paz00-pinmux.o
194 obj-$(CONFIG_MACH_TEGRA_DT)             += board-trimslice-pinmux.o
195
196 obj-$(CONFIG_MACH_TRIMSLICE)            += board-trimslice.o
197 obj-$(CONFIG_MACH_TRIMSLICE)            += board-trimslice-pinmux.o
198
199 obj-${CONFIG_MACH_P852}                 += p852/
200
201 obj-$(CONFIG_MACH_VENTANA)              += board-ventana.o
202 obj-$(CONFIG_MACH_VENTANA)              += board-ventana-pinmux.o
203 obj-$(CONFIG_MACH_VENTANA)              += board-ventana-sdhci.o
204 obj-$(CONFIG_MACH_VENTANA)              += board-ventana-power.o
205 obj-$(CONFIG_MACH_VENTANA)              += board-ventana-panel.o
206 obj-$(CONFIG_MACH_VENTANA)              += board-ventana-sensors.o
207 obj-$(CONFIG_MACH_VENTANA)              += board-ventana-memory.o
208
209 obj-${CONFIG_MACH_ARUBA}                += board-aruba.o
210 obj-${CONFIG_MACH_ARUBA}                += board-aruba-panel.o
211 obj-${CONFIG_MACH_ARUBA}                += board-aruba-pinmux.o
212 obj-${CONFIG_MACH_ARUBA}                += board-aruba-power.o
213 obj-${CONFIG_MACH_ARUBA}                += board-aruba-sdhci.o
214 obj-${CONFIG_MACH_ARUBA}                += board-aruba-sensors.o
215
216 obj-${CONFIG_MACH_CURACAO}              += board-curacao.o
217 obj-${CONFIG_MACH_CURACAO}              += board-curacao-panel.o
218 obj-${CONFIG_MACH_CURACAO}              += board-curacao-pinmux.o
219 obj-${CONFIG_MACH_CURACAO}              += board-curacao-power.o
220 obj-${CONFIG_MACH_CURACAO}              += board-curacao-sdhci.o
221 obj-${CONFIG_MACH_CURACAO}              += board-curacao-sensors.o
222 obj-${CONFIG_MACH_CURACAO}              += board-curacao-memory.o
223
224 obj-${CONFIG_MACH_WHISTLER}             += board-whistler.o
225 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-pinmux.o
226 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-sdhci.o
227 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-power.o
228 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-panel.o
229 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-sensors.o
230 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-kbc.o
231 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-baseband.o
232 obj-${CONFIG_MACH_WHISTLER}             += board-whistler-memory.o
233
234 obj-${CONFIG_MACH_CARDHU}               += board-cardhu.o
235 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-kbc.o
236 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-irda.o
237 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-panel.o
238 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-pinmux.o
239 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-power.o
240 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-pm298-power-rails.o
241 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-pm299-power-rails.o
242 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-sdhci.o
243 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-sensors.o
244 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-memory.o
245 obj-${CONFIG_MACH_CARDHU}               += board-cardhu-powermon.o
246
247 obj-${CONFIG_MACH_KAI}                  += board-touch-kai-synaptics-spi.o
248 obj-y                                   += board-touch-raydium_spi.o
249 obj-y                                   += board-touch-maxim_sti-spi.o
250
251 obj-${CONFIG_MACH_P1852}               += board-p1852.o
252 obj-${CONFIG_MACH_P1852}               += board-p1852-power.o
253 obj-${CONFIG_MACH_P1852}               += board-p1852-panel.o
254 obj-${CONFIG_MACH_P1852}               += board-p1852-pinmux.o
255 obj-${CONFIG_MACH_P1852}               += board-p1852-sdhci.o
256
257 obj-${CONFIG_MACH_E1853}               += board-e1853.o
258 obj-${CONFIG_MACH_E1853}               += board-e1853-panel.o
259 obj-${CONFIG_MACH_E1853}               += board-e1853-pinmux.o
260 obj-${CONFIG_MACH_E1853}               += board-e1853-sdhci.o
261
262 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise.o
263 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-panel.o
264 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-pinmux.o
265 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-sdhci.o
266 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-memory.o
267 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-power.o
268 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-baseband.o
269 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-kbc.o
270 obj-${CONFIG_MACH_TEGRA_ENTERPRISE}     += board-enterprise-sensors.o
271
272 obj-${CONFIG_MACH_KAI}                  += board-kai.o
273 obj-${CONFIG_MACH_KAI}                  += board-kai-kbc.o
274 obj-${CONFIG_MACH_KAI}                  += board-kai-memory.o
275 obj-${CONFIG_MACH_KAI}                  += board-kai-panel.o
276 obj-${CONFIG_MACH_KAI}                  += board-kai-pinmux.o
277 obj-${CONFIG_MACH_KAI}                  += board-kai-power.o
278 obj-${CONFIG_MACH_KAI}                  += board-kai-sdhci.o
279 obj-${CONFIG_MACH_KAI}                  += board-kai-sensors.o
280 obj-y                                   += eeprom-wifi-mac.o
281
282 obj-${CONFIG_MACH_DALMORE}              += board-dalmore.o
283 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-memory.o
284 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-pinmux.o
285 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-power.o
286 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-powermon.o
287 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-sdhci.o
288 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-panel.o
289 obj-${CONFIG_MACH_DALMORE}              += board-roth-panel.o
290 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-kbc.o
291 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-sensors.o
292 obj-${CONFIG_MACH_DALMORE}              += panel-a-1080p-11-6.o
293 obj-${CONFIG_MACH_DALMORE}              += panel-p-wuxga-10-1.o
294 obj-${CONFIG_MACH_DALMORE}              += panel-s-wqxga-10-1.o
295
296 obj-${CONFIG_MACH_MACALLAN}             += board-macallan.o
297 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-memory.o
298 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-pinmux.o
299 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-power.o
300 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-powermon.o
301 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-sdhci.o
302 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-panel.o
303 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-kbc.o
304 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-sensors.o
305 obj-${CONFIG_MACH_MACALLAN}             += panel-p-wuxga-10-1.o
306
307 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab.o
308 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-memory.o
309 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-pinmux.o
310 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-power.o
311 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-powermon.o
312 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-sdhci.o
313 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-panel.o
314 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-kbc.o
315 obj-${CONFIG_MACH_TEGRATAB}            += board-tegratab-sensors.o
316 obj-${CONFIG_MACH_TEGRATAB}            += panel-lgd-wxga-7-0.o
317
318 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto.o
319 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-memory.o
320 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-pinmux.o
321 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-power.o
322 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-sdhci.o
323 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-panel.o
324 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-kbc.o
325 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-sensors.o
326 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-powermon.o
327 obj-${CONFIG_MACH_TEGRA_PLUTO}          += panel-l-720p-5.o
328 obj-${CONFIG_MACH_TEGRA_PLUTO}          += panel-j-720p-4-7.o
329 obj-${CONFIG_MACH_TEGRA_PLUTO}          += panel-s-1080p-5.o
330
331 obj-${CONFIG_TEGRA_BB_XMM_POWER}        += baseband-xmm-power.o
332 obj-${CONFIG_TEGRA_BB_XMM_POWER2}       += baseband-xmm-power2.o
333
334 obj-${CONFIG_TEGRA_ISOMGR}              += isomgr.o
335
336 obj-${CONFIG_TEGRA_NVDUMPER}            += nvdumper.o
337
338 obj-${CONFIG_MACH_ROTH}                 += board-roth.o
339 obj-${CONFIG_MACH_ROTH}                 += board-roth-memory.o
340 obj-${CONFIG_MACH_ROTH}                 += board-roth-pinmux.o
341 obj-${CONFIG_MACH_ROTH}                 += board-roth-power.o
342 obj-${CONFIG_MACH_ROTH}                 += board-roth-powermon.o
343 obj-${CONFIG_MACH_ROTH}                 += board-roth-sdhci.o
344 obj-${CONFIG_MACH_ROTH}                 += board-roth-panel.o
345 obj-${CONFIG_MACH_ROTH}                 += board-roth-kbc.o
346 obj-${CONFIG_MACH_ROTH}                 += board-roth-sensors.o
347 obj-${CONFIG_MACH_ROTH}                 += board-roth-fan.o