Usama Arif | bdd2bc9 | 2021-01-29 14:18:03 +0000 | [diff] [blame] | 1 | # Copyright (c) 2020-2021, 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 | |
Avinash Mehta | f68a084 | 2020-10-28 16:43:28 +0000 | [diff] [blame] | 46 | TC0_CPU_SOURCES := lib/cpus/aarch64/cortex_klein.S \ |
Usama Arif | bdd2bc9 | 2021-01-29 14:18:03 +0000 | [diff] [blame] | 47 | lib/cpus/aarch64/cortex_matterhorn.S \ |
| 48 | lib/cpus/aarch64/cortex_matterhorn_elp_arm.S |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 49 | |
| 50 | INTERCONNECT_SOURCES := ${TC0_BASE}/tc0_interconnect.c |
| 51 | |
| 52 | PLAT_BL_COMMON_SOURCES += ${TC0_BASE}/tc0_plat.c \ |
| 53 | ${TC0_BASE}/include/tc0_helpers.S |
| 54 | |
| 55 | BL1_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 56 | ${TC0_CPU_SOURCES} \ |
| 57 | ${TC0_BASE}/tc0_trusted_boot.c \ |
| 58 | ${TC0_BASE}/tc0_err.c \ |
| 59 | drivers/arm/sbsa/sbsa.c |
| 60 | |
| 61 | |
| 62 | BL2_SOURCES += ${TC0_BASE}/tc0_security.c \ |
| 63 | ${TC0_BASE}/tc0_err.c \ |
| 64 | ${TC0_BASE}/tc0_trusted_boot.c \ |
| 65 | lib/utils/mem_region.c \ |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 66 | drivers/arm/tzc/tzc400.c \ |
| 67 | plat/arm/common/arm_tzc400.c \ |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 68 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 69 | |
| 70 | BL31_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 71 | ${TC0_CPU_SOURCES} \ |
| 72 | ${ENT_GIC_SOURCES} \ |
| 73 | ${TC0_BASE}/tc0_bl31_setup.c \ |
| 74 | ${TC0_BASE}/tc0_topology.c \ |
| 75 | drivers/cfi/v2m/v2m_flash.c \ |
| 76 | lib/utils/mem_region.c \ |
| 77 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 78 | |
| 79 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 80 | FDT_SOURCES += ${TC0_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 81 | ${TC0_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 82 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 83 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 84 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 85 | # Add the 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,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 87 | # 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] | 88 | $(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] | 89 | |
Arunachalam Ganapathy | ade4a20 | 2020-09-22 12:50:45 +0100 | [diff] [blame] | 90 | ifeq (${SPD},spmd) |
Arunachalam Ganapathy | c44e43d | 2020-11-17 15:05:01 +0000 | [diff] [blame] | 91 | ifeq ($(ARM_SPMC_MANIFEST_DTS),) |
| 92 | ARM_SPMC_MANIFEST_DTS := ${TC0_BASE}/fdts/${PLAT}_spmc_manifest.dts |
| 93 | endif |
| 94 | |
| 95 | FDT_SOURCES += ${ARM_SPMC_MANIFEST_DTS} |
| 96 | TC0_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/$(notdir $(basename ${ARM_SPMC_MANIFEST_DTS})).dtb |
Arunachalam Ganapathy | ade4a20 | 2020-09-22 12:50:45 +0100 | [diff] [blame] | 97 | |
| 98 | # Add the TOS_FW_CONFIG to FIP and specify the same to certtool |
| 99 | $(eval $(call TOOL_ADD_PAYLOAD,${TC0_TOS_FW_CONFIG},--tos-fw-config,${TC0_TOS_FW_CONFIG})) |
| 100 | endif |
| 101 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 102 | #Device tree |
| 103 | TC0_HW_CONFIG_DTS := fdts/tc0.dts |
| 104 | TC0_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb |
| 105 | FDT_SOURCES += ${TC0_HW_CONFIG_DTS} |
| 106 | $(eval TC0_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(TC0_HW_CONFIG_DTS))) |
| 107 | |
| 108 | # Add the HW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 109 | $(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] | 110 | |
| 111 | override CTX_INCLUDE_AARCH32_REGS := 0 |
| 112 | |
| 113 | override CTX_INCLUDE_PAUTH_REGS := 1 |
| 114 | |
Arunachalam Ganapathy | be1282d | 2020-05-28 12:32:10 +0100 | [diff] [blame] | 115 | override ENABLE_SPE_FOR_LOWER_ELS := 0 |
| 116 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 117 | include plat/arm/common/arm_common.mk |
| 118 | include plat/arm/css/common/css_common.mk |
| 119 | include plat/arm/soc/common/soc_css.mk |
| 120 | include plat/arm/board/common/board_common.mk |