blob: 164f88eda89b2dde0f5b52e7f2e7e2530097fa06 [file] [log] [blame]
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +00001#
2# Copyright (c) 2013-2020, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7# Default configuration values
8GICV3_IMPL ?= GIC500
9GICV3_IMPL_GIC600_MULTICHIP ?= 0
10GICV3_OVERRIDE_DISTIF_PWR_OPS ?= 0
11
12GICV3_SOURCES += drivers/arm/gic/common/gic_common.c \
13 drivers/arm/gic/v3/gicv3_main.c \
14 drivers/arm/gic/v3/gicv3_helpers.c \
15 drivers/arm/gic/v3/gicdv3_helpers.c \
16 drivers/arm/gic/v3/gicrv3_helpers.c
17
18ifeq (${GICV3_OVERRIDE_DISTIF_PWR_OPS}, 0)
19GICV3_SOURCES += drivers/arm/gic/v3/arm_gicv3_common.c
20endif
21
22# Either GIC-600 or GIC-500 can be selected at one time
23ifeq (${GICV3_IMPL}, GIC600)
24# GIC-600 sources
25GICV3_SOURCES += drivers/arm/gic/v3/gic600.c
26ifeq (${GICV3_IMPL_GIC600_MULTICHIP}, 1)
27GICV3_SOURCES += drivers/arm/gic/v3/gic600_multichip.c
28endif
29else ifeq (${GICV3_IMPL}, GIC500)
30# GIC-500 sources
31GICV3_SOURCES += drivers/arm/gic/v3/gic500.c
32else
33$(error "Incorrect GICV3_IMPL value ${GICV3_IMPL}")
34endif