platform: tegra: add cy8c_panel driver
[linux-3.10.git] / drivers / platform / tegra / Makefile
1 #
2 # Makefile for linux/drivers/platform/tegra
3 # Tegra Platform-Specific Drivers
4 #
5
6 GCOV_PROFILE := y
7
8 subdir-ccflags-y += -Werror
9 subdir-ccflags-y += -I$(srctree)/arch/arm/mach-tegra
10
11 obj-$(CONFIG_USB_SUPPORT)               += tegra_usb_pmc.o
12 obj-$(CONFIG_TEGRA_USB_SHARED_PAD)      += tegra_usb_pad_ctrl.o
13 obj-$(CONFIG_TEGRA_FIQ_DEBUGGER)        += tegra_fiq_debugger.o
14 obj-$(CONFIG_OF_TEGRA_IOMMU_SMMU)       += iommu.o
15 obj-$(CONFIG_TEGRA_BOOTLOADER_DEBUG)    += tegra_bootloader_debug.o
16
17 obj-$(CONFIG_TEGRA_CAMERA_MIPI_CAL)     += mipi-cal.o
18 obj-$(CONFIG_TEGRA_NVADSP)              += nvadsp/
19 obj-$(CONFIG_TEGRA_MC) += mc/
20
21 ifeq ($(CONFIG_TEGRA_PTM),y)
22 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)         += tegra_ptm_t124.o
23 obj-$(CONFIG_ARCH_TEGRA_21x_SOC)         += tegra_ptm_t210.o
24 endif
25
26 obj-y += nvdumper/
27 obj-$(CONFIG_PM_SLEEP) += pm-irq.o
28 obj-$(CONFIG_TEGRA_PMC) += pmc.o
29 obj-$(CONFIG_TEGRA210_BOOTROM_PMC) += tegra-bootrom-pmc-config.o
30 obj-$(CONFIG_TEGRA_DYNAMIC_PWRDET)      += tegra-pmc-powerdetect.o
31 obj-$(CONFIG_ARCH_TEGRA_21x_SOC)        += tegra21-pmc-iopower.o
32 obj-y += pm.o
33
34 obj-$(CONFIG_TEGRA_MC_DOMAINS) += pm_domains.o
35
36 obj-$(CONFIG_TEGRA_WAKEUP_MONITOR)      += tegra_wakeup_monitor.o
37
38 obj-y += powergate/
39
40 # tempporarily support soctherm platform driver for T12x with include files
41 # from arch/arm/tegra area.
42 ifeq ($(CONFIG_TEGRA_SOCTHERM),y)
43 ccflags-y += -I$(srctree)/arch/arm/mach-tegra
44 obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += tegra_soctherm.o
45 endif
46
47 ifeq ($(CONFIG_TEGRA_THERMAL_THROTTLE),y)
48 ccflags-y += -I$(srctree)/arch/arm/mach-tegra
49 obj-$(CONFIG_ARCH_TEGRA_12x_SOC)        += tegra_throttle.o
50 obj-$(CONFIG_ARCH_TEGRA_21x_SOC)        += tegra_throttle.o
51 endif
52
53 ifeq ($(CONFIG_TEGRA_CLK_FRAMEWORK),y)
54 obj-y += dvfs.o
55 obj-$(CONFIG_TEGRA_CLK_FRAMEWORK) += clock.o tegra-non-dt-clock-reset.o
56 obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += tegra12_clocks.o
57 obj-$(CONFIG_DEBUG_FS) += clocks_stats.o
58 ifeq ($(CONFIG_ARCH_TEGRA_13x_SOC),y)
59 obj-y += tegra13_dvfs.o
60 else
61 obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += tegra12_dvfs.o
62 endif
63 obj-$(CONFIG_ARCH_TEGRA_HAS_CL_DVFS) += tegra_cl_dvfs.o
64 endif
65
66 # FIXME: Bug 1211919:
67 # Remove CFLAGS_common.o flag for common.o when common.c
68 # becomes stabilized for t210.
69
70 ifeq ($(CONFIG_ARCH_TEGRA_21x_SOC),y)
71 CFLAGS_common.o = -Werror -Wno-unused-function
72 endif
73
74 obj-$(CONFIG_TEGRA_COMMON) += common.o
75 obj-$(CONFIG_TEGRA_EDP_LIMITS)          += cpu-edp.o # must precede cpu-tegra.o
76 obj-$(CONFIG_CPU_FREQ)                  += cpu-tegra.o
77 ifeq ($(CONFIG_CPU_FREQ),y)
78 ifeq ($(CONFIG_TEGRA_CLK_FRAMEWORK),y)
79 obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += cpu-tegra12.o
80 obj-$(CONFIG_ARCH_TEGRA_21x_SOC) += cpu-tegra21.o
81 endif
82 endif
83 obj-y += flowctrl.o
84 obj-$(CONFIG_TEGRA3_PM) += pm-t3.o
85 obj-$(CONFIG_TEGRA_CLUSTER_CONTROL) += sysfs-cluster.o
86 obj-$(CONFIG_TEGRA_HMP_CLUSTER_CONTROL) += sysfs-cluster.o
87 ifeq ($(CONFIG_ARM),y)
88 obj-y += reset.o
89 endif
90
91 obj-y += io.o
92 obj-$(CONFIG_TEGRA_CORE_VOLT_CAP) += tegra_core_volt_cap.o
93 obj-y += ahb.o
94 obj-$(CONFIG_TEGRA_ACTMON) += tegra3_actmon.o
95 obj-$(CONFIG_TEGRA_CPU_VOLT_CAP)        += tegra_volt_cap.o
96
97 ifeq ($(CONFIG_PM_SLEEP),y)
98 obj-y += tegra-wakeups.o
99 obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += wakeups-t12x.o
100 endif
101
102 ifneq ($(CONFIG_ARM64),)
103
104 ccflags-y += -I$(srctree)/arch/arm/mach-tegra/include \
105              -I$(srctree)/arch/arm/mach-tegra
106 asflags-y += -I$(srctree)/arch/arm/mach-tegra/include \
107              -I$(srctree)/arch/arm/mach-tegra
108
109
110
111 obj-$(CONFIG_TEGRA_DEVICES) += devices.o
112 obj-$(CONFIG_TEGRA_CLK_FRAMEWORK) += tegra_clocks_pll.o
113 ifeq ($(CONFIG_TEGRA_CLK_FRAMEWORK),y)
114
115 # FIXME: Bug 1211919:
116 # Remove CFLAGS_tegra21_clocks.o flag when tegra21_clocks.c becomes
117 # stabilized.
118 CFLAGS_tegra21_clocks.o = -Werror -Wno-unused-function -Wno-unused-variable
119
120 obj-$(CONFIG_ARCH_TEGRA_21x_SOC) += tegra21_clocks.o
121 endif
122 obj-$(CONFIG_COMMON_CLK) += common_clock.o
123
124
125 obj-$(CONFIG_TEGRA3_PM) += pm-t3.o
126 obj-$(CONFIG_ARCH_TEGRA_21x_SOC) += wakeups-t21x.o
127
128
129 obj-$(CONFIG_TEGRA_KFUSE) += kfuse.o
130 obj-y += apbio.o
131
132 ifeq ($(CONFIG_TEGRA_CLK_FRAMEWORK),y)
133
134 # FIXME: Bug 1211919:
135 # Remove CFLAGS_tegra21_dvfs.o flag when tegra21_dvfs.c becomes
136 # stabilized.
137 CFLAGS_tegra21_dvfs.o = -Werror -Wno-unused-function -Wno-unused-variable
138
139 obj-$(CONFIG_ARCH_TEGRA_21x_SOC) += tegra21_dvfs.o
140 endif
141
142 obj-$(CONFIG_ARCH_TEGRA_13x_SOC)        += tegra13_speedo.o
143 obj-$(CONFIG_ARCH_TEGRA_21x_SOC)        += tegra21_speedo.o
144
145
146 obj-$(CONFIG_TEGRA_MC_DOMAINS) += pm_domains.o
147 obj-y += bond_out.o
148
149 ifeq ($(CONFIG_TEGRA_SOCTHERM),y)
150 obj-$(CONFIG_ARCH_TEGRA_13x_SOC) += tegra_soctherm.o
151 obj-$(CONFIG_ARCH_TEGRA_21x_SOC) += tegra_soctherm.o
152 endif
153 obj-$(CONFIG_TEGRA_USE_SIMON)    += tegra_simon.o
154 obj-$(CONFIG_ARCH_TEGRA_12x_SOC) += tegra12_edp.o
155 obj-$(CONFIG_ARCH_TEGRA_13x_SOC) += tegra13_edp.o
156
157 obj-$(CONFIG_TEGRA_BOARD_COMMON) += board-common.o
158
159 obj-$(CONFIG_TEGRA_BOARD_COMMON) += board-touch-raydium_spi.o
160
161 obj-$(CONFIG_TEGRA_BOARD_COMMON) += board-panel.o
162
163 obj-$(CONFIG_TEGRA_HMP_CLUSTER_CONTROL)      += cluster-control.o
164
165 obj-$(CONFIG_TEGRA_USE_NCT)             += nct.o nct_sysfs.o
166
167 endif
168
169 obj-$(CONFIG_TEGRA_IVC)                 += tegra-ivc.o
170
171 obj-$(CONFIG_TEGRA_GPU_EDP)             += gpu-edp.o
172 obj-y                                   += asim.o
173 obj-y                                   += mselect.o
174
175 obj-$(CONFIG_TEGRA_WDT_RECOVERY)        += wdt-recovery.o
176
177 obj-y                                   += tegra_prod.o
178
179 obj-y                                   += reboot.o
180
181 obj-$(CONFIG_TEGRA_PANEL_CY8C) += panel-cy8c.o