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 |
Alexei Fedorov | 1970593 | 2020-04-06 19:00:35 +0100 | [diff] [blame] | 11 | GIC_ENABLE_V4_EXTN ?= 0 |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 12 | GIC_EXT_INTID ?= 0 |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 13 | |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 14 | GICV3_SOURCES += drivers/arm/gic/v3/gicv3_main.c \ |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 15 | drivers/arm/gic/v3/gicv3_helpers.c \ |
| 16 | drivers/arm/gic/v3/gicdv3_helpers.c \ |
| 17 | drivers/arm/gic/v3/gicrv3_helpers.c |
| 18 | |
| 19 | ifeq (${GICV3_OVERRIDE_DISTIF_PWR_OPS}, 0) |
| 20 | GICV3_SOURCES += drivers/arm/gic/v3/arm_gicv3_common.c |
| 21 | endif |
| 22 | |
| 23 | # Either GIC-600 or GIC-500 can be selected at one time |
| 24 | ifeq (${GICV3_IMPL}, GIC600) |
| 25 | # GIC-600 sources |
| 26 | GICV3_SOURCES += drivers/arm/gic/v3/gic600.c |
| 27 | ifeq (${GICV3_IMPL_GIC600_MULTICHIP}, 1) |
| 28 | GICV3_SOURCES += drivers/arm/gic/v3/gic600_multichip.c |
| 29 | endif |
| 30 | else ifeq (${GICV3_IMPL}, GIC500) |
| 31 | # GIC-500 sources |
| 32 | GICV3_SOURCES += drivers/arm/gic/v3/gic500.c |
| 33 | else |
| 34 | $(error "Incorrect GICV3_IMPL value ${GICV3_IMPL}") |
| 35 | endif |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 36 | |
Alexei Fedorov | 1970593 | 2020-04-06 19:00:35 +0100 | [diff] [blame] | 37 | # Set GICv4 extension |
| 38 | $(eval $(call assert_boolean,GIC_ENABLE_V4_EXTN)) |
| 39 | $(eval $(call add_define,GIC_ENABLE_V4_EXTN)) |
| 40 | |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 41 | # Set support for extended PPI and SPI range |
| 42 | $(eval $(call assert_boolean,GIC_EXT_INTID)) |
| 43 | $(eval $(call add_define,GIC_EXT_INTID)) |