| 1 |
# |
| 2 |
# Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved. |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: BSD-3-Clause |
| 5 |
# |
| 6 |
|
| 7 |
# GIC-600 configuration |
| 8 |
GICV3_IMPL_GIC600_MULTICHIP := 1 |
| 9 |
|
| 10 |
include plat/arm/board/neoverse_rd/common/nrd-common.mk |
| 11 |
|
| 12 |
RDN1EDGE_BASE = plat/arm/board/neoverse_rd/platform/rdn1edge |
| 13 |
|
| 14 |
PLAT_INCLUDES += -I${NRD_COMMON_BASE}/include/nrd1/ \ |
| 15 |
-I${RDN1EDGE_BASE}/include/ |
| 16 |
|
| 17 |
NRD_CPU_SOURCES := lib/cpus/aarch64/neoverse_n1.S |
| 18 |
|
| 19 |
PLAT_BL_COMMON_SOURCES += ${NRD_COMMON_BASE}/nrd_plat1.c |
| 20 |
|
| 21 |
BL1_SOURCES += ${NRD_CPU_SOURCES} \ |
| 22 |
${RDN1EDGE_BASE}/rdn1edge_err.c |
| 23 |
|
| 24 |
BL2_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_plat.c \ |
| 25 |
${RDN1EDGE_BASE}/rdn1edge_security.c \ |
| 26 |
${RDN1EDGE_BASE}/rdn1edge_err.c \ |
| 27 |
drivers/arm/tzc/tzc_dmc620.c \ |
| 28 |
lib/utils/mem_region.c \ |
| 29 |
plat/arm/common/arm_nor_psci_mem_protect.c |
| 30 |
|
| 31 |
BL31_SOURCES += ${NRD_CPU_SOURCES} \ |
| 32 |
${RDN1EDGE_BASE}/rdn1edge_plat.c \ |
| 33 |
${RDN1EDGE_BASE}/rdn1edge_topology.c \ |
| 34 |
drivers/cfi/v2m/v2m_flash.c \ |
| 35 |
lib/utils/mem_region.c \ |
| 36 |
plat/arm/common/arm_nor_psci_mem_protect.c |
| 37 |
|
| 38 |
ifeq (${TRUSTED_BOARD_BOOT}, 1) |
| 39 |
BL1_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_trusted_boot.c |
| 40 |
BL2_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_trusted_boot.c |
| 41 |
endif |
| 42 |
|
| 43 |
# Enable dynamic addition of MMAP regions in BL31 |
| 44 |
BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC |
| 45 |
|
| 46 |
# Add the FDT_SOURCES and options for Dynamic Config |
| 47 |
FDT_SOURCES += ${RDN1EDGE_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 48 |
${RDN1EDGE_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 49 |
FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 50 |
TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
| 51 |
|
| 52 |
# Add the FW_CONFIG to FIP and specify the same to certtool |
| 53 |
$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
| 54 |
# Add the TB_FW_CONFIG to FIP and specify the same to certtool |
| 55 |
$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) |
| 56 |
|
| 57 |
FDT_SOURCES += ${RDN1EDGE_BASE}/fdts/${PLAT}_nt_fw_config.dts |
| 58 |
NT_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_nt_fw_config.dtb |
| 59 |
|
| 60 |
# Add the NT_FW_CONFIG to FIP and specify the same to certtool |
| 61 |
$(eval $(call TOOL_ADD_PAYLOAD,${NT_FW_CONFIG},--nt-fw-config,${NT_FW_CONFIG})) |
| 62 |
|
| 63 |
$(eval $(call CREATE_SEQ,SEQ,2)) |
| 64 |
ifneq ($(NRD_CHIP_COUNT),$(filter $(NRD_CHIP_COUNT),$(SEQ))) |
| 65 |
$(error "Chip count for RDN1Edge platform should be one of $(SEQ), currently \ |
| 66 |
set to ${NRD_CHIP_COUNT}.") |
| 67 |
endif |
| 68 |
|
| 69 |
ifneq ($(NRD_PLATFORM_VARIANT),0) |
| 70 |
$(error "NRD_PLATFORM_VARIANT for RD-N1-Edge should always be 0, \ |
| 71 |
currently set to ${NRD_PLATFORM_VARIANT}.") |
| 72 |
endif |
| 73 |
|
| 74 |
ifneq (${RESET_TO_BL31},0) |
| 75 |
$(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \ |
| 76 |
Please set RESET_TO_BL31 to 0.") |
| 77 |
endif |
| 78 |
|
| 79 |
override CTX_INCLUDE_AARCH32_REGS := 0 |
| 80 |
override SPMD_SPM_AT_SEL2 := 0 |
| 81 |
|
| 82 |
# Enable the flag since RD-N1-EDGE has a system level cache |
| 83 |
NEOVERSE_Nx_EXTERNAL_LLC := 1 |