1*3a83e4e6SRoman Li#
2*3a83e4e6SRoman Li# (c) Copyright 2020 Advanced Micro Devices, Inc. All the rights reserved
3*3a83e4e6SRoman Li#
4*3a83e4e6SRoman Li#  All rights reserved.  This notice is intended as a precaution against
5*3a83e4e6SRoman Li#  inadvertent publication and does not imply publication or any waiver
6*3a83e4e6SRoman Li#  of confidentiality.  The year included in the foregoing notice is the
7*3a83e4e6SRoman Li#  year of creation of the work.
8*3a83e4e6SRoman Li#
9*3a83e4e6SRoman Li#  Authors: AMD
10*3a83e4e6SRoman Li#
11*3a83e4e6SRoman Li# Makefile for dcn30.
12*3a83e4e6SRoman Li
13*3a83e4e6SRoman LiDCN301 = dcn301_init.o dcn301_resource.o dcn301_dccg.o \
14*3a83e4e6SRoman Li		dcn301_dio_link_encoder.o dcn301_hwseq.o dcn301_panel_cntl.o dcn301_hubbub.o
15*3a83e4e6SRoman Li
16*3a83e4e6SRoman Liifdef CONFIG_X86
17*3a83e4e6SRoman LiCFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mhard-float -msse
18*3a83e4e6SRoman Liendif
19*3a83e4e6SRoman Li
20*3a83e4e6SRoman Liifdef CONFIG_PPC64
21*3a83e4e6SRoman LiCFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mhard-float -maltivec
22*3a83e4e6SRoman Liendif
23*3a83e4e6SRoman Li
24*3a83e4e6SRoman Liifdef CONFIG_ARM64
25*3a83e4e6SRoman LiCFLAGS_REMOVE_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mgeneral-regs-only
26*3a83e4e6SRoman Liendif
27*3a83e4e6SRoman Li
28*3a83e4e6SRoman Liifdef CONFIG_CC_IS_GCC
29*3a83e4e6SRoman Liifeq ($(call cc-ifversion, -lt, 0701, y), y)
30*3a83e4e6SRoman LiIS_OLD_GCC = 1
31*3a83e4e6SRoman Liendif
32*3a83e4e6SRoman Liendif
33*3a83e4e6SRoman Li
34*3a83e4e6SRoman Liifdef CONFIG_X86
35*3a83e4e6SRoman Liifdef IS_OLD_GCC
36*3a83e4e6SRoman Li# Stack alignment mismatch, proceed with caution.
37*3a83e4e6SRoman Li# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3
38*3a83e4e6SRoman Li# (8B stack alignment).
39*3a83e4e6SRoman LiCFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o += -mpreferred-stack-boundary=4
40*3a83e4e6SRoman Lielse
41*3a83e4e6SRoman LiCFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o += -msse2
42*3a83e4e6SRoman Liendif
43*3a83e4e6SRoman Liendif
44*3a83e4e6SRoman Li
45*3a83e4e6SRoman LiAMD_DAL_DCN301 = $(addprefix $(AMDDALPATH)/dc/dcn301/,$(DCN301))
46*3a83e4e6SRoman Li
47*3a83e4e6SRoman LiAMD_DISPLAY_FILES += $(AMD_DAL_DCN301)
48