1# 2# Copyright (c) 2020-2021, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7# Making sure the Morello platform type is specified 8ifeq ($(filter ${TARGET_PLATFORM}, fvp soc),) 9 $(error TARGET_PLATFORM must be fvp or soc) 10endif 11 12MORELLO_BASE := plat/arm/board/morello 13 14INTERCONNECT_SOURCES := ${MORELLO_BASE}/morello_interconnect.c 15 16PLAT_INCLUDES := -I${MORELLO_BASE}/include 17 18MORELLO_CPU_SOURCES := lib/cpus/aarch64/rainier.S 19 20# GIC-600 configuration 21GICV3_SUPPORT_GIC600 := 1 22 23# Include GICv3 driver files 24include drivers/arm/gic/v3/gicv3.mk 25 26MORELLO_GIC_SOURCES := ${GICV3_SOURCES} \ 27 plat/common/plat_gicv3.c \ 28 plat/arm/common/arm_gicv3.c \ 29 30PLAT_BL_COMMON_SOURCES := ${MORELLO_BASE}/morello_plat.c \ 31 ${MORELLO_BASE}/aarch64/morello_helper.S 32 33BL31_SOURCES := ${MORELLO_CPU_SOURCES} \ 34 ${INTERCONNECT_SOURCES} \ 35 ${MORELLO_GIC_SOURCES} \ 36 ${MORELLO_BASE}/morello_bl31_setup.c \ 37 ${MORELLO_BASE}/morello_topology.c \ 38 ${MORELLO_BASE}/morello_security.c \ 39 drivers/arm/css/sds/sds.c 40 41FDT_SOURCES += fdts/morello-${TARGET_PLATFORM}.dts 42 43# TF-A not required to load the SCP Images 44override CSS_LOAD_SCP_IMAGES := 0 45 46# BL1/BL2 Image not a part of the capsule Image for morello 47override NEED_BL1 := no 48override NEED_BL2 := no 49override NEED_BL2U := no 50 51#TF-A for morello starts from BL31 52override RESET_TO_BL31 := 1 53 54# 32 bit mode not supported 55override CTX_INCLUDE_AARCH32_REGS := 0 56 57override ARM_PLAT_MT := 1 58 59# Select SCMI/SDS drivers instead of SCPI/BOM driver for communicating with the 60# SCP during power management operations and for SCP RAM Firmware transfer. 61CSS_USE_SCMI_SDS_DRIVER := 1 62 63# System coherency is managed in hardware 64HW_ASSISTED_COHERENCY := 1 65 66# When building for systems with hardware-assisted coherency, there's no need to 67# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. 68USE_COHERENT_MEM := 0 69 70# Add TARGET_PLATFORM to differentiate between Morello FVP and Morello SoC platform 71$(eval $(call add_define,TARGET_PLATFORM_$(call uppercase,${TARGET_PLATFORM}))) 72 73include plat/arm/common/arm_common.mk 74include plat/arm/css/common/css_common.mk 75include plat/arm/board/common/board_common.mk 76