blob: 1e2054f84a7eb8ed04cb165108187289e5b6be97 [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001#
Alexei Fedorov2f13d6c2020-02-21 10:17:26 +00002# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Nariman Poushin0ece80f2018-02-26 06:52:04 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Chandni Cherukurid61a7052018-08-01 15:58:48 +05307CSS_USE_SCMI_SDS_DRIVER := 1
8
Nariman Poushin0ece80f2018-02-26 06:52:04 +00009CSS_ENT_BASE := plat/arm/css/sgi
10
Sughosh Ganu3f7e79d2018-05-16 18:48:56 +053011RAS_EXTENSION := 0
12
Sughosh Ganu3f7e79d2018-05-16 18:48:56 +053013SDEI_SUPPORT := 0
14
15EL3_EXCEPTION_HANDLING := 0
16
17HANDLE_EA_EL3_FIRST := 0
18
Vijayenthiran Subramaniambc489912019-12-26 17:45:58 +053019CSS_SGI_CHIP_COUNT := 1
20
Aditya Angadi06402222021-03-20 12:06:15 +053021CSS_SGI_PLATFORM_VARIANT := 0
22
Nariman Poushin0ece80f2018-02-26 06:52:04 +000023INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c
24
25PLAT_INCLUDES += -I${CSS_ENT_BASE}/include
26
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000027# GIC-600 configuration
Andre Przywarae1cc1302020-03-25 15:50:38 +000028GICV3_SUPPORT_GIC600 := 1
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000029
30# Include GICv3 driver files
31include drivers/arm/gic/v3/gicv3.mk
Nariman Poushin0ece80f2018-02-26 06:52:04 +000032
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000033ENT_GIC_SOURCES := ${GICV3_SOURCES} \
34 plat/common/plat_gicv3.c \
35 plat/arm/common/arm_gicv3.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000036
Aditya Angadi502d0ac2020-11-18 08:27:15 +053037PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/aarch64/sgi_helper.S
Nariman Poushin0ece80f2018-02-26 06:52:04 +000038
Aditya Angadi20b48412019-04-16 11:29:14 +053039BL1_SOURCES += ${INTERCONNECT_SOURCES} \
40 drivers/arm/sbsa/sbsa.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000041
Vijayenthiran Subramaniam22141b62018-10-25 22:20:24 +053042BL2_SOURCES += ${CSS_ENT_BASE}/sgi_image_load.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000043
Chandni Cherukuria3f66132018-08-10 11:17:58 +053044BL31_SOURCES += ${INTERCONNECT_SOURCES} \
Nariman Poushin0ece80f2018-02-26 06:52:04 +000045 ${ENT_GIC_SOURCES} \
46 ${CSS_ENT_BASE}/sgi_bl31_setup.c \
Chandni Cherukuria5d44ec2018-08-14 15:25:34 +053047 ${CSS_ENT_BASE}/sgi_topology.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000048
Sughosh Ganu18f513d2018-05-16 17:22:35 +053049ifeq (${RAS_EXTENSION},1)
50BL31_SOURCES += ${CSS_ENT_BASE}/sgi_ras.c
51endif
52
Deepak Pandeyb0971f92018-05-25 12:43:30 +053053ifneq (${RESET_TO_BL31},0)
Sandrine Bailleux1e32d322019-01-07 15:35:37 +010054 $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
Deepak Pandeyb0971f92018-05-25 12:43:30 +053055 Please set RESET_TO_BL31 to 0.")
56endif
57
Nariman Poushin0ece80f2018-02-26 06:52:04 +000058$(eval $(call add_define,SGI_PLAT))
59
Vijayenthiran Subramaniambc489912019-12-26 17:45:58 +053060$(eval $(call add_define,CSS_SGI_CHIP_COUNT))
61
Aditya Angadi06402222021-03-20 12:06:15 +053062$(eval $(call add_define,CSS_SGI_PLATFORM_VARIANT))
63
Nariman Poushin0ece80f2018-02-26 06:52:04 +000064override CSS_LOAD_SCP_IMAGES := 0
65override NEED_BL2U := no
66override ARM_BL31_IN_DRAM := 1
Sudipto Paulc4510102018-04-16 17:46:50 +053067override ARM_PLAT_MT := 1
Nariman Poushin0ece80f2018-02-26 06:52:04 +000068
69# System coherency is managed in hardware
70HW_ASSISTED_COHERENCY := 1
71
72# When building for systems with hardware-assisted coherency, there's no need to
73# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
74USE_COHERENT_MEM := 0
75
76include plat/arm/common/arm_common.mk
77include plat/arm/css/common/css_common.mk
78include plat/arm/soc/common/soc_css.mk
79include plat/arm/board/common/board_common.mk