blob: e09405c7cff2180e9d81727cd196577c84fddb66 [file] [log] [blame]
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +05301#
Manoj Kumarc7ea5f32021-08-26 10:56:16 +05302# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Manoj Kumarc7ea5f32021-08-26 10:56:16 +05307# 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
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +053012MORELLO_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
Chandni Cherukuric5a0c372020-10-01 10:11:44 +053020# 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} \
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +053027 plat/common/plat_gicv3.c \
28 plat/arm/common/arm_gicv3.c \
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +053029
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
Manoj Kumar99529702021-09-15 12:42:49 +053041FDT_SOURCES += fdts/morello-${TARGET_PLATFORM}.dts
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +053042
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
Manoj Kumarc7ea5f32021-08-26 10:56:16 +053070# Add TARGET_PLATFORM to differentiate between Morello FVP and Morello SoC platform
71$(eval $(call add_define,TARGET_PLATFORM_$(call uppercase,${TARGET_PLATFORM})))
72
Chandni Cherukurif3a6cab2020-09-22 18:56:25 +053073include plat/arm/common/arm_common.mk
74include plat/arm/css/common/css_common.mk
75include plat/arm/board/common/board_common.mk