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 2584c03df5SHarry WentlandDC_LIBS = basics bios dml clk_mgr dce gpio irq link virtual dsc 264562236bSHarry Wentland 274652ae7aSHarry Wentlandifdef CONFIG_DRM_AMD_DC_FP 283876a8b5SGuenter Roeck 293876a8b5SGuenter RoeckKCOV_INSTRUMENT := n 303876a8b5SGuenter Roeck 311da37801SBhawanpreet LakhaDC_LIBS += dcn20 32552b7cb0SIsabella BassoDC_LIBS += dcn10 3325f9955bSBhawanpreet LakhaDC_LIBS += dcn21 343f68c01bSZhan LiuDC_LIBS += dcn201 35e77165bfSBhawanpreet LakhaDC_LIBS += dcn30 363a83e4e6SRoman LiDC_LIBS += dcn301 3736d26912SBhawanpreet LakhaDC_LIBS += dcn302 38cd6d421eSAurabindo PillaiDC_LIBS += dcn303 39926d6972SNicholas KazlauskasDC_LIBS += dcn31 40ee7b62e1SRoman LiDC_LIBS += dcn314 410b208d60SQingqing ZhuoDC_LIBS += dcn315 42c477eaa6SHansen DsouzaDC_LIBS += dcn316 43d3dfceb5SAurabindo PillaiDC_LIBS += dcn32 44d3dfceb5SAurabindo PillaiDC_LIBS += dcn321 45926d6972SNicholas Kazlauskasendif 4636d26912SBhawanpreet Lakha 472c8ad2d5SAlex DeucherDC_LIBS += dce120 48ff5ef992SAlex Deucher 494562236bSHarry WentlandDC_LIBS += dce112 504562236bSHarry WentlandDC_LIBS += dce110 514562236bSHarry WentlandDC_LIBS += dce100 524562236bSHarry WentlandDC_LIBS += dce80 534562236bSHarry Wentland 547c15fd86SMauro Rossiifdef CONFIG_DRM_AMD_DC_SI 557c15fd86SMauro RossiDC_LIBS += dce60 567c15fd86SMauro Rossiendif 577c15fd86SMauro Rossi 584c283fdaSBhawanpreet LakhaDC_LIBS += hdcp 594c283fdaSBhawanpreet Lakha 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 \ 655ca38a18SWenjing Liudc_surface.o dc_debug.o dc_stream.o dc_link_enc_cfg.o dc_link_exports.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 734562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE) 744562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE) 754562236bSHarry Wentland 763a1627b0SNicholas KazlauskasDC_DMUB += dc_dmub_srv.o 77a0c898f2SStylon WangDC_EDID += dc_edid_parser.o 783a1627b0SNicholas KazlauskasAMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB)) 79a0c898f2SStylon WangAMD_DISPLAY_EDID = $(addprefix $(AMDDALPATH)/dc/,$(DC_EDID)) 80a0c898f2SStylon WangAMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB) $(AMD_DISPLAY_EDID) 81*5a3ccb14SGabe Teeger 82