blob: 20ea6e3da490830b225af87db2f422b460c413da [file] [log] [blame]
Usama Arifbdd2bc92021-01-29 14:18:03 +00001# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Usama Arifbec5afd2020-04-17 16:13:39 +01002#
3# SPDX-License-Identifier: BSD-3-Clause
4#
5
6CSS_LOAD_SCP_IMAGES := 1
7
8CSS_USE_SCMI_SDS_DRIVER := 1
9
10RAS_EXTENSION := 0
11
12SDEI_SUPPORT := 0
13
14EL3_EXCEPTION_HANDLING := 0
15
16HANDLE_EA_EL3_FIRST := 0
17
18# System coherency is managed in hardware
19HW_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.
23USE_COHERENT_MEM := 0
24
25GIC_ENABLE_V4_EXTN := 1
26
27# GIC-600 configuration
Andre Przywarae1cc1302020-03-25 15:50:38 +000028GICV3_SUPPORT_GIC600 := 1
29
Usama Arifbec5afd2020-04-17 16:13:39 +010030
31# Include GICv3 driver files
32include drivers/arm/gic/v3/gicv3.mk
33
34ENT_GIC_SOURCES := ${GICV3_SOURCES} \
35 plat/common/plat_gicv3.c \
36 plat/arm/common/arm_gicv3.c
37
38override NEED_BL2U := no
39
40override ARM_PLAT_MT := 1
41
42TC0_BASE = plat/arm/board/tc0
43
44PLAT_INCLUDES += -I${TC0_BASE}/include/
45
Avinash Mehtaf68a0842020-10-28 16:43:28 +000046TC0_CPU_SOURCES := lib/cpus/aarch64/cortex_klein.S \
Usama Arifbdd2bc92021-01-29 14:18:03 +000047 lib/cpus/aarch64/cortex_matterhorn.S \
48 lib/cpus/aarch64/cortex_matterhorn_elp_arm.S
Usama Arifbec5afd2020-04-17 16:13:39 +010049
50INTERCONNECT_SOURCES := ${TC0_BASE}/tc0_interconnect.c
51
52PLAT_BL_COMMON_SOURCES += ${TC0_BASE}/tc0_plat.c \
53 ${TC0_BASE}/include/tc0_helpers.S
54
55BL1_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
62BL2_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 Arife445ff82020-08-18 12:30:37 +010066 drivers/arm/tzc/tzc400.c \
67 plat/arm/common/arm_tzc400.c \
Usama Arifbec5afd2020-04-17 16:13:39 +010068 plat/arm/common/arm_nor_psci_mem_protect.c
69
70BL31_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 Badarkhe64616a52020-05-31 08:53:40 +010080FDT_SOURCES += ${TC0_BASE}/fdts/${PLAT}_fw_config.dts \
81 ${TC0_BASE}/fdts/${PLAT}_tb_fw_config.dts
82FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
83TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
Usama Arifbec5afd2020-04-17 16:13:39 +010084
Manish V Badarkhe64616a52020-05-31 08:53:40 +010085# Add the FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010086$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG}))
Usama Arifbec5afd2020-04-17 16:13:39 +010087# Add the TB_FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010088$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG}))
Usama Arifbec5afd2020-04-17 16:13:39 +010089
Arunachalam Ganapathyade4a202020-09-22 12:50:45 +010090ifeq (${SPD},spmd)
Arunachalam Ganapathyc44e43d2020-11-17 15:05:01 +000091ifeq ($(ARM_SPMC_MANIFEST_DTS),)
92ARM_SPMC_MANIFEST_DTS := ${TC0_BASE}/fdts/${PLAT}_spmc_manifest.dts
93endif
94
95FDT_SOURCES += ${ARM_SPMC_MANIFEST_DTS}
96TC0_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/$(notdir $(basename ${ARM_SPMC_MANIFEST_DTS})).dtb
Arunachalam Ganapathyade4a202020-09-22 12:50:45 +010097
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}))
100endif
101
Usama Arifbec5afd2020-04-17 16:13:39 +0100102#Device tree
103TC0_HW_CONFIG_DTS := fdts/tc0.dts
104TC0_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
105FDT_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 Dellien3f694742020-08-23 19:32:48 +0100109$(eval $(call TOOL_ADD_PAYLOAD,${TC0_HW_CONFIG},--hw-config,${TC0_HW_CONFIG}))
Usama Arifbec5afd2020-04-17 16:13:39 +0100110
111override CTX_INCLUDE_AARCH32_REGS := 0
112
113override CTX_INCLUDE_PAUTH_REGS := 1
114
Arunachalam Ganapathybe1282d2020-05-28 12:32:10 +0100115override ENABLE_SPE_FOR_LOWER_ELS := 0
116
Usama Arifbec5afd2020-04-17 16:13:39 +0100117include plat/arm/common/arm_common.mk
118include plat/arm/css/common/css_common.mk
119include plat/arm/soc/common/soc_css.mk
120include plat/arm/board/common/board_common.mk