xref: /openbmc/linux/drivers/gpu/drm/msm/Makefile (revision c0c74acb)
1ccflags-y := -Iinclude/drm -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_plane.o \
44	mdp/mdp5/mdp5_smp.o \
45	msm_atomic.o \
46	msm_debugfs.o \
47	msm_drv.o \
48	msm_fb.o \
49	msm_fence.o \
50	msm_gem.o \
51	msm_gem_prime.o \
52	msm_gem_shrinker.o \
53	msm_gem_submit.o \
54	msm_gem_vma.o \
55	msm_gpu.o \
56	msm_iommu.o \
57	msm_perf.o \
58	msm_rd.o \
59	msm_ringbuffer.o
60
61msm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o
62msm-$(CONFIG_COMMON_CLK) += mdp/mdp4/mdp4_lvds_pll.o
63msm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_pll_8960.o
64msm-$(CONFIG_COMMON_CLK) += hdmi/hdmi_phy_8996.o
65
66msm-$(CONFIG_DRM_MSM_HDMI_HDCP) += hdmi/hdmi_hdcp.o
67
68msm-$(CONFIG_DRM_MSM_DSI) += dsi/dsi.o \
69			mdp/mdp4/mdp4_dsi_encoder.o \
70			dsi/dsi_cfg.o \
71			dsi/dsi_host.o \
72			dsi/dsi_manager.o \
73			dsi/phy/dsi_phy.o \
74			mdp/mdp5/mdp5_cmd_encoder.o
75
76msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/phy/dsi_phy_28nm.o
77msm-$(CONFIG_DRM_MSM_DSI_20NM_PHY) += dsi/phy/dsi_phy_20nm.o
78msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/phy/dsi_phy_28nm_8960.o
79msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/phy/dsi_phy_14nm.o
80
81ifeq ($(CONFIG_DRM_MSM_DSI_PLL),y)
82msm-y += dsi/pll/dsi_pll.o
83msm-$(CONFIG_DRM_MSM_DSI_28NM_PHY) += dsi/pll/dsi_pll_28nm.o
84msm-$(CONFIG_DRM_MSM_DSI_28NM_8960_PHY) += dsi/pll/dsi_pll_28nm_8960.o
85msm-$(CONFIG_DRM_MSM_DSI_14NM_PHY) += dsi/pll/dsi_pll_14nm.o
86endif
87
88obj-$(CONFIG_DRM_MSM)	+= msm.o
89