blob: 0d9071b32096a3bcf7a423b7635550efc936a15d [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
33BL31_SOURCES += drivers/arm/ccn/ccn.c \
34 drivers/arm/gic/common/gic_common.c \
35 drivers/arm/gic/v3/gicv3_helpers.c \
Alexei Fedorov2f13d6c2020-02-21 10:17:26 +000036 drivers/arm/gic/v3/gicdv3_helpers.c \
37 drivers/arm/gic/v3/gicrv3_helpers.c \
Sumit Garg760c1d32018-06-21 11:28:18 +053038 drivers/arm/gic/v3/gicv3_main.c \
39 lib/cpus/aarch64/cortex_a53.S \
40 plat/common/plat_gicv3.c \
41 plat/common/plat_psci_common.c \
42 $(PLAT_PATH)/sq_bl31_setup.c \
43 $(PLAT_PATH)/sq_ccn.c \
44 $(PLAT_PATH)/sq_topology.c \
45 $(PLAT_PATH)/sq_psci.c \
46 $(PLAT_PATH)/sq_gicv3.c \
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090047 $(PLAT_PATH)/sq_xlat_setup.c \
48 $(PLAT_PATH)/drivers/scp/sq_scp.c
49
50ifeq (${SQ_USE_SCMI_DRIVER},0)
51BL31_SOURCES += $(PLAT_PATH)/drivers/scpi/sq_scpi.c \
Sumit Garg760c1d32018-06-21 11:28:18 +053052 $(PLAT_PATH)/drivers/mhu/sq_mhu.c
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090053else
54BL31_SOURCES += $(PLAT_PATH)/drivers/scp/sq_scmi.c \
55 drivers/arm/css/scmi/scmi_common.c \
56 drivers/arm/css/scmi/scmi_pwr_dmn_proto.c \
57 drivers/arm/css/scmi/scmi_sys_pwr_proto.c \
58 drivers/arm/css/scmi/vendor/scmi_sq.c \
59 drivers/arm/css/mhu/css_mhu_doorbell.c
60endif
Ard Biesheuvelc0415c62018-12-29 19:44:35 +010061
Paul Beesleyfe975b42019-09-16 11:29:03 +000062ifeq (${SPM_MM},1)
Ard Biesheuvelc0415c62018-12-29 19:44:35 +010063$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
64
65BL31_SOURCES += $(PLAT_PATH)/sq_spm.c
66endif
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090067
68ifeq (${SQ_USE_SCMI_DRIVER},1)
69$(eval $(call add_define,SQ_USE_SCMI_DRIVER))
70endif