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. 2485f4bc0cSAlvin Lee 25*2d62bb45SMounika AdhuriDC_LIBS = basics bios dml clk_mgr dce gpio hwss irq link virtual dsc resource optc dpp hubbub dccg hubp dio dwb hpo mmhubbub mpc opp pg 264562236bSHarry Wentland 274652ae7aSHarry Wentlandifdef CONFIG_DRM_AMD_DC_FP 283876a8b5SGuenter Roeck 293876a8b5SGuenter RoeckKCOV_INSTRUMENT := n 303876a8b5SGuenter Roeck 31552b7cb0SIsabella BassoDC_LIBS += dcn10 327966f319SQingqing ZhuoDC_LIBS += dcn20 3325f9955bSBhawanpreet LakhaDC_LIBS += dcn21 343f68c01bSZhan LiuDC_LIBS += dcn201 35e77165bfSBhawanpreet LakhaDC_LIBS += dcn30 363a83e4e6SRoman LiDC_LIBS += dcn301 37926d6972SNicholas KazlauskasDC_LIBS += dcn31 38ee7b62e1SRoman LiDC_LIBS += dcn314 396e2c4941SRodrigo SiqueiraDC_LIBS += dml 407966f319SQingqing ZhuoDC_LIBS += dml2 41926d6972SNicholas Kazlauskasendif 4236d26912SBhawanpreet Lakha 432c8ad2d5SAlex DeucherDC_LIBS += dce120 44ff5ef992SAlex Deucher 454562236bSHarry WentlandDC_LIBS += dce112 464562236bSHarry WentlandDC_LIBS += dce110 474562236bSHarry WentlandDC_LIBS += dce80 484562236bSHarry Wentland 497c15fd86SMauro Rossiifdef CONFIG_DRM_AMD_DC_SI 507c15fd86SMauro RossiDC_LIBS += dce60 517c15fd86SMauro Rossiendif 527c15fd86SMauro Rossi 534c283fdaSBhawanpreet LakhaDC_LIBS += hdcp 544c283fdaSBhawanpreet Lakha 5500c39110SAurabindo Pillaiifdef CONFIG_DRM_AMD_DC_FP 5600c39110SAurabindo PillaiDC_LIBS += spl 5700c39110SAurabindo PillaiDC_SPL_TRANS += dc_spl_translate.o 5800c39110SAurabindo Pillaiendif 5900c39110SAurabindo Pillai 604562236bSHarry WentlandAMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LIBS))) 614562236bSHarry Wentland 624562236bSHarry Wentlandinclude $(AMD_DC) 634562236bSHarry Wentland 6454618888SWenjing LiuDISPLAY_CORE = dc.o dc_stat.o dc_resource.o dc_hw_sequencer.o dc_sink.o \ 6509a4ec5dSDillon Varonedc_surface.o dc_debug.o dc_stream.o dc_link_enc_cfg.o dc_link_exports.o dc_state.o 66bda9afdaSDmytro Laktyushkin 67bda9afdaSDmytro LaktyushkinDISPLAY_CORE += dc_vm_helper.o 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 7300c39110SAurabindo PillaiAMD_DC_SPL_TRANS = $(addprefix $(AMDDALPATH)/dc/,$(DC_SPL_TRANS)) 7400c39110SAurabindo Pillai 754562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE) 764562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE) 774562236bSHarry Wentland 783a1627b0SNicholas KazlauskasDC_DMUB += dc_dmub_srv.o 79a0c898f2SStylon WangDC_EDID += dc_edid_parser.o 803a1627b0SNicholas KazlauskasAMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB)) 81a0c898f2SStylon WangAMD_DISPLAY_EDID = $(addprefix $(AMDDALPATH)/dc/,$(DC_EDID)) 82a0c898f2SStylon WangAMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB) $(AMD_DISPLAY_EDID) 83d12f00c9SGabe Teeger 8400c39110SAurabindo PillaiAMD_DISPLAY_FILES += $(AMD_DC_SPL_TRANS) 85