blob: b62599620f55bc9ae9ae60ec249612b0ce8cc855 [file] [log] [blame]
Padmanabhan Komanduru63758612017-05-23 01:47:18 -07001ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/msm -Idrivers/gpu/drm/msm/dsi-staging -Idrivers/gpu/drm/msm/dp
Hai Li5c829022015-08-13 17:45:52 -04002ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi
Ajay Singh Parmard7019152016-06-10 16:46:47 -07003ccflags-$(CONFIG_DRM_MSM_DSI_PLL) += -Idrivers/gpu/drm/msm/dsi
Clarence Ipdd8021c2016-07-20 16:39:47 -04004ccflags-y += -Idrivers/gpu/drm/msm/sde
Alan Kwong4dd64c82017-02-04 18:41:51 -08005ccflags-y += -Idrivers/media/platform/msm/sde/rotator
Tatenda Chipeperekwab8cbd132017-07-07 17:43:29 -07006ccflags-y += -Idrivers/gpu/drm/msm/hdmi
Rob Clarkc8afe682013-06-26 12:44:06 -04007
Clarence Ipc3797e62016-09-22 14:51:39 -04008msm_drm-y := \
Padmanabhan Komanduru63758612017-05-23 01:47:18 -07009 dp/dp_usbpd.o \
10 dp/dp_parser.o \
11 dp/dp_power.o \
12 dp/dp_catalog.o \
13 dp/dp_aux.o \
14 dp/dp_panel.o \
15 dp/dp_link.o \
16 dp/dp_ctrl.o \
17 dp/dp_display.o \
18 dp/dp_drm.o \
Tatenda Chipeperekwa39547362017-07-07 17:44:09 -070019 dp/dp_hdcp2p2.o \
Narendra Muppalla1b0b3352015-09-29 10:16:51 -070020 sde/sde_crtc.o \
21 sde/sde_encoder.o \
Lloyd Atkinson09fed912016-06-24 18:14:13 -040022 sde/sde_encoder_phys_vid.o \
23 sde/sde_encoder_phys_cmd.o \
Narendra Muppalla1b0b3352015-09-29 10:16:51 -070024 sde/sde_irq.o \
Alan Kwongf5dd86c2016-08-09 18:08:17 -040025 sde/sde_core_irq.o \
Alan Kwong67a3f792016-11-01 23:16:53 -040026 sde/sde_core_perf.o \
Lloyd Atkinson11f34442016-08-11 11:19:52 -040027 sde/sde_rm.o \
Abhijit Kulkarni40e38162016-06-26 22:12:09 -040028 sde/sde_kms_utils.o \
Narendra Muppalla1b0b3352015-09-29 10:16:51 -070029 sde/sde_kms.o \
30 sde/sde_plane.o \
Clarence Ipdd8021c2016-07-20 16:39:47 -040031 sde/sde_connector.o \
Gopikrishnaiah Anandane0e5e0c2016-05-25 11:05:33 -070032 sde/sde_color_processing.o \
Lloyd Atkinson5d40d312016-09-06 08:34:13 -040033 sde/sde_vbif.o \
Lloyd Atkinson113aefd2016-10-23 13:15:18 -040034 sde_dbg.o \
Dhaval Patel1ac91032016-09-26 19:25:39 -070035 sde_dbg_evtlog.o \
36 sde_io_util.o \
Gopikrishnaiah Anandaned189cd2016-12-27 14:31:02 -080037 sde/sde_hw_reg_dma_v1_color_proc.o \
Gopikrishnaiah Anandane6ef01c2017-01-13 16:26:13 -080038 sde/sde_hw_color_proc_v4.o \
Gopikrishnaiah Anandan9ba43782017-01-31 18:23:08 -080039 sde/sde_hw_ad4.o \
Dhaval Patel1ba4ab92017-06-30 14:51:08 -070040 sde_edid_parser.o \
Tatenda Chipeperekwab8cbd132017-07-07 17:43:29 -070041 sde_hdcp_1x.o
Dhaval Patel1ba4ab92017-06-30 14:51:08 -070042
43msm_drm-$(CONFIG_DRM_MSM_HDMI) += hdmi/hdmi.o \
44 hdmi/hdmi_audio.o \
45 hdmi/hdmi_bridge.o \
46 hdmi/hdmi_connector.o \
47 hdmi/hdmi_i2c.o \
48 hdmi/hdmi_phy.o \
49 hdmi/hdmi_phy_8960.o \
50 hdmi/hdmi_phy_8x60.o \
51 hdmi/hdmi_phy_8x74.o \
52
53msm_drm-$(CONFIG_DRM_MSM_EDP) += edp/edp.o \
54 edp/edp_aux.o \
55 edp/edp_bridge.o \
56 edp/edp_connector.o \
57 edp/edp_ctrl.o \
58 edp/edp_phy.o \
59
60msm_drm-$(CONFIG_DRM_MSM_MDP5) += mdp/mdp_format.o \
61 mdp/mdp_kms.o \
62 mdp/mdp5/mdp5_cfg.o \
63 mdp/mdp5/mdp5_ctl.o \
64 mdp/mdp5/mdp5_crtc.o \
65 mdp/mdp5/mdp5_encoder.o \
66 mdp/mdp5/mdp5_irq.o \
67 mdp/mdp5/mdp5_mdss.o \
68 mdp/mdp5/mdp5_kms.o \
69 mdp/mdp5/mdp5_plane.o \
70 mdp/mdp5/mdp5_smp.o \
Rob Clarkc8afe682013-06-26 12:44:06 -040071
Dhaval Patel49ef6d72017-03-26 09:35:53 -070072msm_drm-$(CONFIG_DRM_SDE_RSC) += sde_rsc.o \
73 sde_rsc_hw.o \
74
Stephane Viau32f13f62015-04-29 15:57:29 -040075# use drm gpu driver only if qcom_kgsl driver not available
76ifneq ($(CONFIG_QCOM_KGSL),y)
Clarence Ipc3797e62016-09-22 14:51:39 -040077msm_drm-y += adreno/adreno_device.o \
Stephane Viau32f13f62015-04-29 15:57:29 -040078 adreno/adreno_gpu.o \
79 adreno/a3xx_gpu.o \
80 adreno/a4xx_gpu.o
81endif
82
Clarence Ipc3797e62016-09-22 14:51:39 -040083msm_drm-$(CONFIG_DRM_MSM_MDP4) += mdp/mdp4/mdp4_crtc.o \
Stephane Viauee935002015-04-29 14:57:31 -040084 mdp/mdp4/mdp4_dtv_encoder.o \
85 mdp/mdp4/mdp4_lcdc_encoder.o \
86 mdp/mdp4/mdp4_lvds_connector.o \
87 mdp/mdp4/mdp4_irq.o \
88 mdp/mdp4/mdp4_kms.o \
Dhaval Patel04c7e8e2016-09-26 20:14:31 -070089 mdp/mdp4/mdp4_dsi_encoder.o \
Stephane Viauee935002015-04-29 14:57:31 -040090 mdp/mdp4/mdp4_plane.o
91
Clarence Ipc3797e62016-09-22 14:51:39 -040092msm_drm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o
Dhaval Patel39323d42017-03-01 23:48:24 -080093msm_drm-$(CONFIG_SYNC_FILE) += sde/sde_fence.o
Dhaval Patel1ba4ab92017-06-30 14:51:08 -070094msm_drm-$(CONFIG_DRM_MSM_MDP4) += mdp/mdp4/mdp4_lvds_pll.o
95msm_drm-$(CONFIG_DRM_MSM_HDMI) += hdmi/hdmi_pll_8960.o
96msm_drm-$(CONFIG_DRM_MSM_HDMI) += hdmi/hdmi_phy_8996.o
Hai Li825637b2015-05-15 13:04:04 -040097
Clarence Ipc3797e62016-09-22 14:51:39 -040098msm_drm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o
Rob Clarkfeb46f02016-03-20 10:16:29 -040099
Clarence Ipc3797e62016-09-22 14:51:39 -0400100msm_drm-$(CONFIG_DRM_MSM_DSI) += dsi/dsi.o \
Vinay Simha BN776638e2015-10-19 12:27:11 +0530101 mdp/mdp4/mdp4_dsi_encoder.o \
Hai Lid248b612015-08-13 17:49:29 -0400102 dsi/dsi_cfg.o \
Hai Lia6895542015-03-31 14:36:33 -0400103 dsi/dsi_host.o \
104 dsi/dsi_manager.o \
Hai Li5c829022015-08-13 17:45:52 -0400105 dsi/phy/dsi_phy.o \
Ajay Singh Parmard7019152016-06-10 16:46:47 -0700106 dsi/dsi_manager.o \
Hai Lid5af49c2015-03-26 19:25:17 -0400107 mdp/mdp5/mdp5_cmd_encoder.o
Rob Clarkc8afe682013-06-26 12:44:06 -0400108
Clarence Ipc3797e62016-09-22 14:51:39 -0400109msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o
110msm_drm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o
111msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o
Hai Li1bf4d7c2015-08-13 17:45:53 -0400112
113ifeq ($(CONFIG_DRM_MSM_DSI_PLL),y)
Clarence Ipc3797e62016-09-22 14:51:39 -0400114msm_drm-y += dsi/pll/dsi_pll.o
115msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/pll/dsi_pll_28nm.o
116msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/pll/dsi_pll_28nm_8960.o
Hai Li1bf4d7c2015-08-13 17:45:53 -0400117endif
Clarence Ipc3797e62016-09-22 14:51:39 -0400118msm_drm-$(CONFIG_DRM_MSM_DSI_STAGING) += dsi-staging/dsi_phy.o \
Padmanabhan Komandurudbd2fb02016-12-02 15:18:49 +0530119 dsi-staging/dsi_pwr.o \
Ajay Singh Parmard7019152016-06-10 16:46:47 -0700120 dsi-staging/dsi_phy.o \
Padmanabhan Komanduru56611ef2016-12-19 12:21:11 +0530121 dsi-staging/dsi_phy_hw_v2_0.o \
122 dsi-staging/dsi_phy_hw_v3_0.o \
123 dsi-staging/dsi_phy_timing_calc.o \
124 dsi-staging/dsi_phy_timing_v2_0.o \
125 dsi-staging/dsi_phy_timing_v3_0.o \
Padmanabhan Komanduru8ee8ee52016-12-19 12:10:51 +0530126 dsi-staging/dsi_ctrl_hw_cmn.o \
Ajay Singh Parmard7019152016-06-10 16:46:47 -0700127 dsi-staging/dsi_ctrl_hw_1_4.o \
Padmanabhan Komanduru8ee8ee52016-12-19 12:10:51 +0530128 dsi-staging/dsi_ctrl_hw_2_0.o \
Shashank Babu Chinta Venkataafef8202017-04-21 13:49:56 -0700129 dsi-staging/dsi_ctrl_hw_2_2.o \
Ajay Singh Parmard7019152016-06-10 16:46:47 -0700130 dsi-staging/dsi_ctrl.o \
131 dsi-staging/dsi_catalog.o \
132 dsi-staging/dsi_drm.o \
Ajay Singh Parmard7019152016-06-10 16:46:47 -0700133 dsi-staging/dsi_display.o \
134 dsi-staging/dsi_panel.o \
Padmanabhan Komandurudbd2fb02016-12-02 15:18:49 +0530135 dsi-staging/dsi_clk_manager.o \
Ajay Singh Parmard7019152016-06-10 16:46:47 -0700136 dsi-staging/dsi_display_test.o
Hai Li825637b2015-05-15 13:04:04 -0400137
Clarence Ip3649f8b2016-10-31 09:59:44 -0400138msm_drm-$(CONFIG_DRM_MSM_DSI_PLL) += dsi/pll/dsi_pll.o \
139 dsi/pll/dsi_pll_28nm.o
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700140
Clarence Ip3649f8b2016-10-31 09:59:44 -0400141msm_drm-$(CONFIG_DRM_MSM) += \
142 sde/sde_hw_catalog.o \
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700143 sde/sde_hw_cdm.o \
144 sde/sde_hw_dspp.o \
145 sde/sde_hw_intf.o \
146 sde/sde_hw_lm.o \
Clarence Ipc475b082016-06-26 09:27:23 -0400147 sde/sde_hw_ctl.o \
148 sde/sde_hw_util.o \
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700149 sde/sde_hw_sspp.o \
150 sde/sde_hw_wb.o \
Alan Kwong4dd64c82017-02-04 18:41:51 -0800151 sde/sde_hw_rot.o \
Abhijit Kulkarni3e3e0d22016-06-24 17:56:13 -0400152 sde/sde_hw_pingpong.o \
Clarence Ipc475b082016-06-26 09:27:23 -0400153 sde/sde_hw_top.o \
Ben Chan78647cd2016-06-26 22:02:47 -0400154 sde/sde_hw_interrupts.o \
Alan Kwong5d324e42016-07-28 22:56:18 -0400155 sde/sde_hw_vbif.o \
Alan Kwong4dd64c82017-02-04 18:41:51 -0800156 sde/sde_hw_blk.o \
Lloyd Atkinson8772e202016-09-26 17:52:16 -0400157 sde/sde_formats.o \
Benet Clarkeb1b4462016-06-27 14:43:06 -0700158 sde_power_handle.o \
Gopikrishnaiah Anandan7e3e3f52016-12-22 11:13:05 -0800159 sde/sde_hw_color_processing_v1_7.o \
160 sde/sde_reg_dma.o \
161 sde/sde_hw_reg_dma_v1.o \
Jeykumar Sankaran5c2f0702017-03-09 18:03:15 -0800162 sde/sde_hw_dsc.o
Clarence Ip8d5cbea2016-07-19 14:00:52 -0400163
Clarence Ip3649f8b2016-10-31 09:59:44 -0400164msm_drm-$(CONFIG_DRM_SDE_WB) += sde/sde_wb.o \
Alan Kwongbb27c092016-07-20 16:41:25 -0400165 sde/sde_encoder_phys_wb.o
Clarence Ip3649f8b2016-10-31 09:59:44 -0400166
167msm_drm-$(CONFIG_DRM_MSM) += \
168 msm_atomic.o \
169 msm_drv.o \
170 msm_fb.o \
171 msm_gem.o \
172 msm_gem_prime.o \
173 msm_gem_submit.o \
Dhaval Patel04c7e8e2016-09-26 20:14:31 -0700174 msm_gem_shrinker.o \
Rob Clarke22a2fb2017-02-13 10:14:11 -0700175 msm_gem_vma.o \
Clarence Ip3649f8b2016-10-31 09:59:44 -0400176 msm_gpu.o \
177 msm_iommu.o \
178 msm_smmu.o \
179 msm_perf.o \
180 msm_rd.o \
181 msm_ringbuffer.o \
Dhaval Patel04c7e8e2016-09-26 20:14:31 -0700182 msm_prop.o \
183 msm_fence.o \
184 msm_debugfs.o
Clarence Ip3649f8b2016-10-31 09:59:44 -0400185
186obj-$(CONFIG_DRM_MSM) += msm_drm.o