Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 1 | # |
Alexei Fedorov | 2f13d6c | 2020-02-21 10:17:26 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | override RESET_TO_BL31 := 1 |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 8 | override PROGRAMMABLE_RESET_ADDRESS := 1 |
| 9 | override USE_COHERENT_MEM := 1 |
| 10 | override SEPARATE_CODE_AND_RODATA := 1 |
| 11 | override ENABLE_SVE_FOR_NS := 0 |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 12 | # Enable workarounds for selected Cortex-A53 erratas. |
| 13 | ERRATA_A53_855873 := 1 |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 14 | # Enable SCMI support |
| 15 | SQ_USE_SCMI_DRIVER ?= 0 |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 16 | |
| 17 | # Libraries |
| 18 | include lib/xlat_tables_v2/xlat_tables.mk |
| 19 | |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 20 | PLAT_PATH := plat/socionext/synquacer |
| 21 | PLAT_INCLUDES := -I$(PLAT_PATH)/include \ |
| 22 | -I$(PLAT_PATH)/drivers/scpi \ |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 23 | -I$(PLAT_PATH)/drivers/mhu \ |
| 24 | -Idrivers/arm/css/scmi \ |
| 25 | -Idrivers/arm/css/scmi/vendor |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 26 | |
| 27 | PLAT_BL_COMMON_SOURCES += $(PLAT_PATH)/sq_helpers.S \ |
Antonio Nino Diaz | 1d1b4f6 | 2018-09-24 17:16:30 +0100 | [diff] [blame] | 28 | drivers/arm/pl011/aarch64/pl011_console.S \ |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 29 | drivers/delay_timer/delay_timer.c \ |
| 30 | drivers/delay_timer/generic_delay_timer.c \ |
| 31 | ${XLAT_TABLES_LIB_SRCS} |
| 32 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 33 | # Include GICv3 driver files |
| 34 | include drivers/arm/gic/v3/gicv3.mk |
| 35 | |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 36 | BL31_SOURCES += drivers/arm/ccn/ccn.c \ |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 37 | ${GICV3_SOURCES} \ |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 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 Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 46 | $(PLAT_PATH)/sq_xlat_setup.c \ |
| 47 | $(PLAT_PATH)/drivers/scp/sq_scp.c |
| 48 | |
| 49 | ifeq (${SQ_USE_SCMI_DRIVER},0) |
| 50 | BL31_SOURCES += $(PLAT_PATH)/drivers/scpi/sq_scpi.c \ |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 51 | $(PLAT_PATH)/drivers/mhu/sq_mhu.c |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 52 | else |
| 53 | BL31_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 |
| 59 | endif |
Ard Biesheuvel | c0415c6 | 2018-12-29 19:44:35 +0100 | [diff] [blame] | 60 | |
Paul Beesley | fe975b4 | 2019-09-16 11:29:03 +0000 | [diff] [blame] | 61 | ifeq (${SPM_MM},1) |
Ard Biesheuvel | c0415c6 | 2018-12-29 19:44:35 +0100 | [diff] [blame] | 62 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 63 | |
| 64 | BL31_SOURCES += $(PLAT_PATH)/sq_spm.c |
| 65 | endif |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 66 | |
| 67 | ifeq (${SQ_USE_SCMI_DRIVER},1) |
| 68 | $(eval $(call add_define,SQ_USE_SCMI_DRIVER)) |
| 69 | endif |