Aditya Angadi | cdd7f63 | 2020-04-06 17:11:23 +0530 | [diff] [blame] | 1 | # Copyright (c) 2020, ARM Limited and Contributors. All rights reserved. |
| 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | # |
| 5 | |
| 6 | # Enable GICv4 extension with multichip driver |
| 7 | GIC_ENABLE_V4_EXTN := 1 |
| 8 | GICV3_IMPL_GIC600_MULTICHIP := 1 |
| 9 | |
| 10 | include plat/arm/css/sgi/sgi-common.mk |
| 11 | |
| 12 | RDDANIELXLR_BASE = plat/arm/board/rddanielxlr |
| 13 | |
| 14 | PLAT_INCLUDES += -I${RDDANIELXLR_BASE}/include/ |
| 15 | |
| 16 | SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_zeus.S |
| 17 | |
| 18 | BL1_SOURCES += ${SGI_CPU_SOURCES} \ |
| 19 | ${RDDANIELXLR_BASE}/rddanielxlr_err.c |
| 20 | |
| 21 | BL2_SOURCES += ${RDDANIELXLR_BASE}/rddanielxlr_plat.c \ |
| 22 | ${RDDANIELXLR_BASE}/rddanielxlr_security.c \ |
| 23 | ${RDDANIELXLR_BASE}/rddanielxlr_err.c \ |
| 24 | lib/utils/mem_region.c \ |
| 25 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 26 | |
| 27 | BL31_SOURCES += ${SGI_CPU_SOURCES} \ |
| 28 | ${RDDANIELXLR_BASE}/rddanielxlr_plat.c \ |
| 29 | ${RDDANIELXLR_BASE}/rddanielxlr_topology.c \ |
| 30 | drivers/cfi/v2m/v2m_flash.c \ |
| 31 | drivers/arm/gic/v3/gic600_multichip.c \ |
| 32 | lib/utils/mem_region.c \ |
| 33 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 34 | |
Vijayenthiran Subramaniam | 01ce6fe | 2020-07-14 15:51:37 +0530 | [diff] [blame] | 35 | ifeq (${TRUSTED_BOARD_BOOT}, 1) |
| 36 | BL1_SOURCES += ${RDDANIELXLR_BASE}/rddanielxlr_trusted_boot.c |
| 37 | BL2_SOURCES += ${RDDANIELXLR_BASE}/rddanielxlr_trusted_boot.c |
| 38 | endif |
| 39 | |
Aditya Angadi | cdd7f63 | 2020-04-06 17:11:23 +0530 | [diff] [blame] | 40 | # Enable dynamic addition of MMAP regions in BL31 |
| 41 | BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC |
| 42 | |
| 43 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 44 | FDT_SOURCES += ${RDDANIELXLR_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 45 | ${RDDANIELXLR_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 46 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 47 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Aditya Angadi | cdd7f63 | 2020-04-06 17:11:23 +0530 | [diff] [blame] | 48 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 49 | # Add the FW_CONFIG to FIP and specify the same to certtool |
| 50 | $(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config)) |
Aditya Angadi | cdd7f63 | 2020-04-06 17:11:23 +0530 | [diff] [blame] | 51 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
| 52 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config)) |
| 53 | |
| 54 | $(eval $(call CREATE_SEQ,SEQ,4)) |
| 55 | ifneq ($(CSS_SGI_CHIP_COUNT),$(filter $(CSS_SGI_CHIP_COUNT),$(SEQ))) |
| 56 | $(error "Chip count for RD-Daniel Config-XLR should be either $(SEQ) \ |
| 57 | currently it is set to ${CSS_SGI_CHIP_COUNT}.") |
| 58 | endif |
| 59 | |
| 60 | FDT_SOURCES += ${RDDANIELXLR_BASE}/fdts/${PLAT}_nt_fw_config.dts |
| 61 | NT_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_nt_fw_config.dtb |
| 62 | |
| 63 | # Add the NT_FW_CONFIG to FIP and specify the same to certtool |
| 64 | $(eval $(call TOOL_ADD_PAYLOAD,${NT_FW_CONFIG},--nt-fw-config)) |
| 65 | |
| 66 | override CTX_INCLUDE_AARCH32_REGS := 0 |