1#
2# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7CSS_USE_SCMI_SDS_DRIVER		:=	1
8
9CSS_ENT_BASE			:=	plat/arm/css/sgi
10
11RAS_EXTENSION			:=	0
12
13SDEI_SUPPORT			:=	0
14
15EL3_EXCEPTION_HANDLING		:=	0
16
17HANDLE_EA_EL3_FIRST		:=	0
18
19CSS_SGI_CHIP_COUNT		:=	1
20
21CSS_SGI_PLATFORM_VARIANT	:=	0
22
23INTERCONNECT_SOURCES	:=	${CSS_ENT_BASE}/sgi_interconnect.c
24
25PLAT_INCLUDES		+=	-I${CSS_ENT_BASE}/include
26
27# GIC-600 configuration
28GICV3_SUPPORT_GIC600	:=	1
29
30# Include GICv3 driver files
31include drivers/arm/gic/v3/gicv3.mk
32
33ENT_GIC_SOURCES		:=	${GICV3_SOURCES}		\
34				plat/common/plat_gicv3.c	\
35				plat/arm/common/arm_gicv3.c
36
37PLAT_BL_COMMON_SOURCES	+=	${CSS_ENT_BASE}/aarch64/sgi_helper.S
38
39BL1_SOURCES		+=	${INTERCONNECT_SOURCES}			\
40				drivers/arm/sbsa/sbsa.c
41
42BL2_SOURCES		+=	${CSS_ENT_BASE}/sgi_image_load.c
43
44BL31_SOURCES		+=	${INTERCONNECT_SOURCES}			\
45				${ENT_GIC_SOURCES}			\
46				${CSS_ENT_BASE}/sgi_bl31_setup.c	\
47				${CSS_ENT_BASE}/sgi_topology.c
48
49ifeq (${RAS_EXTENSION},1)
50BL31_SOURCES		+=	${CSS_ENT_BASE}/sgi_ras.c
51endif
52
53ifneq (${RESET_TO_BL31},0)
54  $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
55  Please set RESET_TO_BL31 to 0.")
56endif
57
58$(eval $(call add_define,SGI_PLAT))
59
60$(eval $(call add_define,CSS_SGI_CHIP_COUNT))
61
62$(eval $(call add_define,CSS_SGI_PLATFORM_VARIANT))
63
64override CSS_LOAD_SCP_IMAGES	:=	0
65override NEED_BL2U		:=	no
66override ARM_BL31_IN_DRAM	:=	1
67override ARM_PLAT_MT		:=	1
68override PSCI_EXTENDED_STATE_ID	:=	1
69override ARM_RECOM_STATE_ID_ENC	:=	1
70
71# System coherency is managed in hardware
72HW_ASSISTED_COHERENCY	:=	1
73
74# When building for systems with hardware-assisted coherency, there's no need to
75# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
76USE_COHERENT_MEM	:=	0
77
78include plat/arm/common/arm_common.mk
79include plat/arm/css/common/css_common.mk
80include plat/arm/soc/common/soc_css.mk
81include plat/arm/board/common/board_common.mk
82