blob: 911a1bf42e340aae41949aa0bec0abc6cd053ad8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Samantha Tran1eae18f2018-10-15 14:04:01 -07002ccflags-$(CONFIG_DRM_MSM_DP):= -Iinclude/drm -Idrivers/gpu/drm/msm -Idrivers/gpu/drm/msm/dsi-staging -Idrivers/gpu/drm/msm/dp
3ccflags-y += -Idrivers/gpu/drm/msm/display-manager
Hai Li5c829022015-08-13 17:45:52 -04004ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi
Samantha Tran1eae18f2018-10-15 14:04:01 -07005ccflags-$(CONFIG_DRM_MSM_DSI_PLL) += -Idrivers/gpu/drm/msm/dsi
6ccflags-$(CONFIG_DRM_MSM_SDE) += -Idrivers/gpu/drm/msm/sde
7ccflags-y += -Idrivers/media/platform/msm/sde/rotator
8ccflags-y += -Idrivers/gpu/drm/msm/hdmi
Rob Clarkc8afe682013-06-26 12:44:06 -04009
Samantha Tran1eae18f2018-10-15 14:04:01 -070010msm_drm-$(CONFIG_DRM_MSM_DP) += dp/dp_usbpd.o \
11 dp/dp_parser.o \
12 dp/dp_power.o \
13 dp/dp_catalog.o \
14 dp/dp_catalog_v420.o \
15 dp/dp_aux.o \
16 dp/dp_panel.o \
17 dp/dp_link.o \
18 dp/dp_ctrl.o \
19 dp/dp_audio.o \
20 dp/dp_debug.o \
21 dp/dp_display.o \
22 dp/dp_drm.o \
23 dp/dp_hdcp2p2.o \
24 dp/dp_mst_drm.o
25
26msm_drm-$(CONFIG_DRM_MSM_SDE) += sde/sde_crtc.o \
27 sde/sde_encoder.o \
28 sde/sde_encoder_phys_vid.o \
29 sde/sde_encoder_phys_cmd.o \
30 sde/sde_irq.o \
31 sde/sde_core_irq.o \
32 sde/sde_core_perf.o \
33 sde/sde_rm.o \
34 sde/sde_kms_utils.o \
35 sde/sde_kms.o \
36 sde/sde_plane.o \
37 sde/sde_connector.o \
38 sde/sde_color_processing.o \
39 sde/sde_vbif.o \
40 sde_dbg.o \
41 sde_dbg_evtlog.o \
42 sde_io_util.o \
43 sde/sde_hw_reg_dma_v1_color_proc.o \
44 sde/sde_hw_color_proc_v4.o \
45 sde/sde_hw_ad4.o \
46 sde_edid_parser.o \
47 sde_hdcp_1x.o \
48 sde_hdcp_2x.o
49
50msm_drm-$(CONFIG_DRM_MSM_HDMI) += hdmi/hdmi.o \
Rob Clarkc0c0d9e2013-12-11 14:44:02 -050051 hdmi/hdmi_audio.o \
Rob Clarka3376e32013-08-30 13:02:15 -040052 hdmi/hdmi_bridge.o \
Rob Clarkc8afe682013-06-26 12:44:06 -040053 hdmi/hdmi_connector.o \
54 hdmi/hdmi_i2c.o \
Archit Taneja15b4a452016-02-25 11:22:38 +053055 hdmi/hdmi_phy.o \
Rob Clarkc8afe682013-06-26 12:44:06 -040056 hdmi/hdmi_phy_8960.o \
57 hdmi/hdmi_phy_8x60.o \
Rob Clarkdada25b2013-12-01 12:12:54 -050058 hdmi/hdmi_phy_8x74.o \
Samantha Tran1eae18f2018-10-15 14:04:01 -070059
60msm_drm-$(CONFIG_DRM_MSM_EDP) += edp/edp.o \
Hai Liab5b0102015-01-07 18:47:44 -050061 edp/edp_aux.o \
62 edp/edp_bridge.o \
63 edp/edp_connector.o \
64 edp/edp_ctrl.o \
65 edp/edp_phy.o \
Samantha Tran1eae18f2018-10-15 14:04:01 -070066
67msm_drm-$(CONFIG_DRM_MSM_MDP5) += disp/mdp_format.o \
Rob Clark14be3202018-02-12 08:18:27 -050068 disp/mdp_kms.o \
Rob Clark14be3202018-02-12 08:18:27 -050069 disp/mdp5/mdp5_cfg.o \
70 disp/mdp5/mdp5_ctl.o \
71 disp/mdp5/mdp5_crtc.o \
72 disp/mdp5/mdp5_encoder.o \
73 disp/mdp5/mdp5_irq.o \
74 disp/mdp5/mdp5_mdss.o \
75 disp/mdp5/mdp5_kms.o \
76 disp/mdp5/mdp5_pipe.o \
77 disp/mdp5/mdp5_mixer.o \
78 disp/mdp5/mdp5_plane.o \
79 disp/mdp5/mdp5_smp.o \
Samantha Tran1eae18f2018-10-15 14:04:01 -070080
81msm_drm-$(CONFIG_DRM_SDE_RSC) += sde_rsc.o \
82 sde_rsc_hw.o \
83
84# use drm gpu driver only if qcom_kgsl driver not available
85ifneq ($(CONFIG_QCOM_KGSL),y)
86msm_drm-y += adreno/adreno_device.o \
87 adreno/adreno_gpu.o \
88 adreno/a3xx_gpu.o \
89 adreno/a4xx_gpu.o \
90 adreno/a5xx_gpu.o \
91 adreno/a5xx_power.o \
92 adreno/a5xx_preempt.o \
93 adreno/a6xx_gpu.o \
94 adreno/a6xx_gmu.o \
95 adreno/a6xx_hfi.o
96endif
97
98msm_drm-$(CONFIG_DRM_MSM_MDP4) += disp/mdp4/mdp4_crtc.o \
99 disp/mdp4/mdp4_dtv_encoder.o \
100 disp/mdp4/mdp4_lcdc_encoder.o \
101 disp/mdp4/mdp4_lvds_connector.o \
102 disp/mdp4/mdp4_irq.o \
103 disp/mdp4/mdp4_kms.o \
104 disp/mdp4/mdp4_plane.o
105
106msm_drm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o
107ifeq ($(CONFIG_DRM_MSM_SDE),y)
108msm_drm-$(CONFIG_SYNC_FILE) += sde/sde_fence.o
109endif
110msm_drm-$(CONFIG_COMMON_CLK) += disp/mdp4/mdp4_lvds_pll.o
111msm_drm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_pll_8960.o
112msm_drm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_phy_8996.o
113
114msm_drm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o
115
116msm_drm-$(CONFIG_DRM_MSM_DSI) += dsi/dsi.o \
117 disp/mdp4/mdp4_dsi_encoder.o \
118 dsi/dsi_cfg.o \
119 dsi/dsi_host.o \
120 dsi/dsi_manager.o \
121 dsi/phy/dsi_phy.o \
122 disp/mdp5/mdp5_cmd_encoder.o
123
124msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o
125msm_drm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o
126msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o
127msm_drm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o
128msm_drm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/phy/dsi_phy_10nm.o
129
130ifeq ($(CONFIG_DRM_MSM_DSI_PLL),y)
131msm_drm-y += dsi/pll/dsi_pll.o
132msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/pll/dsi_pll_28nm.o
133msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/pll/dsi_pll_28nm_8960.o
134msm_drm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/pll/dsi_pll_14nm.o
135msm_drm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/pll/dsi_pll_10nm.o
136endif
137msm_drm-$(CONFIG_DRM_MSM_DSI_STAGING) += dsi-staging/dsi_phy.o \
138 dsi-staging/dsi_pwr.o \
139 dsi-staging/dsi_phy.o \
140 dsi-staging/dsi_phy_hw_v2_0.o \
141 dsi-staging/dsi_phy_hw_v3_0.o \
142 dsi-staging/dsi_phy_hw_v4_0.o \
143 dsi-staging/dsi_phy_timing_calc.o \
144 dsi-staging/dsi_phy_timing_v2_0.o \
145 dsi-staging/dsi_phy_timing_v3_0.o \
146 dsi-staging/dsi_phy_timing_v4_0.o \
147 dsi-staging/dsi_ctrl_hw_cmn.o \
148 dsi-staging/dsi_ctrl_hw_1_4.o \
149 dsi-staging/dsi_ctrl_hw_2_0.o \
150 dsi-staging/dsi_ctrl_hw_2_2.o \
151 dsi-staging/dsi_ctrl.o \
152 dsi-staging/dsi_catalog.o \
153 dsi-staging/dsi_drm.o \
154 dsi-staging/dsi_display.o \
155 dsi-staging/dsi_panel.o \
156 dsi-staging/dsi_clk_manager.o \
157 dsi-staging/dsi_display_test.o
158
159msm_drm-$(CONFIG_DSI_PARSER) += dsi-staging/dsi_parser.o
160
161msm_drm-$(CONFIG_DRM_MSM_DSI_PLL) += dsi/pll/dsi_pll.o \
162 dsi/pll/dsi_pll_28nm.o
163
164msm_drm-$(CONFIG_DRM_MSM_SDE) += \
165 sde/sde_hw_catalog.o \
166 sde/sde_hw_cdm.o \
167 sde/sde_hw_dspp.o \
168 sde/sde_hw_intf.o \
169 sde/sde_hw_lm.o \
170 sde/sde_hw_ctl.o \
171 sde/sde_hw_util.o \
172 sde/sde_hw_sspp.o \
173 sde/sde_hw_wb.o \
174 sde/sde_hw_rot.o \
175 sde/sde_hw_pingpong.o \
176 sde/sde_hw_top.o \
177 sde/sde_hw_interrupts.o \
178 sde/sde_hw_vbif.o \
179 sde/sde_hw_blk.o \
180 sde/sde_formats.o \
181 sde_power_handle.o \
182 sde/sde_hw_color_processing_v1_7.o \
183 sde/sde_reg_dma.o \
184 sde/sde_hw_reg_dma_v1.o \
185 sde/sde_hw_dsc.o \
186 sde/sde_hw_ds.o
187
188msm_drm-$(CONFIG_DRM_SDE_WB) += sde/sde_wb.o \
189 sde/sde_encoder_phys_wb.o
190
191msm_drm-$(CONFIG_DRM_MSM) += \
Rob Clarkcf3a7e42014-11-08 13:21:06 -0500192 msm_atomic.o \
Rob Clarkedcd60c2016-03-16 12:56:12 -0400193 msm_debugfs.o \
Rob Clarkc8afe682013-06-26 12:44:06 -0400194 msm_drv.o \
195 msm_fb.o \
Rob Clarkfde5de62016-03-15 15:35:08 -0400196 msm_fence.o \
Rob Clark7198e6b2013-07-19 12:59:32 -0400197 msm_gem.o \
Rob Clark05b84912013-09-28 11:28:35 -0400198 msm_gem_prime.o \
Rob Clark68209392016-05-17 16:19:32 -0400199 msm_gem_shrinker.o \
Rob Clark7198e6b2013-07-19 12:59:32 -0400200 msm_gem_submit.o \
Rob Clark667ce332016-09-28 19:58:32 -0400201 msm_gem_vma.o \
Rob Clark7198e6b2013-07-19 12:59:32 -0400202 msm_gpu.o \
Rob Clark871d8122013-11-16 12:56:06 -0500203 msm_iommu.o \
Rob Clark70c70f02014-05-30 14:49:43 -0400204 msm_perf.o \
Rob Clarka7d3c952014-05-30 14:47:38 -0400205 msm_rd.o \
Jordan Crousef7de1542017-10-20 11:06:55 -0600206 msm_ringbuffer.o \
207 msm_submitqueue.o
Rob Clarkc8afe682013-06-26 12:44:06 -0400208
Samantha Tran1eae18f2018-10-15 14:04:01 -0700209msm_drm-$(CONFIG_DEBUG_FS) += adreno/a5xx_debugfs.o
Rob Clark331dc0b2017-12-13 15:12:56 -0500210
Hai Li825637b2015-05-15 13:04:04 -0400211
Samantha Tran1eae18f2018-10-15 14:04:01 -0700212obj-$(CONFIG_DRM_MSM) += msm_drm.o