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 286fbefb84SHarry Wentlandifdef CONFIG_DRM_AMD_DC_DCN2_0 296fbefb84SHarry WentlandDC_LIBS += dcn20 306fbefb84SHarry Wentlandendif 316fbefb84SHarry Wentland 326fbefb84SHarry Wentland 3397bda032SHarry Wentlandifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT 3497bda032SHarry WentlandDC_LIBS += dsc 3597bda032SHarry Wentlandendif 366fbefb84SHarry Wentland 37dc37a9a0SLeo (Sunpeng) Liifdef CONFIG_DRM_AMD_DC_DCN1_0 38ff5ef992SAlex DeucherDC_LIBS += dcn10 dml 39ff5ef992SAlex Deucherendif 4025f9955bSBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_DCN2_1 4125f9955bSBhawanpreet LakhaDC_LIBS += dcn21 4225f9955bSBhawanpreet Lakhaendif 43ff5ef992SAlex Deucher 442c8ad2d5SAlex DeucherDC_LIBS += dce120 45ff5ef992SAlex Deucher 464562236bSHarry WentlandDC_LIBS += dce112 474562236bSHarry WentlandDC_LIBS += dce110 484562236bSHarry WentlandDC_LIBS += dce100 494562236bSHarry WentlandDC_LIBS += dce80 504562236bSHarry Wentland 514c283fdaSBhawanpreet Lakhaifdef CONFIG_DRM_AMD_DC_HDCP 524c283fdaSBhawanpreet LakhaDC_LIBS += hdcp 534c283fdaSBhawanpreet Lakhaendif 544c283fdaSBhawanpreet Lakha 554562236bSHarry WentlandAMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LIBS))) 564562236bSHarry Wentland 574562236bSHarry Wentlandinclude $(AMD_DC) 584562236bSHarry Wentland 59ab2541b6SAric CyrDISPLAY_CORE = dc.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \ 60bda9afdaSDmytro Laktyushkindc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o 61bda9afdaSDmytro Laktyushkin 62bda9afdaSDmytro Laktyushkinifdef CONFIG_DRM_AMD_DC_DCN2_0 63bda9afdaSDmytro LaktyushkinDISPLAY_CORE += dc_vm_helper.o 64bda9afdaSDmytro Laktyushkinendif 654562236bSHarry Wentland 664562236bSHarry WentlandAMD_DISPLAY_CORE = $(addprefix $(AMDDALPATH)/dc/core/,$(DISPLAY_CORE)) 674562236bSHarry Wentland 684562236bSHarry WentlandAMD_DM_REG_UPDATE = $(addprefix $(AMDDALPATH)/dc/,dc_helper.o) 694562236bSHarry Wentland 704562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DISPLAY_CORE) 714562236bSHarry WentlandAMD_DISPLAY_FILES += $(AMD_DM_REG_UPDATE) 724562236bSHarry Wentland 73*3a1627b0SNicholas Kazlauskasifdef CONFIG_DRM_AMD_DC_DMUB 74*3a1627b0SNicholas KazlauskasDC_DMUB += dc_dmub_srv.o 75*3a1627b0SNicholas KazlauskasAMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB)) 76*3a1627b0SNicholas KazlauskasAMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB) 77*3a1627b0SNicholas Kazlauskasendif 784562236bSHarry Wentland 79