|
|
@ -1,8 +1,12 @@ |
|
|
|
# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
|
|
|
|
# Copyright (c) 2021, Arm Limited. All rights reserved.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(filter ${TARGET_PLATFORM}, 0 1),) |
|
|
|
$(error TARGET_PLATFORM must be 0 or 1) |
|
|
|
endif |
|
|
|
|
|
|
|
CSS_LOAD_SCP_IMAGES := 1 |
|
|
|
|
|
|
|
CSS_USE_SCMI_SDS_DRIVER := 1 |
|
|
@ -39,46 +43,57 @@ override NEED_BL2U := no |
|
|
|
|
|
|
|
override ARM_PLAT_MT := 1 |
|
|
|
|
|
|
|
TC0_BASE = plat/arm/board/tc0 |
|
|
|
TC_BASE = plat/arm/board/tc |
|
|
|
|
|
|
|
PLAT_INCLUDES += -I${TC_BASE}/include/ |
|
|
|
|
|
|
|
PLAT_INCLUDES += -I${TC0_BASE}/include/ |
|
|
|
# Common CPU libraries
|
|
|
|
TC_CPU_SOURCES := lib/cpus/aarch64/cortex_a510.S |
|
|
|
|
|
|
|
TC0_CPU_SOURCES := lib/cpus/aarch64/cortex_a510.S \
|
|
|
|
lib/cpus/aarch64/cortex_a710.S \
|
|
|
|
# CPU libraries for TARGET_PLATFORM=0
|
|
|
|
ifeq (${TARGET_PLATFORM}, 0) |
|
|
|
TC_CPU_SOURCES += lib/cpus/aarch64/cortex_a710.S \
|
|
|
|
lib/cpus/aarch64/cortex_x2.S |
|
|
|
endif |
|
|
|
|
|
|
|
# CPU libraries for TARGET_PLATFORM=1
|
|
|
|
ifeq (${TARGET_PLATFORM}, 1) |
|
|
|
TC_CPU_SOURCES += lib/cpus/aarch64/cortex_makalu.S \
|
|
|
|
lib/cpus/aarch64/cortex_makalu_elp_arm.S |
|
|
|
endif |
|
|
|
|
|
|
|
INTERCONNECT_SOURCES := ${TC0_BASE}/tc0_interconnect.c |
|
|
|
INTERCONNECT_SOURCES := ${TC_BASE}/tc_interconnect.c |
|
|
|
|
|
|
|
PLAT_BL_COMMON_SOURCES += ${TC0_BASE}/tc0_plat.c \
|
|
|
|
${TC0_BASE}/include/tc0_helpers.S |
|
|
|
PLAT_BL_COMMON_SOURCES += ${TC_BASE}/tc_plat.c \
|
|
|
|
${TC_BASE}/include/tc_helpers.S |
|
|
|
|
|
|
|
BL1_SOURCES += ${INTERCONNECT_SOURCES} \
|
|
|
|
${TC0_CPU_SOURCES} \
|
|
|
|
${TC0_BASE}/tc0_trusted_boot.c \
|
|
|
|
${TC0_BASE}/tc0_err.c \
|
|
|
|
${TC_CPU_SOURCES} \
|
|
|
|
${TC_BASE}/tc_trusted_boot.c \
|
|
|
|
${TC_BASE}/tc_err.c \
|
|
|
|
drivers/arm/sbsa/sbsa.c |
|
|
|
|
|
|
|
|
|
|
|
BL2_SOURCES += ${TC0_BASE}/tc0_security.c \
|
|
|
|
${TC0_BASE}/tc0_err.c \
|
|
|
|
${TC0_BASE}/tc0_trusted_boot.c \
|
|
|
|
BL2_SOURCES += ${TC_BASE}/tc_security.c \
|
|
|
|
${TC_BASE}/tc_err.c \
|
|
|
|
${TC_BASE}/tc_trusted_boot.c \
|
|
|
|
lib/utils/mem_region.c \
|
|
|
|
drivers/arm/tzc/tzc400.c \
|
|
|
|
plat/arm/common/arm_tzc400.c \
|
|
|
|
plat/arm/common/arm_nor_psci_mem_protect.c |
|
|
|
|
|
|
|
BL31_SOURCES += ${INTERCONNECT_SOURCES} \
|
|
|
|
${TC0_CPU_SOURCES} \
|
|
|
|
${TC_CPU_SOURCES} \
|
|
|
|
${ENT_GIC_SOURCES} \
|
|
|
|
${TC0_BASE}/tc0_bl31_setup.c \
|
|
|
|
${TC0_BASE}/tc0_topology.c \
|
|
|
|
${TC_BASE}/tc_bl31_setup.c \
|
|
|
|
${TC_BASE}/tc_topology.c \
|
|
|
|
drivers/cfi/v2m/v2m_flash.c \
|
|
|
|
lib/utils/mem_region.c \
|
|
|
|
plat/arm/common/arm_nor_psci_mem_protect.c |
|
|
|
|
|
|
|
# Add the FDT_SOURCES and options for Dynamic Config
|
|
|
|
FDT_SOURCES += ${TC0_BASE}/fdts/${PLAT}_fw_config.dts \
|
|
|
|
${TC0_BASE}/fdts/${PLAT}_tb_fw_config.dts |
|
|
|
FDT_SOURCES += ${TC_BASE}/fdts/${PLAT}_fw_config.dts \
|
|
|
|
${TC_BASE}/fdts/${PLAT}_tb_fw_config.dts |
|
|
|
FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
|
|
|
TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
|
|
|
|
|
|
@ -89,24 +104,24 @@ $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) |
|
|
|
|
|
|
|
ifeq (${SPD},spmd) |
|
|
|
ifeq ($(ARM_SPMC_MANIFEST_DTS),) |
|
|
|
ARM_SPMC_MANIFEST_DTS := ${TC0_BASE}/fdts/${PLAT}_spmc_manifest.dts |
|
|
|
ARM_SPMC_MANIFEST_DTS := ${TC_BASE}/fdts/${PLAT}_spmc_manifest.dts |
|
|
|
endif |
|
|
|
|
|
|
|
FDT_SOURCES += ${ARM_SPMC_MANIFEST_DTS} |
|
|
|
TC0_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/$(notdir $(basename ${ARM_SPMC_MANIFEST_DTS})).dtb |
|
|
|
TC_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/$(notdir $(basename ${ARM_SPMC_MANIFEST_DTS})).dtb |
|
|
|
|
|
|
|
# Add the TOS_FW_CONFIG to FIP and specify the same to certtool
|
|
|
|
$(eval $(call TOOL_ADD_PAYLOAD,${TC0_TOS_FW_CONFIG},--tos-fw-config,${TC0_TOS_FW_CONFIG})) |
|
|
|
$(eval $(call TOOL_ADD_PAYLOAD,${TC_TOS_FW_CONFIG},--tos-fw-config,${TC_TOS_FW_CONFIG})) |
|
|
|
endif |
|
|
|
|
|
|
|
#Device tree
|
|
|
|
TC0_HW_CONFIG_DTS := fdts/tc0.dts |
|
|
|
TC0_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb |
|
|
|
FDT_SOURCES += ${TC0_HW_CONFIG_DTS} |
|
|
|
$(eval TC0_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(TC0_HW_CONFIG_DTS))) |
|
|
|
TC_HW_CONFIG_DTS := fdts/tc.dts |
|
|
|
TC_HW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}.dtb |
|
|
|
FDT_SOURCES += ${TC_HW_CONFIG_DTS} |
|
|
|
$(eval TC_HW_CONFIG := ${BUILD_PLAT}/$(patsubst %.dts,%.dtb,$(TC_HW_CONFIG_DTS))) |
|
|
|
|
|
|
|
# Add the HW_CONFIG to FIP and specify the same to certtool
|
|
|
|
$(eval $(call TOOL_ADD_PAYLOAD,${TC0_HW_CONFIG},--hw-config,${TC0_HW_CONFIG})) |
|
|
|
$(eval $(call TOOL_ADD_PAYLOAD,${TC_HW_CONFIG},--hw-config,${TC_HW_CONFIG})) |
|
|
|
|
|
|
|
override CTX_INCLUDE_AARCH32_REGS := 0 |
|
|
|
|