blob: dcd5d31ee82f74a52dcfd6c14dc1fffd7f89fff5 [file] [log] [blame]
Sumit Garg760c1d32018-06-21 11:28:18 +05301#
Alexei Fedorov2f13d6c2020-02-21 10:17:26 +00002# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Sumit Garg760c1d32018-06-21 11:28:18 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7override RESET_TO_BL31 := 1
Sumit Garg760c1d32018-06-21 11:28:18 +05308override PROGRAMMABLE_RESET_ADDRESS := 1
9override USE_COHERENT_MEM := 1
10override SEPARATE_CODE_AND_RODATA := 1
11override ENABLE_SVE_FOR_NS := 0
Sumit Garg760c1d32018-06-21 11:28:18 +053012# Enable workarounds for selected Cortex-A53 erratas.
13ERRATA_A53_855873 := 1
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090014# Enable SCMI support
15SQ_USE_SCMI_DRIVER ?= 0
Sumit Garg760c1d32018-06-21 11:28:18 +053016
17# Libraries
18include lib/xlat_tables_v2/xlat_tables.mk
19
Sumit Garg760c1d32018-06-21 11:28:18 +053020PLAT_PATH := plat/socionext/synquacer
21PLAT_INCLUDES := -I$(PLAT_PATH)/include \
22 -I$(PLAT_PATH)/drivers/scpi \
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090023 -I$(PLAT_PATH)/drivers/mhu \
24 -Idrivers/arm/css/scmi \
25 -Idrivers/arm/css/scmi/vendor
Sumit Garg760c1d32018-06-21 11:28:18 +053026
27PLAT_BL_COMMON_SOURCES += $(PLAT_PATH)/sq_helpers.S \
Antonio Nino Diaz1d1b4f62018-09-24 17:16:30 +010028 drivers/arm/pl011/aarch64/pl011_console.S \
Sumit Garg760c1d32018-06-21 11:28:18 +053029 drivers/delay_timer/delay_timer.c \
30 drivers/delay_timer/generic_delay_timer.c \
31 ${XLAT_TABLES_LIB_SRCS}
32
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000033# Include GICv3 driver files
34include drivers/arm/gic/v3/gicv3.mk
35
Sumit Garg760c1d32018-06-21 11:28:18 +053036BL31_SOURCES += drivers/arm/ccn/ccn.c \
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000037 ${GICV3_SOURCES} \
Sumit Garg760c1d32018-06-21 11:28:18 +053038 lib/cpus/aarch64/cortex_a53.S \
39 plat/common/plat_gicv3.c \
40 plat/common/plat_psci_common.c \
41 $(PLAT_PATH)/sq_bl31_setup.c \
42 $(PLAT_PATH)/sq_ccn.c \
43 $(PLAT_PATH)/sq_topology.c \
44 $(PLAT_PATH)/sq_psci.c \
45 $(PLAT_PATH)/sq_gicv3.c \
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090046 $(PLAT_PATH)/sq_xlat_setup.c \
47 $(PLAT_PATH)/drivers/scp/sq_scp.c
48
49ifeq (${SQ_USE_SCMI_DRIVER},0)
50BL31_SOURCES += $(PLAT_PATH)/drivers/scpi/sq_scpi.c \
Sumit Garg760c1d32018-06-21 11:28:18 +053051 $(PLAT_PATH)/drivers/mhu/sq_mhu.c
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090052else
53BL31_SOURCES += $(PLAT_PATH)/drivers/scp/sq_scmi.c \
54 drivers/arm/css/scmi/scmi_common.c \
55 drivers/arm/css/scmi/scmi_pwr_dmn_proto.c \
56 drivers/arm/css/scmi/scmi_sys_pwr_proto.c \
57 drivers/arm/css/scmi/vendor/scmi_sq.c \
58 drivers/arm/css/mhu/css_mhu_doorbell.c
59endif
Ard Biesheuvelc0415c62018-12-29 19:44:35 +010060
Paul Beesleyfe975b42019-09-16 11:29:03 +000061ifeq (${SPM_MM},1)
Ard Biesheuvelc0415c62018-12-29 19:44:35 +010062$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
63
64BL31_SOURCES += $(PLAT_PATH)/sq_spm.c
65endif
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090066
67ifeq (${SQ_USE_SCMI_DRIVER},1)
68$(eval $(call add_define,SQ_USE_SCMI_DRIVER))
69endif