xref: /linux-6.15/drivers/gpu/drm/amd/display/dc/Makefile (revision 3a83e4e6)
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
3325f9955bSBhawanpreet Lakhaendif
34ff5ef992SAlex Deucher
35e77165bfSBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_DCN3_0
36e77165bfSBhawanpreet LakhaDC_LIBS += dcn30
37e77165bfSBhawanpreet Lakhaendif
38e77165bfSBhawanpreet Lakha
39*3a83e4e6SRoman Liifdef CONFIG_DRM_AMD_DC_DCN3_01
40*3a83e4e6SRoman LiDC_LIBS += dcn301
41*3a83e4e6SRoman Liendif
42*3a83e4e6SRoman Li
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
62ab2541b6SAric CyrDISPLAY_CORE = dc.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \
63bda9afdaSDmytro Laktyushkindc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o
64bda9afdaSDmytro Laktyushkin
65b86a1aa3SBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_DCN
66bda9afdaSDmytro LaktyushkinDISPLAY_CORE += dc_vm_helper.o
67bda9afdaSDmytro Laktyushkinendif
684562236bSHarry Wentland
694562236bSHarry WentlandAMD_DISPLAY_CORE = $(addprefix $(AMDDALPATH)/dc/core/,$(DISPLAY_CORE))
704562236bSHarry Wentland
714562236bSHarry WentlandAMD_DM_REG_UPDATE = $(addprefix $(AMDDALPATH)/dc/,dc_helper.o)
724562236bSHarry Wentland
734562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE)
744562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE)
754562236bSHarry Wentland
763a1627b0SNicholas KazlauskasDC_DMUB += dc_dmub_srv.o
773a1627b0SNicholas KazlauskasAMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB))
783a1627b0SNicholas KazlauskasAMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB)
79