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_SGM_BASE := plat/arm/css/sgm 10 11PLAT_INCLUDES := -I${CSS_SGM_BASE}/include 12 13PLAT_BL_COMMON_SOURCES := ${CSS_SGM_BASE}/sgm_mmap_config.c \ 14 ${CSS_SGM_BASE}/aarch64/css_sgm_helpers.S 15 16SECURITY_SOURCES := drivers/arm/tzc/tzc_dmc500.c \ 17 plat/arm/common/arm_tzc_dmc500.c \ 18 ${CSS_SGM_BASE}/sgm_security.c 19 20SGM_CPU_SOURCES := lib/cpus/aarch64/cortex_a55.S \ 21 lib/cpus/aarch64/cortex_a75.S 22 23INTERCONNECT_SOURCES := ${CSS_SGM_BASE}/sgm_interconnect.c 24 25# GIC-600 configuration 26GICV3_SUPPORT_GIC600 := 1 27 28# Include GICv3 driver files 29include drivers/arm/gic/v3/gicv3.mk 30 31SGM_GIC_SOURCES := ${GICV3_SOURCES} \ 32 plat/common/plat_gicv3.c \ 33 plat/arm/common/arm_gicv3.c 34 35BL1_SOURCES += $(SGM_CPU_SOURCES) \ 36 ${INTERCONNECT_SOURCES} \ 37 ${CSS_SGM_BASE}/sgm_bl1_setup.c \ 38 ${CSS_SGM_BASE}/sgm_plat_config.c \ 39 drivers/arm/sp805/sp805.c 40 41BL2_SOURCES += ${SECURITY_SOURCES} \ 42 ${CSS_SGM_BASE}/sgm_plat_config.c 43 44BL2U_SOURCES += ${SECURITY_SOURCES} 45 46BL31_SOURCES += $(SGM_CPU_SOURCES) \ 47 ${INTERCONNECT_SOURCES} \ 48 ${SECURITY_SOURCES} \ 49 ${SGM_GIC_SOURCES} \ 50 ${CSS_SGM_BASE}/sgm_topology.c \ 51 ${CSS_SGM_BASE}/sgm_bl31_setup.c \ 52 ${CSS_SGM_BASE}/sgm_plat_config.c 53 54ifneq (${RESET_TO_BL31},0) 55 $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \ 56 Please set RESET_TO_BL31 to 0.") 57endif 58 59# sgm uses CCI-500 as Cache Coherent Interconnect 60ARM_CCI_PRODUCT_ID := 500 61 62# System coherency is managed in hardware 63HW_ASSISTED_COHERENCY := 1 64 65# When building for systems with hardware-assisted coherency, there's no need to 66# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. 67USE_COHERENT_MEM := 0 68 69override ARM_PLAT_MT := 1 70 71$(eval $(call add_define,SGM_PLAT)) 72 73include plat/arm/common/arm_common.mk 74include plat/arm/board/common/board_common.mk 75include plat/arm/css/common/css_common.mk 76include plat/arm/soc/common/soc_css.mk 77