Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 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 MULTI_CONSOLE_API := 1 |
| 9 | override PROGRAMMABLE_RESET_ADDRESS := 1 |
| 10 | override USE_COHERENT_MEM := 1 |
| 11 | override SEPARATE_CODE_AND_RODATA := 1 |
| 12 | override ENABLE_SVE_FOR_NS := 0 |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 13 | # Enable workarounds for selected Cortex-A53 erratas. |
| 14 | ERRATA_A53_855873 := 1 |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 15 | # Enable SCMI support |
| 16 | SQ_USE_SCMI_DRIVER ?= 0 |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 17 | |
| 18 | # Libraries |
| 19 | include lib/xlat_tables_v2/xlat_tables.mk |
| 20 | |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 21 | PLAT_PATH := plat/socionext/synquacer |
| 22 | PLAT_INCLUDES := -I$(PLAT_PATH)/include \ |
| 23 | -I$(PLAT_PATH)/drivers/scpi \ |
Masahisa Kojima | ebfd8eb | 2019-03-07 10:41:54 +0900 | [diff] [blame] | 24 | -I$(PLAT_PATH)/drivers/mhu \ |
| 25 | -Idrivers/arm/css/scmi \ |
| 26 | -Idrivers/arm/css/scmi/vendor |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 27 | |
| 28 | PLAT_BL_COMMON_SOURCES += $(PLAT_PATH)/sq_helpers.S \ |
Antonio Nino Diaz | 1d1b4f6 | 2018-09-24 17:16:30 +0100 | [diff] [blame] | 29 | drivers/arm/pl011/aarch64/pl011_console.S \ |
Sumit Garg | 760c1d3 | 2018-06-21 11:28:18 +0530 | [diff] [blame] | 30 | drivers/delay_timer/delay_timer.c \ |
| 31 | drivers/delay_timer/generic_delay_timer.c \ |
| 32 | ${XLAT_TABLES_LIB_SRCS} |
| 33 | |
| 34 | BL31_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 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 | |
| 61 | ifeq (${ENABLE_SPM},1) |
| 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 |