arm: tegra: Make tegra include directory
[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 subdir-ccflags-y += -I$(srctree)/drivers/platform/tegra/include
6
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                                   += clock.o
13 obj-$(CONFIG_HAVE_ARM_TWD)              += cpu_timer_twd.o
14
15 obj-$(CONFIG_PM_SLEEP)                  += tegra-wakeups.o
16
17 obj-$(CONFIG_TEGRA_CPU_VOLT_CAP)        += tegra_volt_cap.o
18 ifeq ($(CONFIG_ARCH_TEGRA_2x_SOC),y)
19 obj-y                                   += common-t2.o
20 obj-y                                   += pm-t2.o
21 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += sleep-t20.o
22 obj-$(CONFIG_PM_SLEEP)                  += wakeups-t2.o
23 ifeq ($(CONFIG_CPU_IDLE),y)
24 obj-$(CONFIG_PM_SLEEP)                  += cpuidle-t2.o
25 endif
26 else
27 obj-y                                   += pm-t3.o
28 obj-y                                   += sleep-t30.o
29 obj-$(CONFIG_DEBUG_FS)                  += clocks_stats.o
30 obj-y                                   += tegra_core_volt_cap.o
31 obj-$(CONFIG_TEGRA_USE_SIMON)           += tegra_simon.o
32 ifeq ($(CONFIG_ARCH_TEGRA_12x_SOC),y)
33 obj-$(CONFIG_PM_SLEEP)                  += wakeups-t12x.o
34 endif
35
36 ifeq ($(CONFIG_CPU_IDLE),y)
37 ifeq ($(CONFIG_PM_SLEEP),y)
38 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += cpuidle-t11x.o
39 endif
40 endif
41 endif
42
43 obj-y                                   += delay.o
44 obj-y                                   += pm.o
45 obj-$(CONFIG_TEGRA_WDT_RECOVERY)        += wdt-recovery.o
46
47 obj-y                                   += sleep.o
48 obj-$(CONFIG_TEGRA_USE_NCT)             += nct.o nct_sysfs.o
49
50 plus_sec := $(call as-instr,.arch_extension sec,+sec)
51 AFLAGS_sleep.o :=-Wa,-march=armv7-a$(plus_sec)
52
53 obj-y                                   += kfuse.o
54 obj-$(CONFIG_TEGRA_PTM)                 += tegra_ptm.o
55
56 obj-y                                   += powergate.o
57 obj-y                                   += powergate-ops-txx.o
58 obj-y                                   += powergate-ops-t1xx.o
59 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += powergate-t20.o
60 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += powergate-t30.o
61 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += powergate-t12x.o
62
63 obj-y                                   += apbio.o
64 obj-$(CONFIG_TEGRA_ARB_SEMAPHORE)       += arb_sema.o
65 obj-y                                   += dvfs.o
66 ifeq ($(CONFIG_ARCH_TEGRA_13x_SOC),y)
67 obj-y                                   += tegra13_dvfs.o
68 else
69 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12_dvfs.o
70 endif
71 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra_emc_therm.o
72
73 obj-y                                   += latency_allowance.o
74 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12x_la.o
75 obj-$(CONFIG_TEGRA_EDP_LIMITS)          += edp.o
76 obj-$(CONFIG_TEGRA_CORE_EDP_LIMITS)     += edp_core.o
77 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12_edp.o
78 ifeq ($(CONFIG_ARCH_TEGRA_13x_SOC),y)
79 obj-y                                   += tegra13_speedo.o
80 else
81 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12_speedo.o
82 endif
83 obj-$(CONFIG_TEGRA_ACTMON)              += tegra3_actmon.o
84 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_emc.o
85 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra3_emc.o
86 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12_emc.o
87 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra_emc_dt_parse.o
88 obj-y                                   += tegra_emc.o
89 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra20_speedo.o
90 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += tegra30_speedo.o
91 obj-$(CONFIG_HOTPLUG_CPU)               += hotplug.o
92 obj-y                                   += flowctrl.o
93 obj-$(CONFIG_CPU_IDLE)                  += cpuidle.o
94 obj-$(CONFIG_CPU_IDLE)                  += sleep.o
95 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra12_clocks.o
96 obj-$(CONFIG_SMP)                       += platsmp.o
97 obj-y                                   += reset.o
98 obj-y                                   += headsmp.o
99 obj-$(CONFIG_CPU_FREQ)                  += cpu-tegra.o
100 ifeq ($(CONFIG_TEGRA_AUTO_HOTPLUG),y)
101 ifeq ($(CONFIG_TEGRA_CPUQUIET),y)
102 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += cpuquiet.o
103 else
104 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += cpu-tegra3.o
105 endif
106 endif
107 obj-$(CONFIG_DEBUG_ICEDCC)              += sysfs-dcc.o
108 obj-$(CONFIG_TEGRA_CLUSTER_CONTROL)     += sysfs-cluster.o
109 obj-$(CONFIG_TEGRA_DYNAMIC_PWRDET)      += powerdetect.o
110 obj-$(CONFIG_ARCH_TEGRA_HAS_CL_DVFS)    += tegra_cl_dvfs.o
111
112 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += board-dt-tegra20.o
113 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)         += board-dt-tegra30.o
114
115 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += board-harmony-pcie.o
116
117 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += board-paz00.o
118
119 obj-y                                   += board-common.o
120
121 obj-y                                   += board-touch-raydium_spi.o
122 obj-y                                   += board-touch-synaptics-spi.o
123 obj-y                                   += board-touch-maxim_sti-spi.o
124
125 obj-y                                   += board-panel.o
126 obj-y                                   += panel-p-wuxga-10-1.o
127 obj-y                                   += panel-lgd-wxga-7-0.o
128 obj-y                                   += panel-s-wqxga-10-1.o
129 obj-y                                   += panel-a-1200-800-8-0.o
130 obj-y                                   += panel-a-1200-1920-8-0.o
131 obj-y                                   += panel-a-edp-1080p-14-0.o
132 obj-y                                   += panel-i-edp-1080p-11-6.o
133 obj-y                                   += panel-c-lvds-1366-14.o
134 obj-y                                   += panel-a-1080p-14-0.o
135
136 obj-${CONFIG_MACH_ARDBEG}               += board-ardbeg.o
137 obj-${CONFIG_MACH_ARDBEG}               += board-ardbeg-sdhci.o
138 obj-${CONFIG_MACH_ARDBEG}               += board-ardbeg-sensors.o
139 obj-${CONFIG_MACH_ARDBEG}               += board-ardbeg-panel.o
140 obj-${CONFIG_MACH_ARDBEG}               += board-ardbeg-memory.o
141 obj-${CONFIG_MACH_ARDBEG}               += board-ardbeg-power.o
142 obj-${CONFIG_MACH_ARDBEG}               += board-tn8-power.o
143 obj-${CONFIG_MACH_ARDBEG}               += board-norrin-power.o
144 obj-${CONFIG_MACH_ARDBEG}               += board-norrin-memory.o
145 obj-${CONFIG_MACH_ARDBEG}               += panel-a-1080p-11-6.o
146 obj-${CONFIG_MACH_ARDBEG}               += panel-s-edp-uhdtv-15-6.o
147 obj-${CONFIG_MACH_ARDBEG}               += panel-s-edp-wqxgap-15-6.o
148 ifeq ($(CONFIG_MACH_ARDBEG),y)
149 obj-${CONFIG_SYSEDP_FRAMEWORK}          += board-tn8-sysedp.o
150 obj-${CONFIG_SYSEDP_FRAMEWORK}          += board-ardbeg-sysedp.o
151 endif
152
153 obj-${CONFIG_MACH_LOKI}                 += board-loki.o
154 obj-${CONFIG_MACH_LOKI}                 += board-loki-kbc.o
155 obj-${CONFIG_MACH_LOKI}                 += board-loki-sensors.o
156 obj-${CONFIG_MACH_LOKI}                 += board-loki-panel.o
157 obj-${CONFIG_MACH_LOKI}                 += board-loki-memory.o
158 obj-${CONFIG_MACH_LOKI}                 += board-loki-power.o
159 obj-${CONFIG_MACH_LOKI}                 += board-tn8-power.o
160 obj-${CONFIG_MACH_LOKI}                 += board-loki-sdhci.o
161 obj-${CONFIG_MACH_LOKI}                 += panel-a-1080p-11-6.o
162 obj-${CONFIG_MACH_LOKI}                 += panel-l-720p-5-loki.o
163 obj-${CONFIG_MACH_LOKI}                 += panel-j-1440-810-5-8.o
164 obj-${CONFIG_MACH_LOKI}                 += panel-j-720p-5.o
165
166 obj-${CONFIG_MACH_LAGUNA}               += board-ardbeg.o
167 obj-${CONFIG_MACH_LAGUNA}               += board-ardbeg-sdhci.o
168 obj-${CONFIG_MACH_LAGUNA}               += board-ardbeg-sensors.o
169 obj-${CONFIG_MACH_LAGUNA}               += board-ardbeg-panel.o
170 obj-${CONFIG_MACH_LAGUNA}               += board-laguna-power.o
171 obj-${CONFIG_MACH_LAGUNA}               += panel-a-1080p-11-6.o
172
173 obj-${CONFIG_ARCH_TEGRA_VCM30T124}      += vcm30_t124.o
174 obj-${CONFIG_ARCH_TEGRA_VCM30T124}      += therm-monitor.o
175
176 obj-${CONFIG_MACH_P1859}                += board-p1859.o
177 ifdef CONFIG_TEGRA_WIFI_ENABLE
178 obj-${CONFIG_MACH_P1859}                += board-p1859-wifi.o
179 endif
180 obj-${CONFIG_MACH_P1859}                += board-p1859-power.o
181 obj-${CONFIG_MACH_P1859}                += board-p1859-audio.o
182
183 obj-${CONFIG_MACH_P2360}                += board-p2360.o
184 obj-${CONFIG_MACH_P2360}                += board-p2360-power.o
185
186 obj-${CONFIG_TEGRA_BB_XMM_POWER}        += baseband-xmm-power.o
187 obj-${CONFIG_TEGRA_BB_XMM_POWER2}       += baseband-xmm-power2.o
188
189 obj-${CONFIG_TEGRA_BASEBAND}            += tegra_bb.o
190 obj-$(CONFIG_TEGRA_BBC_PROXY)           += tegra_bbc_proxy.o
191 obj-$(CONFIG_TEGRA_BBC_THERMAL)         += tegra_bbc_thermal.o
192
193 obj-${CONFIG_TEGRA_ISOMGR}              += isomgr.o
194