blob: ab1f69e68cfa2e28fce4a4c0f17f9c5b3738f3f3 [file] [log] [blame]
Sumit Garg760c1d32018-06-21 11:28:18 +05301#
Paul Beesleyfe975b42019-09-16 11:29:03 +00002# Copyright (c) 2018-2019, 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 \
36 drivers/arm/gic/v3/gicv3_main.c \
37 lib/cpus/aarch64/cortex_a53.S \
38 plat/common/plat_gicv3.c \
39 plat/common/plat_psci_common.c \
40 $(PLAT_PATH)/sq_bl31_setup.c \
41 $(PLAT_PATH)/sq_ccn.c \
42 $(PLAT_PATH)/sq_topology.c \
43 $(PLAT_PATH)/sq_psci.c \
44 $(PLAT_PATH)/sq_gicv3.c \
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090045 $(PLAT_PATH)/sq_xlat_setup.c \
46 $(PLAT_PATH)/drivers/scp/sq_scp.c
47
48ifeq (${SQ_USE_SCMI_DRIVER},0)
49BL31_SOURCES += $(PLAT_PATH)/drivers/scpi/sq_scpi.c \
Sumit Garg760c1d32018-06-21 11:28:18 +053050 $(PLAT_PATH)/drivers/mhu/sq_mhu.c
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090051else
52BL31_SOURCES += $(PLAT_PATH)/drivers/scp/sq_scmi.c \
53 drivers/arm/css/scmi/scmi_common.c \
54 drivers/arm/css/scmi/scmi_pwr_dmn_proto.c \
55 drivers/arm/css/scmi/scmi_sys_pwr_proto.c \
56 drivers/arm/css/scmi/vendor/scmi_sq.c \
57 drivers/arm/css/mhu/css_mhu_doorbell.c
58endif
Ard Biesheuvelc0415c62018-12-29 19:44:35 +010059
Paul Beesleyfe975b42019-09-16 11:29:03 +000060ifeq (${SPM_MM},1)
Ard Biesheuvelc0415c62018-12-29 19:44:35 +010061$(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
62
63BL31_SOURCES += $(PLAT_PATH)/sq_spm.c
64endif
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090065
66ifeq (${SQ_USE_SCMI_DRIVER},1)
67$(eval $(call add_define,SQ_USE_SCMI_DRIVER))
68endif