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