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