• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
21INTERCONNECT_SOURCES	:=	${CSS_ENT_BASE}/sgi_interconnect.c
22
23PLAT_INCLUDES		+=	-I${CSS_ENT_BASE}/include
24
25# GIC-600 configuration
26GICV3_SUPPORT_GIC600	:=	1
27
28# Include GICv3 driver files
29include drivers/arm/gic/v3/gicv3.mk
30
31ENT_GIC_SOURCES		:=	${GICV3_SOURCES}		\
32				plat/common/plat_gicv3.c	\
33				plat/arm/common/arm_gicv3.c
34
35PLAT_BL_COMMON_SOURCES	+=	${CSS_ENT_BASE}/aarch64/sgi_helper.S
36
37BL1_SOURCES		+=	${INTERCONNECT_SOURCES}			\
38				drivers/arm/sbsa/sbsa.c
39
40BL2_SOURCES		+=	${CSS_ENT_BASE}/sgi_image_load.c
41
42BL31_SOURCES		+=	${INTERCONNECT_SOURCES}			\
43				${ENT_GIC_SOURCES}			\
44				${CSS_ENT_BASE}/sgi_bl31_setup.c	\
45				${CSS_ENT_BASE}/sgi_topology.c
46
47ifeq (${RAS_EXTENSION},1)
48BL31_SOURCES		+=	${CSS_ENT_BASE}/sgi_ras.c
49endif
50
51ifneq (${RESET_TO_BL31},0)
52  $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
53  Please set RESET_TO_BL31 to 0.")
54endif
55
56$(eval $(call add_define,SGI_PLAT))
57
58$(eval $(call add_define,CSS_SGI_CHIP_COUNT))
59
60override CSS_LOAD_SCP_IMAGES	:=	0
61override NEED_BL2U		:=	no
62override ARM_BL31_IN_DRAM	:=	1
63override ARM_PLAT_MT		:=	1
64
65# System coherency is managed in hardware
66HW_ASSISTED_COHERENCY	:=	1
67
68# When building for systems with hardware-assisted coherency, there's no need to
69# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
70USE_COHERENT_MEM	:=	0
71
72include plat/arm/common/arm_common.mk
73include plat/arm/css/common/css_common.mk
74include plat/arm/soc/common/soc_css.mk
75include plat/arm/board/common/board_common.mk
76