Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 1 | # Copyright (c) 2020, ARM Limited and Contributors. All rights reserved. |
| 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | # |
| 5 | |
Vijayenthiran Subramaniam | 1360d7e | 2020-04-06 17:54:42 +0530 | [diff] [blame] | 6 | # RD-Daniel platform uses GIC-Clayton which is based on GICv4.1 |
| 7 | GIC_ENABLE_V4_EXTN := 1 |
| 8 | |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 9 | include plat/arm/css/sgi/sgi-common.mk |
| 10 | |
| 11 | RDDANIEL_BASE = plat/arm/board/rddaniel |
| 12 | |
| 13 | PLAT_INCLUDES += -I${RDDANIEL_BASE}/include/ |
| 14 | |
| 15 | SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_zeus.S |
| 16 | |
| 17 | BL1_SOURCES += ${SGI_CPU_SOURCES} \ |
| 18 | ${RDDANIEL_BASE}/rddaniel_err.c |
| 19 | |
| 20 | BL2_SOURCES += ${RDDANIEL_BASE}/rddaniel_plat.c \ |
| 21 | ${RDDANIEL_BASE}/rddaniel_security.c \ |
| 22 | ${RDDANIEL_BASE}/rddaniel_err.c \ |
| 23 | lib/utils/mem_region.c \ |
Suyash Pathak | 30b2014 | 2020-02-12 10:08:55 +0530 | [diff] [blame] | 24 | drivers/arm/tzc/tzc400.c \ |
| 25 | plat/arm/common/arm_tzc400.c \ |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 26 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 27 | |
| 28 | BL31_SOURCES += ${SGI_CPU_SOURCES} \ |
| 29 | ${RDDANIEL_BASE}/rddaniel_plat.c \ |
| 30 | ${RDDANIEL_BASE}/rddaniel_topology.c \ |
| 31 | drivers/cfi/v2m/v2m_flash.c \ |
| 32 | lib/utils/mem_region.c \ |
| 33 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 34 | |
Vijayenthiran Subramaniam | dae19c3 | 2020-07-14 15:22:14 +0530 | [diff] [blame] | 35 | ifeq (${TRUSTED_BOARD_BOOT}, 1) |
| 36 | BL1_SOURCES += ${RDDANIEL_BASE}/rddaniel_trusted_boot.c |
| 37 | BL2_SOURCES += ${RDDANIEL_BASE}/rddaniel_trusted_boot.c |
| 38 | endif |
| 39 | |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 40 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 41 | FDT_SOURCES += ${RDDANIEL_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 42 | ${RDDANIEL_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 43 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 44 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 45 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 46 | # Add the FW_CONFIG to FIP and specify the same to certtool |
| 47 | $(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config)) |
Aditya Angadi | e650895 | 2019-07-21 22:13:45 +0530 | [diff] [blame] | 48 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
| 49 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config)) |
| 50 | |
| 51 | FDT_SOURCES += ${RDDANIEL_BASE}/fdts/${PLAT}_nt_fw_config.dts |
| 52 | NT_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_nt_fw_config.dtb |
| 53 | |
| 54 | # Add the NT_FW_CONFIG to FIP and specify the same to certtool |
| 55 | $(eval $(call TOOL_ADD_PAYLOAD,${NT_FW_CONFIG},--nt-fw-config)) |
| 56 | |
| 57 | override CTX_INCLUDE_AARCH32_REGS := 0 |