xref: /linux/drivers/gpu/drm/msm/Makefile (revision 7aacf86b75bc5523d20fd9127104384fce51ce9c)
1ccflags-y := -Idrivers/gpu/drm/msm
2ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi
3
4msm-y := \
5	adreno/adreno_device.o \
6	adreno/adreno_gpu.o \
7	adreno/a3xx_gpu.o \
8	adreno/a4xx_gpu.o \
9	adreno/a5xx_gpu.o \
10	adreno/a5xx_power.o \
11	hdmi/hdmi.o \
12	hdmi/hdmi_audio.o \
13	hdmi/hdmi_bridge.o \
14	hdmi/hdmi_connector.o \
15	hdmi/hdmi_i2c.o \
16	hdmi/hdmi_phy.o \
17	hdmi/hdmi_phy_8960.o \
18	hdmi/hdmi_phy_8x60.o \
19	hdmi/hdmi_phy_8x74.o \
20	edp/edp.o \
21	edp/edp_aux.o \
22	edp/edp_bridge.o \
23	edp/edp_connector.o \
24	edp/edp_ctrl.o \
25	edp/edp_phy.o \
26	mdp/mdp_format.o \
27	mdp/mdp_kms.o \
28	mdp/mdp4/mdp4_crtc.o \
29	mdp/mdp4/mdp4_dtv_encoder.o \
30	mdp/mdp4/mdp4_lcdc_encoder.o \
31	mdp/mdp4/mdp4_lvds_connector.o \
32	mdp/mdp4/mdp4_irq.o \
33	mdp/mdp4/mdp4_kms.o \
34	mdp/mdp4/mdp4_plane.o \
35	mdp/mdp5/mdp5_cfg.o \
36	mdp/mdp5/mdp5_ctl.o \
37	mdp/mdp5/mdp5_crtc.o \
38	mdp/mdp5/mdp5_encoder.o \
39	mdp/mdp5/mdp5_irq.o \
40	mdp/mdp5/mdp5_mdss.o \
41	mdp/mdp5/mdp5_kms.o \
42	mdp/mdp5/mdp5_pipe.o \
43	mdp/mdp5/mdp5_mixer.o \
44	mdp/mdp5/mdp5_plane.o \
45	mdp/mdp5/mdp5_smp.o \
46	msm_atomic.o \
47	msm_debugfs.o \
48	msm_drv.o \
49	msm_fb.o \
50	msm_fence.o \
51	msm_gem.o \
52	msm_gem_prime.o \
53	msm_gem_shrinker.o \
54	msm_gem_submit.o \
55	msm_gem_vma.o \
56	msm_gpu.o \
57	msm_iommu.o \
58	msm_perf.o \
59	msm_rd.o \
60	msm_ringbuffer.o
61
62msm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o
63msm-$(CONFIG_COMMON_CLK) += mdp/mdp4/mdp4_lvds_pll.o
64msm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_pll_8960.o
65msm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_phy_8996.o
66
67msm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o
68
69msm-$(CONFIG_DRM_MSM_DSI) += dsi/dsi.o \
70			mdp/mdp4/mdp4_dsi_encoder.o \
71			dsi/dsi_cfg.o \
72			dsi/dsi_host.o \
73			dsi/dsi_manager.o \
74			dsi/phy/dsi_phy.o \
75			mdp/mdp5/mdp5_cmd_encoder.o
76
77msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o
78msm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o
79msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o
80msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o
81
82ifeq ($(CONFIG_DRM_MSM_DSI_PLL),y)
83msm-y += dsi/pll/dsi_pll.o
84msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/pll/dsi_pll_28nm.o
85msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/pll/dsi_pll_28nm_8960.o
86msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/pll/dsi_pll_14nm.o
87endif
88
89obj-$(CONFIG_DRM_MSM)	+= msm.o
90