mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 23:04:50 +00:00

This patch moves all GICv3 driver files into new added 'gicv3.mk' makefile for the benefit of the generic driver which can evolve in the future without affecting platforms. The patch adds GICv3 driver configuration flags 'GICV3_IMPL', 'GICV3_IMPL_GIC600_MULTICHIP' and 'GICV3_OVERRIDE_DISTIF_PWR_OPS' described in 'GICv3 driver options' section of 'build-option.rst' document. NOTE: Platforms with GICv3 driver need to be modified to include 'drivers/arm/gic/v3/gicv3.mk' in their makefiles. Change-Id: If055f6770ff20f5dee5a3c99ae7ced7cdcac5c44 Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
74 lines
2 KiB
Makefile
74 lines
2 KiB
Makefile
#
|
|
# Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
|
|
N1SDP_BASE := plat/arm/board/n1sdp
|
|
|
|
INTERCONNECT_SOURCES := ${N1SDP_BASE}/n1sdp_interconnect.c
|
|
|
|
PLAT_INCLUDES := -I${N1SDP_BASE}/include
|
|
|
|
|
|
N1SDP_CPU_SOURCES := lib/cpus/aarch64/neoverse_n1.S
|
|
|
|
# GIC-600 configuration
|
|
GICV3_IMPL := GIC600
|
|
GICV3_IMPL_GIC600_MULTICHIP := 1
|
|
|
|
# Include GICv3 driver files
|
|
include drivers/arm/gic/v3/gicv3.mk
|
|
|
|
N1SDP_GIC_SOURCES := ${GICV3_SOURCES} \
|
|
plat/common/plat_gicv3.c \
|
|
plat/arm/common/arm_gicv3.c \
|
|
|
|
PLAT_BL_COMMON_SOURCES := ${N1SDP_BASE}/n1sdp_plat.c \
|
|
${N1SDP_BASE}/aarch64/n1sdp_helper.S
|
|
|
|
BL1_SOURCES += drivers/arm/sbsa/sbsa.c
|
|
|
|
BL31_SOURCES := ${N1SDP_CPU_SOURCES} \
|
|
${INTERCONNECT_SOURCES} \
|
|
${N1SDP_GIC_SOURCES} \
|
|
${N1SDP_BASE}/n1sdp_bl31_setup.c \
|
|
${N1SDP_BASE}/n1sdp_topology.c \
|
|
${N1SDP_BASE}/n1sdp_security.c \
|
|
drivers/arm/css/sds/sds.c
|
|
|
|
|
|
# TF-A not required to load the SCP Images
|
|
override CSS_LOAD_SCP_IMAGES := 0
|
|
|
|
# BL1/BL2 Image not a part of the capsule Image for n1sdp
|
|
override NEED_BL1 := no
|
|
override NEED_BL2 := no
|
|
override NEED_BL2U := no
|
|
|
|
#TFA for n1sdp starts from BL31
|
|
override RESET_TO_BL31 := 1
|
|
|
|
# 32 bit mode not supported
|
|
override CTX_INCLUDE_AARCH32_REGS := 0
|
|
|
|
override ARM_PLAT_MT := 1
|
|
|
|
# Select SCMI/SDS drivers instead of SCPI/BOM driver for communicating with the
|
|
# SCP during power management operations and for SCP RAM Firmware transfer.
|
|
CSS_USE_SCMI_SDS_DRIVER := 1
|
|
|
|
# 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
|
|
|
|
# Enable the flag since N1SDP has a system level cache
|
|
NEOVERSE_N1_EXTERNAL_LLC := 1
|
|
include plat/arm/common/arm_common.mk
|
|
include plat/arm/css/common/css_common.mk
|
|
include plat/arm/board/common/board_common.mk
|
|
|