blob: 6cc5f461839d0b4d87c7f668a1bcdc2940939fbd [file] [log] [blame]
Usama Arife445ff82020-08-18 12:30:37 +01001# Copyright (c) 2020, 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
46TC0_CPU_SOURCES := lib/cpus/aarch64/cortex_matterhorn.S
47
48INTERCONNECT_SOURCES := ${TC0_BASE}/tc0_interconnect.c
49
50PLAT_BL_COMMON_SOURCES += ${TC0_BASE}/tc0_plat.c \
51 ${TC0_BASE}/include/tc0_helpers.S
52
53BL1_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
60BL2_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 Arife445ff82020-08-18 12:30:37 +010064 drivers/arm/tzc/tzc400.c \
65 plat/arm/common/arm_tzc400.c \
Usama Arifbec5afd2020-04-17 16:13:39 +010066 plat/arm/common/arm_nor_psci_mem_protect.c
67
68BL31_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 Badarkhe64616a52020-05-31 08:53:40 +010078FDT_SOURCES += ${TC0_BASE}/fdts/${PLAT}_fw_config.dts \
79 ${TC0_BASE}/fdts/${PLAT}_tb_fw_config.dts
80FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
81TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
Usama Arifbec5afd2020-04-17 16:13:39 +010082
Manish V Badarkhe64616a52020-05-31 08:53:40 +010083# Add the FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010084$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG}))
Usama Arifbec5afd2020-04-17 16:13:39 +010085# Add the TB_FW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +010086$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG}))
Usama Arifbec5afd2020-04-17 16:13:39 +010087
Arunachalam Ganapathyade4a202020-09-22 12:50:45 +010088ifeq (${SPD},spmd)
Arunachalam Ganapathyc44e43d2020-11-17 15:05:01 +000089ifeq ($(ARM_SPMC_MANIFEST_DTS),)
90ARM_SPMC_MANIFEST_DTS := ${TC0_BASE}/fdts/${PLAT}_spmc_manifest.dts
91endif
92
93FDT_SOURCES += ${ARM_SPMC_MANIFEST_DTS}
94TC0_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/$(notdir $(basename ${ARM_SPMC_MANIFEST_DTS})).dtb
Arunachalam Ganapathyade4a202020-09-22 12:50:45 +010095
96# Add the TOS_FW_CONFIG to FIP and specify the same to certtool
97$(eval $(call TOOL_ADD_PAYLOAD,${TC0_TOS_FW_CONFIG},--tos-fw-config,${TC0_TOS_FW_CONFIG}))
98endif
99
Usama Arifbec5afd2020-04-17 16:13:39 +0100100#Device tree
101TC0_HW_CONFIG_DTS := fdts/tc0.dts
102TC0_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb
103FDT_SOURCES += ${TC0_HW_CONFIG_DTS}
104$(eval TC0_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(TC0_HW_CONFIG_DTS)))
105
106# Add the HW_CONFIG to FIP and specify the same to certtool
Anders Dellien3f694742020-08-23 19:32:48 +0100107$(eval $(call TOOL_ADD_PAYLOAD,${TC0_HW_CONFIG},--hw-config,${TC0_HW_CONFIG}))
Usama Arifbec5afd2020-04-17 16:13:39 +0100108
109override CTX_INCLUDE_AARCH32_REGS := 0
110
111override CTX_INCLUDE_PAUTH_REGS := 1
112
Arunachalam Ganapathybe1282d2020-05-28 12:32:10 +0100113override ENABLE_SPE_FOR_LOWER_ELS := 0
114
Usama Arifbec5afd2020-04-17 16:13:39 +0100115include plat/arm/common/arm_common.mk
116include plat/arm/css/common/css_common.mk
117include plat/arm/soc/common/soc_css.mk
118include plat/arm/board/common/board_common.mk