blob: f5e72cb6441309bbbe168d6ad16ab78f1115af75 [file] [log] [blame]
Sumit Garg760c1d32018-06-21 11:28:18 +05301#
2# Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7override RESET_TO_BL31 := 1
Sumit Garg760c1d32018-06-21 11:28:18 +05308override MULTI_CONSOLE_API := 1
9override PROGRAMMABLE_RESET_ADDRESS := 1
10override USE_COHERENT_MEM := 1
11override SEPARATE_CODE_AND_RODATA := 1
12override ENABLE_SVE_FOR_NS := 0
Sumit Garg760c1d32018-06-21 11:28:18 +053013# Enable workarounds for selected Cortex-A53 erratas.
14ERRATA_A53_855873 := 1
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090015# Enable SCMI support
16SQ_USE_SCMI_DRIVER ?= 0
Sumit Garg760c1d32018-06-21 11:28:18 +053017
18# Libraries
19include lib/xlat_tables_v2/xlat_tables.mk
20
Sumit Garg760c1d32018-06-21 11:28:18 +053021PLAT_PATH := plat/socionext/synquacer
22PLAT_INCLUDES := -I$(PLAT_PATH)/include \
23 -I$(PLAT_PATH)/drivers/scpi \
Masahisa Kojimaebfd8eb2019-03-07 10:41:54 +090024 -I$(PLAT_PATH)/drivers/mhu \
25 -Idrivers/arm/css/scmi \
26 -Idrivers/arm/css/scmi/vendor
Sumit Garg760c1d32018-06-21 11:28:18 +053027
28PLAT_BL_COMMON_SOURCES += $(PLAT_PATH)/sq_helpers.S \
Antonio Nino Diaz1d1b4f62018-09-24 17:16:30 +010029 drivers/arm/pl011/aarch64/pl011_console.S \
Sumit Garg760c1d32018-06-21 11:28:18 +053030 drivers/delay_timer/delay_timer.c \
31 drivers/delay_timer/generic_delay_timer.c \
32 ${XLAT_TABLES_LIB_SRCS}
33
34BL31_SOURCES += drivers/arm/ccn/ccn.c \
35 drivers/arm/gic/common/gic_common.c \
36 drivers/arm/gic/v3/gicv3_helpers.c \
37 drivers/arm/gic/v3/gicv3_main.c \
38 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
61ifeq (${ENABLE_SPM},1)
62$(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