xref: /linux/drivers/gpu/drm/amd/display/dc/Makefile (revision 74f1af95820fc2ee580a775a3a17c416db30b38c)
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
252d62bb45SMounika 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
386e2c4941SRodrigo SiqueiraDC_LIBS += dml
397966f319SQingqing ZhuoDC_LIBS += dml2
40926d6972SNicholas Kazlauskasendif
4136d26912SBhawanpreet Lakha
422c8ad2d5SAlex DeucherDC_LIBS += dce120
43ff5ef992SAlex Deucher
444562236bSHarry WentlandDC_LIBS += dce112
454562236bSHarry WentlandDC_LIBS += dce110
464562236bSHarry WentlandDC_LIBS += dce80
474562236bSHarry Wentland
487c15fd86SMauro Rossiifdef CONFIG_DRM_AMD_DC_SI
497c15fd86SMauro RossiDC_LIBS += dce60
507c15fd86SMauro Rossiendif
517c15fd86SMauro Rossi
524c283fdaSBhawanpreet LakhaDC_LIBS += hdcp
534c283fdaSBhawanpreet Lakha
5400c39110SAurabindo Pillaiifdef CONFIG_DRM_AMD_DC_FP
555c06c1dfSSamson TamDC_LIBS += sspl
56*ce801e5dSDominik KaszewskiAMD_DISPLAY_FILES += $(addprefix $(AMDDALPATH)/dc/, dc_spl_translate.o)
5700c39110SAurabindo Pillaiendif
5800c39110SAurabindo Pillai
594562236bSHarry WentlandAMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LIBS)))
604562236bSHarry Wentland
614562236bSHarry Wentlandinclude $(AMD_DC)
624562236bSHarry Wentland
63*ce801e5dSDominik KaszewskiFILES =
64*ce801e5dSDominik KaszewskiFILES += dc_dmub_srv.o
65*ce801e5dSDominik KaszewskiFILES += dc_edid_parser.o
66*ce801e5dSDominik KaszewskiFILES += dc_fused_io.o
67*ce801e5dSDominik KaszewskiFILES += dc_helper.o
68*ce801e5dSDominik KaszewskiFILES += core/dc.o
69*ce801e5dSDominik KaszewskiFILES += core/dc_debug.o
70*ce801e5dSDominik KaszewskiFILES += core/dc_hw_sequencer.o
71*ce801e5dSDominik KaszewskiFILES += core/dc_link_enc_cfg.o
72*ce801e5dSDominik KaszewskiFILES += core/dc_link_exports.o
73*ce801e5dSDominik KaszewskiFILES += core/dc_resource.o
74*ce801e5dSDominik KaszewskiFILES += core/dc_sink.o
75*ce801e5dSDominik KaszewskiFILES += core/dc_stat.o
76*ce801e5dSDominik KaszewskiFILES += core/dc_state.o
77*ce801e5dSDominik KaszewskiFILES += core/dc_stream.o
78*ce801e5dSDominik KaszewskiFILES += core/dc_surface.o
79*ce801e5dSDominik KaszewskiFILES += core/dc_vm_helper.o
80bda9afdaSDmytro Laktyushkin
81*ce801e5dSDominik KaszewskiAMD_DISPLAY_FILES += $(addprefix $(AMDDALPATH)/dc/, $(FILES))
824562236bSHarry Wentland
83