xref: /linux-6.15/drivers/gpu/drm/amd/display/dc/Makefile (revision a0c898f2)
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
33e77165bfSBhawanpreet LakhaDC_LIBS += dcn30
343a83e4e6SRoman LiDC_LIBS += dcn301
3536d26912SBhawanpreet LakhaDC_LIBS += dcn302
3636d26912SBhawanpreet Lakhaendif
3736d26912SBhawanpreet Lakha
382c8ad2d5SAlex DeucherDC_LIBS += dce120
39ff5ef992SAlex Deucher
404562236bSHarry WentlandDC_LIBS += dce112
414562236bSHarry WentlandDC_LIBS += dce110
424562236bSHarry WentlandDC_LIBS += dce100
434562236bSHarry WentlandDC_LIBS += dce80
444562236bSHarry Wentland
457c15fd86SMauro Rossiifdef CONFIG_DRM_AMD_DC_SI
467c15fd86SMauro RossiDC_LIBS += dce60
477c15fd86SMauro Rossiendif
487c15fd86SMauro Rossi
494c283fdaSBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_HDCP
504c283fdaSBhawanpreet LakhaDC_LIBS += hdcp
514c283fdaSBhawanpreet Lakhaendif
524c283fdaSBhawanpreet Lakha
534562236bSHarry WentlandAMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LIBS)))
544562236bSHarry Wentland
554562236bSHarry Wentlandinclude $(AMD_DC)
564562236bSHarry Wentland
57ab2541b6SAric CyrDISPLAY_CORE = dc.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \
58bda9afdaSDmytro Laktyushkindc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o
59bda9afdaSDmytro Laktyushkin
60b86a1aa3SBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_DCN
61bda9afdaSDmytro LaktyushkinDISPLAY_CORE += dc_vm_helper.o
62bda9afdaSDmytro Laktyushkinendif
634562236bSHarry Wentland
644562236bSHarry WentlandAMD_DISPLAY_CORE = $(addprefix $(AMDDALPATH)/dc/core/,$(DISPLAY_CORE))
654562236bSHarry Wentland
664562236bSHarry WentlandAMD_DM_REG_UPDATE = $(addprefix $(AMDDALPATH)/dc/,dc_helper.o)
674562236bSHarry Wentland
684562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE)
694562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE)
704562236bSHarry Wentland
713a1627b0SNicholas KazlauskasDC_DMUB += dc_dmub_srv.o
72*a0c898f2SStylon WangDC_EDID += dc_edid_parser.o
733a1627b0SNicholas KazlauskasAMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB))
74*a0c898f2SStylon WangAMD_DISPLAY_EDID = $(addprefix $(AMDDALPATH)/dc/,$(DC_EDID))
75*a0c898f2SStylon WangAMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB) $(AMD_DISPLAY_EDID)
76