xref: /arm-trusted-firmware/plat/arm/board/rde1edge/platform.mk (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu#
2*91f16700Schasinglulu# Copyright (c) 2018-2023, Arm Limited. All rights reserved.
3*91f16700Schasinglulu#
4*91f16700Schasinglulu# SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu#
6*91f16700Schasinglulu
7*91f16700Schasinglulu$(warning Platform ${PLAT} is deprecated. \
8*91f16700Schasinglulu  Some of the features might not work as expected)
9*91f16700Schasinglulu
10*91f16700Schasingluluinclude plat/arm/css/sgi/sgi-common.mk
11*91f16700Schasinglulu
12*91f16700SchasingluluRDE1EDGE_BASE		=	plat/arm/board/rde1edge
13*91f16700Schasinglulu
14*91f16700SchasingluluPLAT_INCLUDES		+=	-I${RDE1EDGE_BASE}/include/
15*91f16700Schasinglulu
16*91f16700SchasingluluSGI_CPU_SOURCES		:=	lib/cpus/aarch64/neoverse_e1.S
17*91f16700Schasinglulu
18*91f16700SchasingluluPLAT_BL_COMMON_SOURCES	+=	${CSS_ENT_BASE}/sgi_plat.c
19*91f16700Schasinglulu
20*91f16700SchasingluluBL1_SOURCES		+=	${SGI_CPU_SOURCES}			\
21*91f16700Schasinglulu				${RDE1EDGE_BASE}/rde1edge_err.c
22*91f16700Schasinglulu
23*91f16700SchasingluluBL2_SOURCES		+=	${RDE1EDGE_BASE}/rde1edge_plat.c	\
24*91f16700Schasinglulu				${RDE1EDGE_BASE}/rde1edge_security.c	\
25*91f16700Schasinglulu				${RDE1EDGE_BASE}/rde1edge_err.c		\
26*91f16700Schasinglulu				drivers/arm/tzc/tzc_dmc620.c		\
27*91f16700Schasinglulu				lib/utils/mem_region.c			\
28*91f16700Schasinglulu				plat/arm/common/arm_nor_psci_mem_protect.c
29*91f16700Schasinglulu
30*91f16700SchasingluluBL31_SOURCES		+=	${SGI_CPU_SOURCES}			\
31*91f16700Schasinglulu				${RDE1EDGE_BASE}/rde1edge_plat.c	\
32*91f16700Schasinglulu				${RDE1EDGE_BASE}/rde1edge_topology.c	\
33*91f16700Schasinglulu				drivers/cfi/v2m/v2m_flash.c		\
34*91f16700Schasinglulu				lib/utils/mem_region.c			\
35*91f16700Schasinglulu				plat/arm/common/arm_nor_psci_mem_protect.c
36*91f16700Schasinglulu
37*91f16700Schasingluluifeq (${TRUSTED_BOARD_BOOT}, 1)
38*91f16700SchasingluluBL1_SOURCES		+=	${RDE1EDGE_BASE}/rde1edge_trusted_boot.c
39*91f16700SchasingluluBL2_SOURCES		+=	${RDE1EDGE_BASE}/rde1edge_trusted_boot.c
40*91f16700Schasingluluendif
41*91f16700Schasinglulu
42*91f16700Schasinglulu# Add the FDT_SOURCES and options for Dynamic Config
43*91f16700SchasingluluFDT_SOURCES		+=	${RDE1EDGE_BASE}/fdts/${PLAT}_fw_config.dts	\
44*91f16700Schasinglulu				${RDE1EDGE_BASE}/fdts/${PLAT}_tb_fw_config.dts
45*91f16700SchasingluluFW_CONFIG		:=	${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb
46*91f16700SchasingluluTB_FW_CONFIG		:=	${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb
47*91f16700Schasinglulu
48*91f16700Schasinglulu# Add the FW_CONFIG to FIP and specify the same to certtool
49*91f16700Schasinglulu$(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG}))
50*91f16700Schasinglulu# Add the TB_FW_CONFIG to FIP and specify the same to certtool
51*91f16700Schasinglulu$(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG}))
52*91f16700Schasinglulu
53*91f16700SchasingluluFDT_SOURCES		+=	${RDE1EDGE_BASE}/fdts/${PLAT}_nt_fw_config.dts
54*91f16700SchasingluluNT_FW_CONFIG		:=	${BUILD_PLAT}/fdts/${PLAT}_nt_fw_config.dtb
55*91f16700Schasinglulu
56*91f16700Schasinglulu# Add the NT_FW_CONFIG to FIP and specify the same to certtool
57*91f16700Schasinglulu$(eval $(call TOOL_ADD_PAYLOAD,${NT_FW_CONFIG},--nt-fw-config,${NT_FW_CONFIG}))
58*91f16700Schasinglulu
59*91f16700Schasingluluifneq ($(CSS_SGI_CHIP_COUNT),1)
60*91f16700Schasinglulu $(error  "Chip count for RDE1Edge should be 1, currently set to \
61*91f16700Schasinglulu   ${CSS_SGI_CHIP_COUNT}.")
62*91f16700Schasingluluendif
63*91f16700Schasinglulu
64*91f16700Schasingluluifneq ($(CSS_SGI_PLATFORM_VARIANT),0)
65*91f16700Schasinglulu $(error "CSS_SGI_PLATFORM_VARIANT for RD-E1-Edge should always be 0, \
66*91f16700Schasinglulu     currently set to ${CSS_SGI_PLATFORM_VARIANT}.")
67*91f16700Schasingluluendif
68*91f16700Schasinglulu
69*91f16700Schasingluluoverride CTX_INCLUDE_AARCH32_REGS	:= 0
70