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