Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 1 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | # |
| 5 | |
| 6 | CSS_LOAD_SCP_IMAGES := 1 |
| 7 | |
| 8 | CSS_USE_SCMI_SDS_DRIVER := 1 |
| 9 | |
| 10 | RAS_EXTENSION := 0 |
| 11 | |
| 12 | SDEI_SUPPORT := 0 |
| 13 | |
| 14 | EL3_EXCEPTION_HANDLING := 0 |
| 15 | |
| 16 | HANDLE_EA_EL3_FIRST := 0 |
| 17 | |
| 18 | # System coherency is managed in hardware |
| 19 | HW_ASSISTED_COHERENCY := 1 |
| 20 | |
| 21 | # When building for systems with hardware-assisted coherency, there's no need to |
| 22 | # use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. |
| 23 | USE_COHERENT_MEM := 0 |
| 24 | |
| 25 | GIC_ENABLE_V4_EXTN := 1 |
| 26 | |
| 27 | # GIC-600 configuration |
Andre Przywara | e1cc130 | 2020-03-25 15:50:38 +0000 | [diff] [blame] | 28 | GICV3_SUPPORT_GIC600 := 1 |
| 29 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 30 | |
| 31 | # Include GICv3 driver files |
| 32 | include drivers/arm/gic/v3/gicv3.mk |
| 33 | |
| 34 | ENT_GIC_SOURCES := ${GICV3_SOURCES} \ |
| 35 | plat/common/plat_gicv3.c \ |
| 36 | plat/arm/common/arm_gicv3.c |
| 37 | |
| 38 | override NEED_BL2U := no |
| 39 | |
| 40 | override ARM_PLAT_MT := 1 |
| 41 | |
| 42 | TC0_BASE = plat/arm/board/tc0 |
| 43 | |
| 44 | PLAT_INCLUDES += -I${TC0_BASE}/include/ |
| 45 | |
| 46 | TC0_CPU_SOURCES := lib/cpus/aarch64/cortex_matterhorn.S |
| 47 | |
| 48 | INTERCONNECT_SOURCES := ${TC0_BASE}/tc0_interconnect.c |
| 49 | |
| 50 | PLAT_BL_COMMON_SOURCES += ${TC0_BASE}/tc0_plat.c \ |
| 51 | ${TC0_BASE}/include/tc0_helpers.S |
| 52 | |
| 53 | BL1_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 54 | ${TC0_CPU_SOURCES} \ |
| 55 | ${TC0_BASE}/tc0_trusted_boot.c \ |
| 56 | ${TC0_BASE}/tc0_err.c \ |
| 57 | drivers/arm/sbsa/sbsa.c |
| 58 | |
| 59 | |
| 60 | BL2_SOURCES += ${TC0_BASE}/tc0_security.c \ |
| 61 | ${TC0_BASE}/tc0_err.c \ |
| 62 | ${TC0_BASE}/tc0_trusted_boot.c \ |
| 63 | lib/utils/mem_region.c \ |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 64 | drivers/arm/tzc/tzc400.c \ |
| 65 | plat/arm/common/arm_tzc400.c \ |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 66 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 67 | |
| 68 | BL31_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 69 | ${TC0_CPU_SOURCES} \ |
| 70 | ${ENT_GIC_SOURCES} \ |
| 71 | ${TC0_BASE}/tc0_bl31_setup.c \ |
| 72 | ${TC0_BASE}/tc0_topology.c \ |
| 73 | drivers/cfi/v2m/v2m_flash.c \ |
| 74 | lib/utils/mem_region.c \ |
| 75 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 76 | |
| 77 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 78 | FDT_SOURCES += ${TC0_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 79 | ${TC0_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 80 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 81 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 82 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 83 | # Add the FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 84 | $(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 85 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 86 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 87 | |
Arunachalam Ganapathy | ade4a20 | 2020-09-22 12:50:45 +0100 | [diff] [blame] | 88 | ifeq (${SPD},spmd) |
| 89 | FDT_SOURCES += ${TC0_BASE}/fdts/${PLAT}_spmc_manifest.dts |
| 90 | TC0_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_spmc_manifest.dtb |
| 91 | |
| 92 | # Add the TOS_FW_CONFIG to FIP and specify the same to certtool |
| 93 | $(eval $(call TOOL_ADD_PAYLOAD,${TC0_TOS_FW_CONFIG},--tos-fw-config,${TC0_TOS_FW_CONFIG})) |
| 94 | endif |
| 95 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 96 | #Device tree |
| 97 | TC0_HW_CONFIG_DTS := fdts/tc0.dts |
| 98 | TC0_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb |
| 99 | FDT_SOURCES += ${TC0_HW_CONFIG_DTS} |
| 100 | $(eval TC0_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(TC0_HW_CONFIG_DTS))) |
| 101 | |
| 102 | # Add the HW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 103 | $(eval $(call TOOL_ADD_PAYLOAD,${TC0_HW_CONFIG},--hw-config,${TC0_HW_CONFIG})) |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 104 | |
| 105 | override CTX_INCLUDE_AARCH32_REGS := 0 |
| 106 | |
| 107 | override CTX_INCLUDE_PAUTH_REGS := 1 |
| 108 | |
Arunachalam Ganapathy | be1282d | 2020-05-28 12:32:10 +0100 | [diff] [blame] | 109 | override ENABLE_SPE_FOR_LOWER_ELS := 0 |
| 110 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 111 | include plat/arm/common/arm_common.mk |
| 112 | include plat/arm/css/common/css_common.mk |
| 113 | include plat/arm/soc/common/soc_css.mk |
| 114 | include plat/arm/board/common/board_common.mk |