Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 1 | # |
Paul Beesley | fe975b4 | 2019-09-16 11:29:03 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2019, 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 | |
| 33 | BL31_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 Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 45 | $(PLAT_PATH)/sq_xlat_setup.c \ |
| 46 | $(PLAT_PATH)/drivers/scp/sq_scp.c |
| 47 | |
| 48 | ifeq (${SQ_USE_SCMI_DRIVER},0) |
| 49 | BL31_SOURCES += $(PLAT_PATH)/drivers/scpi/sq_scpi.c \ |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 50 | $(PLAT_PATH)/drivers/mhu/sq_mhu.c |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 51 | else |
| 52 | BL31_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 |
| 58 | endif |
Ard Biesheuvel | c0415c6 | 2018-12-29 19:44:35 +0100 | [diff] [blame] | 59 | |
Paul Beesley | fe975b4 | 2019-09-16 11:29:03 +0000 | [diff] [blame] | 60 | ifeq (${SPM_MM},1) |
Ard Biesheuvel | c0415c6 | 2018-12-29 19:44:35 +0100 | [diff] [blame] | 61 | $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT)) |
| 62 | |
| 63 | BL31_SOURCES += $(PLAT_PATH)/sq_spm.c |
| 64 | endif |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 65 | |
| 66 | ifeq (${SQ_USE_SCMI_DRIVER},1) |
| 67 | $(eval $(call add_define,SQ_USE_SCMI_DRIVER)) |
| 68 | endif |