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