| 1 |
# |
| 2 |
# Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved. |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: BSD-3-Clause |
| 5 |
# |
| 6 |
|
| 7 |
CSS_USE_SCMI_SDS_DRIVER := 1 |
| 8 |
|
| 9 |
NRD_COMMON_BASE := plat/arm/board/neoverse_rd/common |
| 10 |
|
| 11 |
ENABLE_FEAT_RAS := 1 |
| 12 |
|
| 13 |
SDEI_SUPPORT := 0 |
| 14 |
|
| 15 |
EL3_EXCEPTION_HANDLING := 0 |
| 16 |
|
| 17 |
HANDLE_EA_EL3_FIRST_NS := 0 |
| 18 |
|
| 19 |
NRD_CHIP_COUNT := 1 |
| 20 |
|
| 21 |
NRD_PLATFORM_VARIANT := 0 |
| 22 |
|
| 23 |
# Do not enable SVE |
| 24 |
ENABLE_SVE_FOR_NS := 0 |
| 25 |
|
| 26 |
CTX_INCLUDE_FPREGS := 1 |
| 27 |
|
| 28 |
INTERCONNECT_SOURCES := ${NRD_COMMON_BASE}/nrd_interconnect.c |
| 29 |
|
| 30 |
PLAT_INCLUDES += -I${NRD_COMMON_BASE}/include |
| 31 |
|
| 32 |
# GIC-600 configuration |
| 33 |
GICV3_SUPPORT_GIC600 := 1 |
| 34 |
|
| 35 |
# Include GICv3 driver files |
| 36 |
include drivers/arm/gic/v3/gicv3.mk |
| 37 |
|
| 38 |
ENT_GIC_SOURCES := ${GICV3_SOURCES} \ |
| 39 |
plat/common/plat_gicv3.c \ |
| 40 |
plat/arm/common/arm_gicv3.c |
| 41 |
|
| 42 |
PLAT_BL_COMMON_SOURCES += ${NRD_COMMON_BASE}/arch/aarch64/nrd_helper.S |
| 43 |
|
| 44 |
BL1_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 45 |
${NRD_COMMON_BASE}/nrd_bl1_setup.c \ |
| 46 |
drivers/arm/sbsa/sbsa.c |
| 47 |
|
| 48 |
BL2_SOURCES += ${NRD_COMMON_BASE}/nrd_image_load.c \ |
| 49 |
drivers/arm/css/sds/sds.c |
| 50 |
|
| 51 |
BL31_SOURCES += ${INTERCONNECT_SOURCES} \ |
| 52 |
${ENT_GIC_SOURCES} \ |
| 53 |
${NRD_COMMON_BASE}/nrd_bl31_setup.c \ |
| 54 |
${NRD_COMMON_BASE}/nrd_topology.c \ |
| 55 |
drivers/delay_timer/generic_delay_timer.c |
| 56 |
|
| 57 |
$(eval $(call add_define,NRD_CHIP_COUNT)) |
| 58 |
|
| 59 |
$(eval $(call add_define,NRD_PLATFORM_VARIANT)) |
| 60 |
|
| 61 |
override CSS_LOAD_SCP_IMAGES := 0 |
| 62 |
override NEED_BL2U := no |
| 63 |
override ARM_PLAT_MT := 1 |
| 64 |
override PSCI_EXTENDED_STATE_ID := 1 |
| 65 |
override ARM_RECOM_STATE_ID_ENC := 1 |
| 66 |
|
| 67 |
# System coherency is managed in hardware |
| 68 |
HW_ASSISTED_COHERENCY := 1 |
| 69 |
|
| 70 |
# When building for systems with hardware-assisted coherency, there's no need to |
| 71 |
# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. |
| 72 |
USE_COHERENT_MEM := 0 |
| 73 |
|
| 74 |
include plat/arm/common/arm_common.mk |
| 75 |
include plat/arm/css/common/css_common.mk |
| 76 |
include plat/arm/board/common/board_common.mk |