Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 1 | # |
| 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 |
| 8 | GICV3_IMPL ?= GIC500 |
| 9 | GICV3_IMPL_GIC600_MULTICHIP ?= 0 |
| 10 | GICV3_OVERRIDE_DISTIF_PWR_OPS ?= 0 |
| 11 | |
| 12 | GICV3_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 | |
| 18 | ifeq (${GICV3_OVERRIDE_DISTIF_PWR_OPS}, 0) |
| 19 | GICV3_SOURCES += drivers/arm/gic/v3/arm_gicv3_common.c |
| 20 | endif |
| 21 | |
| 22 | # Either GIC-600 or GIC-500 can be selected at one time |
| 23 | ifeq (${GICV3_IMPL}, GIC600) |
| 24 | # GIC-600 sources |
| 25 | GICV3_SOURCES += drivers/arm/gic/v3/gic600.c |
| 26 | ifeq (${GICV3_IMPL_GIC600_MULTICHIP}, 1) |
| 27 | GICV3_SOURCES += drivers/arm/gic/v3/gic600_multichip.c |
| 28 | endif |
| 29 | else ifeq (${GICV3_IMPL}, GIC500) |
| 30 | # GIC-500 sources |
| 31 | GICV3_SOURCES += drivers/arm/gic/v3/gic500.c |
| 32 | else |
| 33 | $(error "Incorrect GICV3_IMPL value ${GICV3_IMPL}") |
| 34 | endif |