xref: /linux/drivers/gpu/drm/amd/display/dc/Makefile (revision 3f68c01be9a2227de1e190317fe34a6fb835a094)
14562236bSHarry Wentland#
2e2874a3cSAlex Deucher# Copyright 2017 Advanced Micro Devices, Inc.
3e2874a3cSAlex Deucher#
4e2874a3cSAlex Deucher# Permission is hereby granted, free of charge, to any person obtaining a
5e2874a3cSAlex Deucher# copy of this software and associated documentation files (the "Software"),
6e2874a3cSAlex Deucher# to deal in the Software without restriction, including without limitation
7e2874a3cSAlex Deucher# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8e2874a3cSAlex Deucher# and/or sell copies of the Software, and to permit persons to whom the
9e2874a3cSAlex Deucher# Software is furnished to do so, subject to the following conditions:
10e2874a3cSAlex Deucher#
11e2874a3cSAlex Deucher# The above copyright notice and this permission notice shall be included in
12e2874a3cSAlex Deucher# all copies or substantial portions of the Software.
13e2874a3cSAlex Deucher#
14e2874a3cSAlex Deucher# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15e2874a3cSAlex Deucher# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16e2874a3cSAlex Deucher# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17e2874a3cSAlex Deucher# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18e2874a3cSAlex Deucher# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19e2874a3cSAlex Deucher# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20e2874a3cSAlex Deucher# OTHER DEALINGS IN THE SOFTWARE.
21e2874a3cSAlex Deucher#
22e2874a3cSAlex Deucher#
234562236bSHarry Wentland# Makefile for Display Core (dc) component.
244562236bSHarry Wentland#
254562236bSHarry Wentland
269b93eb47SEric YangDC_LIBS = basics bios calcs clk_mgr dce gpio irq virtual
274562236bSHarry Wentland
28b86a1aa3SBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_DCN
291da37801SBhawanpreet LakhaDC_LIBS += dcn20
301da37801SBhawanpreet LakhaDC_LIBS += dsc
31ff5ef992SAlex DeucherDC_LIBS += dcn10 dml
3225f9955bSBhawanpreet LakhaDC_LIBS += dcn21
33*3f68c01bSZhan Liuifdef CONFIG_DRM_AMD_DC_DCN201
34*3f68c01bSZhan LiuDC_LIBS += dcn201
35*3f68c01bSZhan Liuendif
36e77165bfSBhawanpreet LakhaDC_LIBS += dcn30
373a83e4e6SRoman LiDC_LIBS += dcn301
3836d26912SBhawanpreet LakhaDC_LIBS += dcn302
39cd6d421eSAurabindo PillaiDC_LIBS += dcn303
40926d6972SNicholas KazlauskasDC_LIBS += dcn31
41926d6972SNicholas Kazlauskasendif
4236d26912SBhawanpreet Lakha
432c8ad2d5SAlex DeucherDC_LIBS += dce120
44ff5ef992SAlex Deucher
454562236bSHarry WentlandDC_LIBS += dce112
464562236bSHarry WentlandDC_LIBS += dce110
474562236bSHarry WentlandDC_LIBS += dce100
484562236bSHarry WentlandDC_LIBS += dce80
494562236bSHarry Wentland
507c15fd86SMauro Rossiifdef CONFIG_DRM_AMD_DC_SI
517c15fd86SMauro RossiDC_LIBS += dce60
527c15fd86SMauro Rossiendif
537c15fd86SMauro Rossi
544c283fdaSBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_HDCP
554c283fdaSBhawanpreet LakhaDC_LIBS += hdcp
564c283fdaSBhawanpreet Lakhaendif
574c283fdaSBhawanpreet Lakha
584562236bSHarry WentlandAMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LIBS)))
594562236bSHarry Wentland
604562236bSHarry Wentlandinclude $(AMD_DC)
614562236bSHarry Wentland
6281927e28SJude ShihDISPLAY_CORE = dc.o  dc_stat.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \
63f42ef862SJimmy Kizitodc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o \
6430adeee5SWesley Chalmersdc_link_enc_cfg.o dc_link_dpcd.o
65bda9afdaSDmytro Laktyushkin
66b86a1aa3SBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_DCN
67bda9afdaSDmytro LaktyushkinDISPLAY_CORE += dc_vm_helper.o
68bda9afdaSDmytro Laktyushkinendif
694562236bSHarry Wentland
704562236bSHarry WentlandAMD_DISPLAY_CORE = $(addprefix $(AMDDALPATH)/dc/core/,$(DISPLAY_CORE))
714562236bSHarry Wentland
724562236bSHarry WentlandAMD_DM_REG_UPDATE = $(addprefix $(AMDDALPATH)/dc/,dc_helper.o)
734562236bSHarry Wentland
744562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE)
754562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE)
764562236bSHarry Wentland
773a1627b0SNicholas KazlauskasDC_DMUB += dc_dmub_srv.o
78a0c898f2SStylon WangDC_EDID += dc_edid_parser.o
793a1627b0SNicholas KazlauskasAMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB))
80a0c898f2SStylon WangAMD_DISPLAY_EDID = $(addprefix $(AMDDALPATH)/dc/,$(DC_EDID))
81a0c898f2SStylon WangAMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB) $(AMD_DISPLAY_EDID)
82