Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 1 | # |
Manoj Kumar | c7ea5f3 | 2021-08-26 10:56:16 +0530 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Manoj Kumar | c7ea5f3 | 2021-08-26 10:56:16 +0530 | [diff] [blame] | 7 | # Making sure the Morello platform type is specified |
| 8 | ifeq ($(filter ${TARGET_PLATFORM}, fvp soc),) |
| 9 | $(error TARGET_PLATFORM must be fvp or soc) |
| 10 | endif |
| 11 | |
Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 12 | MORELLO_BASE := plat/arm/board/morello |
| 13 | |
| 14 | INTERCONNECT_SOURCES := ${MORELLO_BASE}/morello_interconnect.c |
| 15 | |
| 16 | PLAT_INCLUDES := -I${MORELLO_BASE}/include |
| 17 | |
| 18 | MORELLO_CPU_SOURCES := lib/cpus/aarch64/rainier.S |
| 19 | |
Chandni Cherukuri | c5a0c37 | 2020-10-01 10:11:44 +0530 | [diff] [blame] | 20 | # GIC-600 configuration |
| 21 | GICV3_SUPPORT_GIC600 := 1 |
| 22 | |
| 23 | # Include GICv3 driver files |
| 24 | include drivers/arm/gic/v3/gicv3.mk |
| 25 | |
| 26 | MORELLO_GIC_SOURCES := ${GICV3_SOURCES} \ |
Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 27 | plat/common/plat_gicv3.c \ |
| 28 | plat/arm/common/arm_gicv3.c \ |
Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 29 | |
| 30 | PLAT_BL_COMMON_SOURCES := ${MORELLO_BASE}/morello_plat.c \ |
| 31 | ${MORELLO_BASE}/aarch64/morello_helper.S |
| 32 | |
| 33 | BL31_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 Kumar | 9952970 | 2021-09-15 12:42:49 +0530 | [diff] [blame^] | 41 | FDT_SOURCES += fdts/morello-${TARGET_PLATFORM}.dts |
Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 42 | |
| 43 | # TF-A not required to load the SCP Images |
| 44 | override CSS_LOAD_SCP_IMAGES := 0 |
| 45 | |
| 46 | # BL1/BL2 Image not a part of the capsule Image for morello |
| 47 | override NEED_BL1 := no |
| 48 | override NEED_BL2 := no |
| 49 | override NEED_BL2U := no |
| 50 | |
| 51 | #TF-A for morello starts from BL31 |
| 52 | override RESET_TO_BL31 := 1 |
| 53 | |
| 54 | # 32 bit mode not supported |
| 55 | override CTX_INCLUDE_AARCH32_REGS := 0 |
| 56 | |
| 57 | override 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. |
| 61 | CSS_USE_SCMI_SDS_DRIVER := 1 |
| 62 | |
| 63 | # System coherency is managed in hardware |
| 64 | HW_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. |
| 68 | USE_COHERENT_MEM := 0 |
| 69 | |
Manoj Kumar | c7ea5f3 | 2021-08-26 10:56:16 +0530 | [diff] [blame] | 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 | |
Chandni Cherukuri | f3a6cab | 2020-09-22 18:56:25 +0530 | [diff] [blame] | 73 | include plat/arm/common/arm_common.mk |
| 74 | include plat/arm/css/common/css_common.mk |
| 75 | include plat/arm/board/common/board_common.mk |