xref: /arm-trusted-firmware/plat/arm/board/sgi575/platform.mk (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu#
2*91f16700Schasinglulu# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3*91f16700Schasinglulu#
4*91f16700Schasinglulu# SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu#
6*91f16700Schasinglulu
7*91f16700Schasinglulu$(warning Platform ${PLAT} is deprecated. Some of the features might not work as expected)
8*91f16700Schasinglulu
9*91f16700Schasingluluinclude plat/arm/css/sgi/sgi-common.mk
10*91f16700Schasinglulu
11*91f16700SchasingluluSGI575_BASE		=	plat/arm/board/sgi575
12*91f16700Schasinglulu
13*91f16700SchasingluluPLAT_INCLUDES		+=	-I${SGI575_BASE}/include/
14*91f16700Schasinglulu
15*91f16700SchasingluluSGI_CPU_SOURCES		:=	lib/cpus/aarch64/cortex_a75.S
16*91f16700Schasinglulu
17*91f16700SchasingluluPLAT_BL_COMMON_SOURCES	+=	${CSS_ENT_BASE}/sgi_plat.c
18*91f16700Schasinglulu
19*91f16700SchasingluluBL1_SOURCES		+=	${SGI_CPU_SOURCES}			\
20*91f16700Schasinglulu				${SGI575_BASE}/sgi575_err.c
21*91f16700Schasinglulu
22*91f16700SchasingluluBL2_SOURCES		+=	${SGI575_BASE}/sgi575_plat.c		\
23*91f16700Schasinglulu				${SGI575_BASE}/sgi575_security.c	\
24*91f16700Schasinglulu				${SGI575_BASE}/sgi575_err.c		\
25*91f16700Schasinglulu				drivers/arm/tzc/tzc_dmc620.c		\
26*91f16700Schasinglulu				lib/utils/mem_region.c			\
27*91f16700Schasinglulu				plat/arm/common/arm_nor_psci_mem_protect.c
28*91f16700Schasinglulu
29*91f16700SchasingluluBL31_SOURCES		+=	${SGI_CPU_SOURCES}			\
30*91f16700Schasinglulu				${SGI575_BASE}/sgi575_plat.c		\
31*91f16700Schasinglulu				${SGI575_BASE}/sgi575_topology.c	\
32*91f16700Schasinglulu				drivers/cfi/v2m/v2m_flash.c		\
33*91f16700Schasinglulu				lib/utils/mem_region.c			\
34*91f16700Schasinglulu				plat/arm/common/arm_nor_psci_mem_protect.c
35*91f16700Schasinglulu
36*91f16700Schasingluluifeq (${TRUSTED_BOARD_BOOT}, 1)
37*91f16700SchasingluluBL1_SOURCES		+=	${SGI575_BASE}/sgi575_trusted_boot.c
38*91f16700SchasingluluBL2_SOURCES		+=	${SGI575_BASE}/sgi575_trusted_boot.c
39*91f16700Schasingluluendif
40*91f16700Schasinglulu
41*91f16700Schasinglulu# Add the FDT_SOURCES and options for Dynamic Config
42*91f16700SchasingluluFDT_SOURCES		+=	${SGI575_BASE}/fdts/${PLAT}_fw_config.dts	\
43*91f16700Schasinglulu				${SGI575_BASE}/fdts/${PLAT}_tb_fw_config.dts
44*91f16700Schasinglulu
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		+=	${SGI575_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 SGI575 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 SGI575 should always be 0,\
66*91f16700Schasinglulu     currently set to ${CSS_SGI_PLATFORM_VARIANT}.")
67*91f16700Schasingluluendif
68