Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Samantha Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 2 | ccflags-$(CONFIG_DRM_MSM_DP):= -Iinclude/drm -Idrivers/gpu/drm/msm -Idrivers/gpu/drm/msm/dsi-staging -Idrivers/gpu/drm/msm/dp |
| 3 | ccflags-y += -Idrivers/gpu/drm/msm/display-manager |
Hai Li | 5c82902 | 2015-08-13 17:45:52 -0400 | [diff] [blame] | 4 | ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi |
Samantha Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 5 | ccflags-$(CONFIG_DRM_MSM_DSI_PLL) += -Idrivers/gpu/drm/msm/dsi |
| 6 | ccflags-$(CONFIG_DRM_MSM_SDE) += -Idrivers/gpu/drm/msm/sde |
| 7 | ccflags-y += -Idrivers/media/platform/msm/sde/rotator |
| 8 | ccflags-y += -Idrivers/gpu/drm/msm/hdmi |
Rob Clark | c8afe68 | 2013-06-26 12:44:06 -0400 | [diff] [blame] | 9 | |
Samantha Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 10 | msm_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 | |
| 26 | msm_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 | |
| 50 | msm_drm-$(CONFIG_DRM_MSM_HDMI) += hdmi/hdmi.o \ |
Rob Clark | c0c0d9e | 2013-12-11 14:44:02 -0500 | [diff] [blame] | 51 | hdmi/hdmi_audio.o \ |
Rob Clark | a3376e3 | 2013-08-30 13:02:15 -0400 | [diff] [blame] | 52 | hdmi/hdmi_bridge.o \ |
Rob Clark | c8afe68 | 2013-06-26 12:44:06 -0400 | [diff] [blame] | 53 | hdmi/hdmi_connector.o \ |
| 54 | hdmi/hdmi_i2c.o \ |
Archit Taneja | 15b4a45 | 2016-02-25 11:22:38 +0530 | [diff] [blame] | 55 | hdmi/hdmi_phy.o \ |
Rob Clark | c8afe68 | 2013-06-26 12:44:06 -0400 | [diff] [blame] | 56 | hdmi/hdmi_phy_8960.o \ |
| 57 | hdmi/hdmi_phy_8x60.o \ |
Rob Clark | dada25b | 2013-12-01 12:12:54 -0500 | [diff] [blame] | 58 | hdmi/hdmi_phy_8x74.o \ |
Samantha Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 59 | |
| 60 | msm_drm-$(CONFIG_DRM_MSM_EDP) += edp/edp.o \ |
Hai Li | ab5b010 | 2015-01-07 18:47:44 -0500 | [diff] [blame] | 61 | 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 Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 66 | |
| 67 | msm_drm-$(CONFIG_DRM_MSM_MDP5) += disp/mdp_format.o \ |
Rob Clark | 14be320 | 2018-02-12 08:18:27 -0500 | [diff] [blame] | 68 | disp/mdp_kms.o \ |
Rob Clark | 14be320 | 2018-02-12 08:18:27 -0500 | [diff] [blame] | 69 | 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 Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 80 | |
| 81 | msm_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 |
| 85 | ifneq ($(CONFIG_QCOM_KGSL),y) |
| 86 | msm_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 |
| 96 | endif |
| 97 | |
| 98 | msm_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 | |
| 106 | msm_drm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o |
| 107 | ifeq ($(CONFIG_DRM_MSM_SDE),y) |
| 108 | msm_drm-$(CONFIG_SYNC_FILE) += sde/sde_fence.o |
| 109 | endif |
| 110 | msm_drm-$(CONFIG_COMMON_CLK) += disp/mdp4/mdp4_lvds_pll.o |
| 111 | msm_drm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_pll_8960.o |
| 112 | msm_drm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_phy_8996.o |
| 113 | |
| 114 | msm_drm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o |
| 115 | |
| 116 | msm_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 | |
| 124 | msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o |
| 125 | msm_drm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o |
| 126 | msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o |
| 127 | msm_drm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o |
| 128 | msm_drm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/phy/dsi_phy_10nm.o |
| 129 | |
| 130 | ifeq ($(CONFIG_DRM_MSM_DSI_PLL),y) |
| 131 | msm_drm-y += dsi/pll/dsi_pll.o |
| 132 | msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/pll/dsi_pll_28nm.o |
| 133 | msm_drm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/pll/dsi_pll_28nm_8960.o |
| 134 | msm_drm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/pll/dsi_pll_14nm.o |
| 135 | msm_drm-$(CONFIG_DRM_MSM_DSI_10NM_PHY) += dsi/pll/dsi_pll_10nm.o |
| 136 | endif |
| 137 | msm_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 | |
| 159 | msm_drm-$(CONFIG_DSI_PARSER) += dsi-staging/dsi_parser.o |
| 160 | |
| 161 | msm_drm-$(CONFIG_DRM_MSM_DSI_PLL) += dsi/pll/dsi_pll.o \ |
| 162 | dsi/pll/dsi_pll_28nm.o |
| 163 | |
| 164 | msm_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 | |
| 188 | msm_drm-$(CONFIG_DRM_SDE_WB) += sde/sde_wb.o \ |
| 189 | sde/sde_encoder_phys_wb.o |
| 190 | |
| 191 | msm_drm-$(CONFIG_DRM_MSM) += \ |
Rob Clark | cf3a7e4 | 2014-11-08 13:21:06 -0500 | [diff] [blame] | 192 | msm_atomic.o \ |
Rob Clark | edcd60c | 2016-03-16 12:56:12 -0400 | [diff] [blame] | 193 | msm_debugfs.o \ |
Rob Clark | c8afe68 | 2013-06-26 12:44:06 -0400 | [diff] [blame] | 194 | msm_drv.o \ |
| 195 | msm_fb.o \ |
Rob Clark | fde5de6 | 2016-03-15 15:35:08 -0400 | [diff] [blame] | 196 | msm_fence.o \ |
Rob Clark | 7198e6b | 2013-07-19 12:59:32 -0400 | [diff] [blame] | 197 | msm_gem.o \ |
Rob Clark | 05b8491 | 2013-09-28 11:28:35 -0400 | [diff] [blame] | 198 | msm_gem_prime.o \ |
Rob Clark | 6820939 | 2016-05-17 16:19:32 -0400 | [diff] [blame] | 199 | msm_gem_shrinker.o \ |
Rob Clark | 7198e6b | 2013-07-19 12:59:32 -0400 | [diff] [blame] | 200 | msm_gem_submit.o \ |
Rob Clark | 667ce33 | 2016-09-28 19:58:32 -0400 | [diff] [blame] | 201 | msm_gem_vma.o \ |
Rob Clark | 7198e6b | 2013-07-19 12:59:32 -0400 | [diff] [blame] | 202 | msm_gpu.o \ |
Rob Clark | 871d812 | 2013-11-16 12:56:06 -0500 | [diff] [blame] | 203 | msm_iommu.o \ |
Rob Clark | 70c70f0 | 2014-05-30 14:49:43 -0400 | [diff] [blame] | 204 | msm_perf.o \ |
Rob Clark | a7d3c95 | 2014-05-30 14:47:38 -0400 | [diff] [blame] | 205 | msm_rd.o \ |
Jordan Crouse | f7de154 | 2017-10-20 11:06:55 -0600 | [diff] [blame] | 206 | msm_ringbuffer.o \ |
| 207 | msm_submitqueue.o |
Rob Clark | c8afe68 | 2013-06-26 12:44:06 -0400 | [diff] [blame] | 208 | |
Samantha Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 209 | msm_drm-$(CONFIG_DEBUG_FS) += adreno/a5xx_debugfs.o |
Rob Clark | 331dc0b | 2017-12-13 15:12:56 -0500 | [diff] [blame] | 210 | |
Hai Li | 825637b | 2015-05-15 13:04:04 -0400 | [diff] [blame] | 211 | |
Samantha Tran | 1eae18f | 2018-10-15 14:04:01 -0700 | [diff] [blame] | 212 | obj-$(CONFIG_DRM_MSM) += msm_drm.o |