1# 2# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7# GIC-600 configuration 8GICV3_IMPL_GIC600_MULTICHIP := 1 9 10include plat/arm/css/sgi/sgi-common.mk 11 12RDN1EDGE_BASE = plat/arm/board/rdn1edge 13 14PLAT_INCLUDES += -I${RDN1EDGE_BASE}/include/ 15 16SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_n1.S 17 18PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c 19 20BL1_SOURCES += ${SGI_CPU_SOURCES} \ 21 ${RDN1EDGE_BASE}/rdn1edge_err.c 22 23BL2_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_plat.c \ 24 ${RDN1EDGE_BASE}/rdn1edge_security.c \ 25 ${RDN1EDGE_BASE}/rdn1edge_err.c \ 26 drivers/arm/tzc/tzc_dmc620.c \ 27 lib/utils/mem_region.c \ 28 plat/arm/common/arm_nor_psci_mem_protect.c 29 30BL31_SOURCES += ${SGI_CPU_SOURCES} \ 31 ${RDN1EDGE_BASE}/rdn1edge_plat.c \ 32 ${RDN1EDGE_BASE}/rdn1edge_topology.c \ 33 drivers/cfi/v2m/v2m_flash.c \ 34 lib/utils/mem_region.c \ 35 plat/arm/common/arm_nor_psci_mem_protect.c 36 37ifeq (${TRUSTED_BOARD_BOOT}, 1) 38BL1_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_trusted_boot.c 39BL2_SOURCES += ${RDN1EDGE_BASE}/rdn1edge_trusted_boot.c 40endif 41 42# Enable dynamic addition of MMAP regions in BL31 43BL31_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC 44 45# Add the FDT_SOURCES and options for Dynamic Config 46FDT_SOURCES += ${RDN1EDGE_BASE}/fdts/${PLAT}_fw_config.dts \ 47 ${RDN1EDGE_BASE}/fdts/${PLAT}_tb_fw_config.dts 48FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb 49TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb 50 51# Add the FW_CONFIG to FIP and specify the same to certtool 52$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) 53# Add the TB_FW_CONFIG to FIP and specify the same to certtool 54$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) 55 56FDT_SOURCES += ${RDN1EDGE_BASE}/fdts/${PLAT}_nt_fw_config.dts 57NT_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_nt_fw_config.dtb 58 59# Add the NT_FW_CONFIG to FIP and specify the same to certtool 60$(eval $(call TOOL_ADD_PAYLOAD,${NT_FW_CONFIG},--nt-fw-config,${NT_FW_CONFIG})) 61 62$(eval $(call CREATE_SEQ,SEQ,2)) 63ifneq ($(CSS_SGI_CHIP_COUNT),$(filter $(CSS_SGI_CHIP_COUNT),$(SEQ))) 64 $(error "Chip count for RDN1Edge platform should be one of $(SEQ), currently \ 65 set to ${CSS_SGI_CHIP_COUNT}.") 66endif 67 68override CTX_INCLUDE_AARCH32_REGS := 0 69