xref: /rk3399_ARM-atf/plat/socionext/synquacer/platform.mk (revision 150c38e84d4522a207ed0a580aa1fbf94f34c939)
1*150c38e8SSumit Garg#
2*150c38e8SSumit Garg# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3*150c38e8SSumit Garg#
4*150c38e8SSumit Garg# SPDX-License-Identifier: BSD-3-Clause
5*150c38e8SSumit Garg#
6*150c38e8SSumit Garg
7*150c38e8SSumit Gargoverride RESET_TO_BL31			:= 1
8*150c38e8SSumit Gargoverride ENABLE_PLAT_COMPAT		:= 0
9*150c38e8SSumit Gargoverride MULTI_CONSOLE_API		:= 1
10*150c38e8SSumit Gargoverride PROGRAMMABLE_RESET_ADDRESS	:= 1
11*150c38e8SSumit Gargoverride USE_COHERENT_MEM		:= 1
12*150c38e8SSumit Gargoverride SEPARATE_CODE_AND_RODATA	:= 1
13*150c38e8SSumit Gargoverride ENABLE_SVE_FOR_NS		:= 0
14*150c38e8SSumit Garg
15*150c38e8SSumit Garg# Enable workarounds for selected Cortex-A53 erratas.
16*150c38e8SSumit GargERRATA_A53_855873		:= 1
17*150c38e8SSumit Garg
18*150c38e8SSumit Garg# Libraries
19*150c38e8SSumit Garginclude lib/xlat_tables_v2/xlat_tables.mk
20*150c38e8SSumit Garg
21*150c38e8SSumit GargPLAT_PATH		:=	plat/socionext/synquacer
22*150c38e8SSumit GargPLAT_INCLUDES		:=	-I$(PLAT_PATH)/include		\
23*150c38e8SSumit Garg				-I$(PLAT_PATH)/drivers/scpi	\
24*150c38e8SSumit Garg				-I$(PLAT_PATH)/drivers/mhu
25*150c38e8SSumit Garg
26*150c38e8SSumit GargPLAT_BL_COMMON_SOURCES	+=	$(PLAT_PATH)/sq_helpers.S		\
27*150c38e8SSumit Garg				drivers/arm/pl011/pl011_console.S	\
28*150c38e8SSumit Garg				drivers/delay_timer/delay_timer.c	\
29*150c38e8SSumit Garg				drivers/delay_timer/generic_delay_timer.c \
30*150c38e8SSumit Garg				${XLAT_TABLES_LIB_SRCS}
31*150c38e8SSumit Garg
32*150c38e8SSumit GargBL31_SOURCES		+=	drivers/arm/ccn/ccn.c			\
33*150c38e8SSumit Garg				drivers/arm/gic/common/gic_common.c	\
34*150c38e8SSumit Garg				drivers/arm/gic/v3/gicv3_helpers.c	\
35*150c38e8SSumit Garg				drivers/arm/gic/v3/gicv3_main.c		\
36*150c38e8SSumit Garg				lib/cpus/aarch64/cortex_a53.S		\
37*150c38e8SSumit Garg				plat/common/plat_gicv3.c		\
38*150c38e8SSumit Garg				plat/common/plat_psci_common.c		\
39*150c38e8SSumit Garg				$(PLAT_PATH)/sq_bl31_setup.c		\
40*150c38e8SSumit Garg				$(PLAT_PATH)/sq_ccn.c			\
41*150c38e8SSumit Garg				$(PLAT_PATH)/sq_topology.c		\
42*150c38e8SSumit Garg				$(PLAT_PATH)/sq_psci.c			\
43*150c38e8SSumit Garg				$(PLAT_PATH)/sq_gicv3.c			\
44*150c38e8SSumit Garg				$(PLAT_PATH)/sq_xlat_setup.c		\
45*150c38e8SSumit Garg				$(PLAT_PATH)/drivers/scpi/sq_scpi.c	\
46*150c38e8SSumit Garg				$(PLAT_PATH)/drivers/mhu/sq_mhu.c
47