xref: /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/Makefile (revision f86fd32d)
1#
2# Copyright 2017 Advanced Micro Devices, Inc.
3#
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and/or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice shall be included in
12# all copies or substantial portions of the Software.
13#
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20# OTHER DEALINGS IN THE SOFTWARE.
21#
22#
23# Makefile for the 'clk_mgr' sub-component of DAL.
24# It provides the control and status of HW CLK_MGR pins.
25
26CLK_MGR = clk_mgr.o
27
28AMD_DAL_CLK_MGR = $(addprefix $(AMDDALPATH)/dc/clk_mgr/,$(CLK_MGR))
29
30AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR)
31
32
33###############################################################################
34# DCE 100 and DCE8x
35###############################################################################
36CLK_MGR_DCE100 = dce_clk_mgr.o
37
38AMD_DAL_CLK_MGR_DCE100 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce100/,$(CLK_MGR_DCE100))
39
40AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE100)
41
42###############################################################################
43# DCE 100 and DCE8x
44###############################################################################
45CLK_MGR_DCE110 = dce110_clk_mgr.o
46
47AMD_DAL_CLK_MGR_DCE110 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce110/,$(CLK_MGR_DCE110))
48
49AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE110)
50###############################################################################
51# DCE 112
52###############################################################################
53CLK_MGR_DCE112 = dce112_clk_mgr.o
54
55AMD_DAL_CLK_MGR_DCE112 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce112/,$(CLK_MGR_DCE112))
56
57AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE112)
58###############################################################################
59# DCE 120
60###############################################################################
61CLK_MGR_DCE120 = dce120_clk_mgr.o
62
63AMD_DAL_CLK_MGR_DCE120 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce120/,$(CLK_MGR_DCE120))
64
65AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE120)
66ifdef CONFIG_DRM_AMD_DC_DCN
67###############################################################################
68# DCN10
69###############################################################################
70CLK_MGR_DCN10 = rv1_clk_mgr.o rv1_clk_mgr_vbios_smu.o rv2_clk_mgr.o
71
72AMD_DAL_CLK_MGR_DCN10 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn10/,$(CLK_MGR_DCN10))
73
74AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN10)
75
76###############################################################################
77# DCN20
78###############################################################################
79CLK_MGR_DCN20 = dcn20_clk_mgr.o
80
81AMD_DAL_CLK_MGR_DCN20 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn20/,$(CLK_MGR_DCN20))
82
83AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN20)
84
85###############################################################################
86# DCN21
87###############################################################################
88CLK_MGR_DCN21 = rn_clk_mgr.o rn_clk_mgr_vbios_smu.o
89
90# prevent build errors regarding soft-float vs hard-float FP ABI tags
91# this code is currently unused on ppc64, as it applies to Renoir APUs only
92ifdef CONFIG_PPC64
93CFLAGS_$(AMDDALPATH)/dc/clk_mgr/dcn21/rn_clk_mgr.o := $(call cc-option,-mno-gnu-attribute)
94endif
95
96AMD_DAL_CLK_MGR_DCN21 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn21/,$(CLK_MGR_DCN21))
97
98AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN21)
99endif
100