ARM: tegra: refactor xusb registration
[linux-3.10.git] / arch / arm / mach-tegra / Makefile
1 GCOV_PROFILE := y
2
3 asflags-y                               += -march=armv7-a
4 subdir-ccflags-y := -Werror
5
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-y                                   += timer.o
15 obj-y                                   += timerinfo.o
16 ifneq ($(CONFIG_ARCH_TEGRA_2x_SOC),y)
17 ifneq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
18 obj-y                                   += mipi-cal.o
19 endif
20 endif
21 ifeq ($(CONFIG_CPU_FREQ),y)
22 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_cpu_volt_cap.o
23 endif
24 ifeq ($(CONFIG_ARCH_TEGRA_2x_SOC),y)
25 obj-y                                   += common-t2.o
26 obj-y                                   += pm-t2.o
27 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += sleep-t20.o
28 obj-y                                   += timer-t2.o
29 obj-y                                   += wakeups-t2.o
30 ifeq ($(CONFIG_CPU_IDLE),y)
31 obj-$(CONFIG_PM_SLEEP)                  += cpuidle-t2.o
32 endif
33 else
34 obj-y                                   += common-t3.o
35 obj-y                                   += pm-t3.o
36 obj-y                                   += sleep-t30.o
37 obj-$(CONFIG_DEBUG_FS)                  += clocks_stats.o
38 obj-y                                   += timer-t3.o
39 obj-y                                   += tegra_core_volt_cap.o
40 ifeq ($(CONFIG_ARCH_TEGRA_3x_SOC),y)
41 obj-y                                   += wakeups-t3.o
42 else
43 ifeq ($(CONFIG_ARCH_TEGRA_14x_SOC),y)
44 obj-y                                   += wakeups-t14x.o
45 else
46 obj-y                                   += wakeups-t11x.o
47 endif
48 endif
49 ifeq ($(CONFIG_CPU_IDLE),y)
50 ifeq ($(CONFIG_PM_SLEEP),y)
51 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += cpuidle-t3.o
52 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += cpuidle-t11x.o
53 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += cpuidle-t14x.o
54 endif
55 endif
56 endif
57
58 obj-y                                   += pinmux.o
59 obj-y                                   += delay.o
60 obj-y                                   += pm.o
61 obj-$(CONFIG_TEGRA_WDT_RECOVERY)        += wdt-recovery.o
62 obj-$(CONFIG_PM_SLEEP)                  += pm-irq.o
63 obj-y                                   += gic.o
64
65 obj-y                                   += sleep.o
66 obj-$(CONFIG_TEGRA_USE_NCT)             += nct.o nct_sysfs.o
67
68 plus_sec := $(call as-instr,.arch_extension sec,+sec)
69 AFLAGS_sleep.o :=-Wa,-march=armv7-a$(plus_sec)
70
71 obj-y                                   += tegra_fuse.o
72 obj-y                                   += kfuse.o
73 obj-y                                   += csi.o
74 obj-$(CONFIG_USB_SUPPORT)               += xusb.o
75 obj-$(CONFIG_USB_SUPPORT)               += tegra_usb_pmc.o
76 obj-$(CONFIG_USB_SUPPORT)               += tegra_usb_pad_ctrl.o
77
78 obj-y                                   += powergate.o
79 obj-y                                   += powergate-ops-txx.o
80 obj-y                                   += powergate-ops-t1xx.o
81 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += powergate-t20.o
82 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += powergate-t30.o
83 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += powergate-t11x.o
84 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += powergate-t14x.o
85
86 obj-y                                   += apbio.o
87 obj-y                                   += mc.o
88 obj-$(CONFIG_FIQ)                       += fiq.o
89 obj-$(CONFIG_TEGRA_FIQ_DEBUGGER)        += tegra_fiq_debugger.o
90 obj-$(CONFIG_TEGRA_ARB_SEMAPHORE)       += arb_sema.o
91 obj-$(CONFIG_PM_GENERIC_DOMAINS)        += pm_domains.o
92 obj-y                                   += dvfs.o
93 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_dvfs.o
94 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_dvfs.o
95 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra_emc_therm.o
96
97 obj-y                                   += latency_allowance.o
98 obj-y                                   += tegra3_la.o
99 obj-y                                   += tegra11x_la.o
100 obj-y                                   += tegra14x_la.o
101 ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
102 obj-$(CONFIG_TEGRA_EDP_LIMITS)          += edp.o
103 obj-$(CONFIG_TEGRA_CORE_EDP_LIMITS)     += edp_core.o
104 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_edp.o
105 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_edp.o
106 endif
107 ifeq ($(CONFIG_TEGRA_SILICON_PLATFORM),y)
108 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_speedo.o
109 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_speedo.o
110 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_actmon.o
111 endif
112 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra3_actmon.o
113 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra3_actmon.o
114 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_emc.o
115 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_emc.o
116 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_emc.o
117 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_emc.o
118 obj-y                                   += tegra_emc.o
119 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += pinmux-tegra20-tables.o
120 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += pinmux-tegra30-tables.o
121 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += pinmux-t11-tables.o
122 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += pinmux-t14-tables.o
123 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra20_speedo.o
124 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra30_speedo.o
125 obj-$(CONFIG_HOTPLUG_CPU)               += hotplug.o
126 obj-y                                   += pmc.o
127 obj-y                                   += flowctrl.o
128 obj-$(CONFIG_CPU_IDLE)                  += cpuidle.o
129 obj-$(CONFIG_CPU_IDLE)                  += sleep.o
130 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_clocks.o
131 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra14_clocks.o
132 obj-$(CONFIG_SMP)                       += platsmp.o
133 obj-y                                   += reset.o
134 obj-y                                   += headsmp.o
135 obj-$(CONFIG_CPU_FREQ)                  += cpu-tegra.o
136 ifeq ($(CONFIG_TEGRA_AUTO_HOTPLUG),y)
137 ifeq ($(CONFIG_TEGRA_CPUQUIET),y)
138 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += cpuquiet.o
139 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += cpuquiet.o
140 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += cpuquiet.o
141 else
142 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += cpu-tegra3.o
143 endif
144 endif
145 obj-$(CONFIG_TEGRA_PCI)                 += pcie.o
146 ifeq ($(CONFIG_TEGRA_SOCTHERM),y)
147 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra11_soctherm.o
148 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra11_soctherm.o
149 endif
150 ifeq ($(CONFIG_TEGRA_THERMAL_THROTTLE),y)
151 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_throttle.o
152 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += tegra3_throttle.o
153 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += tegra3_throttle.o
154 endif
155 obj-$(CONFIG_DEBUG_ICEDCC)              += sysfs-dcc.o
156 obj-$(CONFIG_TEGRA_CLUSTER_CONTROL)     += sysfs-cluster.o
157 obj-$(CONFIG_SENSORS_TEGRA_TSENSOR)     += tegra3_tsensor.o
158 obj-$(CONFIG_TEGRA_DYNAMIC_PWRDET)      += powerdetect.o
159 obj-$(CONFIG_ARCH_TEGRA_HAS_CL_DVFS)    += tegra_cl_dvfs.o
160
161 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += board-dt-tegra20.o
162 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += board-dt-tegra30.o
163 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += board-dt-tegra148.o
164
165 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += board-harmony-pcie.o
166
167 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += board-paz00.o
168
169 obj-y                                   += board-common.o
170 obj-$(CONFIG_TEGRA_WAKEUP_MONITOR)      += tegra_wakeup_monitor.o
171
172 # MC error reporting.
173 ifeq ($(CONFIG_ARCH_TEGRA_2x_SOC),)
174 obj-y                                   += mcerr.o
175 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += mcerr-t3.o
176 obj-$(CONFIG_ARCH_TEGRA_11x_SOC)        += mcerr-t11.o
177 obj-$(CONFIG_ARCH_TEGRA_14x_SOC)        += mcerr-t14.o
178 endif
179
180 obj-$(CONFIG_TEGRA_USE_SECURE_KERNEL)   += tegra_tzram.o
181
182 obj-${CONFIG_MACH_CURACAO}              += board-curacao.o
183 obj-${CONFIG_MACH_CURACAO}              += board-curacao-panel.o
184 obj-${CONFIG_MACH_CURACAO}              += board-curacao-pinmux.o
185 obj-${CONFIG_MACH_CURACAO}              += board-curacao-power.o
186 obj-${CONFIG_MACH_CURACAO}              += board-curacao-sdhci.o
187 obj-${CONFIG_MACH_CURACAO}              += board-curacao-sensors.o
188 obj-${CONFIG_MACH_CURACAO}              += board-curacao-memory.o
189
190 obj-y                                   += board-touch-raydium_spi.o
191 obj-y                                   += board-touch-synaptics-spi.o
192
193 obj-y                                   += board-panel.o
194
195 obj-${CONFIG_MACH_DALMORE}              += board-dalmore.o
196 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-memory.o
197 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-pinmux.o
198 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-power.o
199 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-powermon.o
200 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-sdhci.o
201 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-panel.o
202 obj-${CONFIG_MACH_DALMORE}              += board-roth-panel.o
203 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-kbc.o
204 obj-${CONFIG_MACH_DALMORE}              += board-dalmore-sensors.o
205 obj-${CONFIG_MACH_DALMORE}              += panel-a-1080p-11-6.o
206 obj-${CONFIG_MACH_DALMORE}              += panel-p-wuxga-10-1.o
207 obj-${CONFIG_MACH_DALMORE}              += panel-s-wqxga-10-1.o
208
209 obj-${CONFIG_MACH_PISMO}                += board-pismo.o
210 obj-${CONFIG_MACH_PISMO}                += board-pismo-memory.o
211 obj-${CONFIG_MACH_PISMO}                += board-pismo-pinmux.o
212 obj-${CONFIG_MACH_PISMO}                += board-pismo-power.o
213 obj-${CONFIG_MACH_PISMO}                += board-pismo-powermon.o
214 obj-${CONFIG_MACH_PISMO}                += board-pismo-sdhci.o
215 obj-${CONFIG_MACH_PISMO}                += board-pismo-panel.o
216 obj-${CONFIG_MACH_PISMO}                += board-pismo-sensors.o
217
218 obj-${CONFIG_MACH_MACALLAN}             += board-macallan.o
219 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-memory.o
220 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-pinmux.o
221 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-power.o
222 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-powermon.o
223 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-sdhci.o
224 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-panel.o
225 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-kbc.o
226 obj-${CONFIG_MACH_MACALLAN}             += board-macallan-sensors.o
227 obj-${CONFIG_MACH_MACALLAN}             += panel-p-wuxga-10-1.o
228
229
230 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto.o
231 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-memory.o
232 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-pinmux.o
233 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-power.o
234 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-sdhci.o
235 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-panel.o
236 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-kbc.o
237 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-sensors.o
238 obj-${CONFIG_MACH_TEGRA_PLUTO}          += board-pluto-powermon.o
239 obj-${CONFIG_MACH_TEGRA_PLUTO}          += panel-l-720p-5.o
240 obj-${CONFIG_MACH_TEGRA_PLUTO}          += panel-j-720p-4-7.o
241 obj-${CONFIG_MACH_TEGRA_PLUTO}          += panel-s-1080p-5.o
242
243 obj-${CONFIG_TEGRA_BB_XMM_POWER}        += baseband-xmm-power.o
244 obj-${CONFIG_TEGRA_BB_XMM_POWER2}       += baseband-xmm-power2.o
245
246 obj-${CONFIG_TEGRA_BASEBAND}            += tegra_bb.o
247 obj-$(CONFIG_TEGRA_BBC_PROXY)           += tegra_bbc_proxy.o
248
249 obj-${CONFIG_TEGRA_ISOMGR}              += isomgr.o
250
251 obj-${CONFIG_TEGRA_NVDUMPER}            += nvdumper.o
252
253 obj-${CONFIG_MACH_ROTH}                 += board-roth.o
254 obj-${CONFIG_MACH_ROTH}                 += board-roth-memory.o
255 obj-${CONFIG_MACH_ROTH}                 += board-roth-pinmux.o
256 obj-${CONFIG_MACH_ROTH}                 += board-roth-power.o
257 obj-${CONFIG_MACH_ROTH}                 += board-roth-powermon.o
258 obj-${CONFIG_MACH_ROTH}                 += board-roth-sdhci.o
259 obj-${CONFIG_MACH_ROTH}                 += board-roth-panel.o
260 obj-${CONFIG_MACH_ROTH}                 += board-roth-kbc.o
261 obj-${CONFIG_MACH_ROTH}                 += board-roth-sensors.o
262 obj-${CONFIG_MACH_ROTH}                 += board-roth-fan.o