sgi-common.mk 1.86 KB
Newer Older
1
#
2
# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3
4
5
6
#
# SPDX-License-Identifier: BSD-3-Clause
#

7
8
CSS_USE_SCMI_SDS_DRIVER		:=	1

9
10
CSS_ENT_BASE			:=	plat/arm/css/sgi

11
12
13
14
15
16
17
18
RAS_EXTENSION			:=	0

SDEI_SUPPORT			:=	0

EL3_EXCEPTION_HANDLING		:=	0

HANDLE_EA_EL3_FIRST		:=	0

19
20
CSS_SGI_CHIP_COUNT		:=	1

21
22
CSS_SGI_PLATFORM_VARIANT	:=	0

23
24
25
26
INTERCONNECT_SOURCES	:=	${CSS_ENT_BASE}/sgi_interconnect.c

PLAT_INCLUDES		+=	-I${CSS_ENT_BASE}/include

27
# GIC-600 configuration
28
GICV3_SUPPORT_GIC600	:=	1
29

30
31
32
33
34
35
# Include GICv3 driver files
include drivers/arm/gic/v3/gicv3.mk

ENT_GIC_SOURCES		:=	${GICV3_SOURCES}		\
				plat/common/plat_gicv3.c	\
				plat/arm/common/arm_gicv3.c
36

37
PLAT_BL_COMMON_SOURCES	+=	${CSS_ENT_BASE}/aarch64/sgi_helper.S
38

39
40
BL1_SOURCES		+=	${INTERCONNECT_SOURCES}			\
				drivers/arm/sbsa/sbsa.c
41

42
BL2_SOURCES		+=	${CSS_ENT_BASE}/sgi_image_load.c
43

44
BL31_SOURCES		+=	${INTERCONNECT_SOURCES}			\
45
46
				${ENT_GIC_SOURCES}			\
				${CSS_ENT_BASE}/sgi_bl31_setup.c	\
47
				${CSS_ENT_BASE}/sgi_topology.c
48

49
50
51
52
ifeq (${RAS_EXTENSION},1)
BL31_SOURCES		+=	${CSS_ENT_BASE}/sgi_ras.c
endif

53
ifneq (${RESET_TO_BL31},0)
54
  $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
55
56
57
  Please set RESET_TO_BL31 to 0.")
endif

58
59
$(eval $(call add_define,SGI_PLAT))

60
61
$(eval $(call add_define,CSS_SGI_CHIP_COUNT))

62
63
$(eval $(call add_define,CSS_SGI_PLATFORM_VARIANT))

64
65
66
override CSS_LOAD_SCP_IMAGES	:=	0
override NEED_BL2U		:=	no
override ARM_BL31_IN_DRAM	:=	1
67
override ARM_PLAT_MT		:=	1
68
69
70
71
72
73
74
75
76
77
78
79

# System coherency is managed in hardware
HW_ASSISTED_COHERENCY	:=	1

# When building for systems with hardware-assisted coherency, there's no need to
# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
USE_COHERENT_MEM	:=	0

include plat/arm/common/arm_common.mk
include plat/arm/css/common/css_common.mk
include plat/arm/soc/common/soc_css.mk
include plat/arm/board/common/board_common.mk