blob: 81632a5f1cf2a915bf5e5e977e635a3e2de090b6 [file] [log] [blame]
Aditya Angadie6508952019-07-21 22:13:45 +05301# Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
2#
3# SPDX-License-Identifier: BSD-3-Clause
4#
5
Vijayenthiran Subramaniam1360d7e2020-04-06 17:54:42 +05306# RD-Daniel platform uses GIC-Clayton which is based on GICv4.1
7GIC_ENABLE_V4_EXTN := 1
8
Aditya Angadie6508952019-07-21 22:13:45 +05309include plat/arm/css/sgi/sgi-common.mk
10
11RDDANIEL_BASE = plat/arm/board/rddaniel
12
13PLAT_INCLUDES += -I${RDDANIEL_BASE}/include/
14
15SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_zeus.S
16
17BL1_SOURCES += ${SGI_CPU_SOURCES} \
18 ${RDDANIEL_BASE}/rddaniel_err.c
19
20BL2_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 Pathak30b20142020-02-12 10:08:55 +053024 drivers/arm/tzc/tzc400.c \
25 plat/arm/common/arm_tzc400.c \
Aditya Angadie6508952019-07-21 22:13:45 +053026 plat/arm/common/arm_nor_psci_mem_protect.c
27
28BL31_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 Subramaniamdae19c32020-07-14 15:22:14 +053035ifeq (${TRUSTED_BOARD_BOOT}, 1)
36BL1_SOURCES += ${RDDANIEL_BASE}/rddaniel_trusted_boot.c
37BL2_SOURCES += ${RDDANIEL_BASE}/rddaniel_trusted_boot.c
38endif
39
Aditya Angadie6508952019-07-21 22:13:45 +053040# Add the FDT_SOURCES and options for Dynamic Config
Manish V Badarkhe64616a52020-05-31 08:53:40 +010041FDT_SOURCES += ${RDDANIEL_BASE}/fdts/${PLAT}_fw_config.dts \
42 ${RDDANIEL_BASE}/fdts/${PLAT}_tb_fw_config.dts
43FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
44TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
Aditya Angadie6508952019-07-21 22:13:45 +053045
Manish V Badarkhe64616a52020-05-31 08:53:40 +010046# Add the FW_CONFIG to FIP and specify the same to certtool
47$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config))
Aditya Angadie6508952019-07-21 22:13:45 +053048# 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
51FDT_SOURCES += ${RDDANIEL_BASE}/fdts/${PLAT}_nt_fw_config.dts
52NT_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
57override CTX_INCLUDE_AARCH32_REGS := 0