Merge branch 'mhi-net-immutable' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / display / dc / clk_mgr / Makefile
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
26 CLK_MGR = clk_mgr.o
27
28 AMD_DAL_CLK_MGR = $(addprefix $(AMDDALPATH)/dc/clk_mgr/,$(CLK_MGR))
29
30 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR)
31
32
33 ifdef CONFIG_DRM_AMD_DC_SI
34 ###############################################################################
35 # DCE 60
36 ###############################################################################
37 CLK_MGR_DCE60 = dce60_clk_mgr.o
38
39 AMD_DAL_CLK_MGR_DCE60 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce60/,$(CLK_MGR_DCE60))
40
41 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE60)
42 endif
43
44 ###############################################################################
45 # DCE 100 and DCE8x
46 ###############################################################################
47 CLK_MGR_DCE100 = dce_clk_mgr.o
48
49 AMD_DAL_CLK_MGR_DCE100 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce100/,$(CLK_MGR_DCE100))
50
51 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE100)
52
53 ###############################################################################
54 # DCE 100 and DCE8x
55 ###############################################################################
56 CLK_MGR_DCE110 = dce110_clk_mgr.o
57
58 AMD_DAL_CLK_MGR_DCE110 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce110/,$(CLK_MGR_DCE110))
59
60 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE110)
61 ###############################################################################
62 # DCE 112
63 ###############################################################################
64 CLK_MGR_DCE112 = dce112_clk_mgr.o
65
66 AMD_DAL_CLK_MGR_DCE112 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce112/,$(CLK_MGR_DCE112))
67
68 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE112)
69 ###############################################################################
70 # DCE 120
71 ###############################################################################
72 CLK_MGR_DCE120 = dce120_clk_mgr.o
73
74 AMD_DAL_CLK_MGR_DCE120 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dce120/,$(CLK_MGR_DCE120))
75
76 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCE120)
77 ifdef CONFIG_DRM_AMD_DC_DCN
78 ###############################################################################
79 # DCN10
80 ###############################################################################
81 CLK_MGR_DCN10 = rv1_clk_mgr.o rv1_clk_mgr_vbios_smu.o rv2_clk_mgr.o
82
83 AMD_DAL_CLK_MGR_DCN10 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn10/,$(CLK_MGR_DCN10))
84
85 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN10)
86
87 ###############################################################################
88 # DCN20
89 ###############################################################################
90 CLK_MGR_DCN20 = dcn20_clk_mgr.o
91
92 AMD_DAL_CLK_MGR_DCN20 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn20/,$(CLK_MGR_DCN20))
93
94 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN20)
95
96 ###############################################################################
97 # DCN21
98 ###############################################################################
99 CLK_MGR_DCN21 = rn_clk_mgr.o rn_clk_mgr_vbios_smu.o
100
101 # prevent build errors regarding soft-float vs hard-float FP ABI tags
102 # this code is currently unused on ppc64, as it applies to Renoir APUs only
103 ifdef CONFIG_PPC64
104 CFLAGS_$(AMDDALPATH)/dc/clk_mgr/dcn21/rn_clk_mgr.o := $(call cc-option,-mno-gnu-attribute)
105 endif
106
107 AMD_DAL_CLK_MGR_DCN21 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn21/,$(CLK_MGR_DCN21))
108
109 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN21)
110 ###############################################################################
111 # DCN30
112 ###############################################################################
113 CLK_MGR_DCN30 = dcn30_clk_mgr.o dcn30_clk_mgr_smu_msg.o
114
115 # prevent build errors regarding soft-float vs hard-float FP ABI tags
116 # this code is currently unused on ppc64, as it applies to VanGogh APUs only
117 ifdef CONFIG_PPC64
118 CFLAGS_$(AMDDALPATH)/dc/clk_mgr/dcn30/dcn30_clk_mgr.o := $(call cc-option,-mno-gnu-attribute)
119 endif
120
121 AMD_DAL_CLK_MGR_DCN30 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn30/,$(CLK_MGR_DCN30))
122
123 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN30)
124 ###############################################################################
125 # DCN301
126 ###############################################################################
127 CLK_MGR_DCN301 = vg_clk_mgr.o dcn301_smu.o
128
129 # prevent build errors regarding soft-float vs hard-float FP ABI tags
130 # this code is currently unused on ppc64, as it applies to VanGogh APUs only
131 ifdef CONFIG_PPC64
132 CFLAGS_$(AMDDALPATH)/dc/clk_mgr/dcn301/vg_clk_mgr.o := $(call cc-option,-mno-gnu-attribute)
133 endif
134
135 AMD_DAL_CLK_MGR_DCN301 = $(addprefix $(AMDDALPATH)/dc/clk_mgr/dcn301/,$(CLK_MGR_DCN301))
136
137 AMD_DISPLAY_FILES += $(AMD_DAL_CLK_MGR_DCN301)
138 endif