Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 1 | # |
Manish V Badarkhe | 173c296 | 2022-05-09 21:55:19 +0100 | [diff] [blame] | 2 | # Copyright (c) 2013-2022, Arm Limited and Contributors. All rights reserved. |
Varun Wadekar | eea6dc1 | 2021-05-04 16:14:09 -0700 | [diff] [blame] | 3 | # Copyright (c) 2021, NVIDIA Corporation. All rights reserved. |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | # Default configuration values |
Andre Przywara | e1cc130 | 2020-03-25 15:50:38 +0000 | [diff] [blame] | 9 | GICV3_SUPPORT_GIC600 ?= 0 |
Varun Wadekar | eea6dc1 | 2021-05-04 16:14:09 -0700 | [diff] [blame] | 10 | GICV3_SUPPORT_GIC600AE_FMU ?= 0 |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 11 | GICV3_IMPL_GIC600_MULTICHIP ?= 0 |
| 12 | GICV3_OVERRIDE_DISTIF_PWR_OPS ?= 0 |
Alexei Fedorov | 1970593 | 2020-04-06 19:00:35 +0100 | [diff] [blame] | 13 | GIC_ENABLE_V4_EXTN ?= 0 |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 14 | GIC_EXT_INTID ?= 0 |
Manish V Badarkhe | 173c296 | 2022-05-09 21:55:19 +0100 | [diff] [blame] | 15 | GIC600_ERRATA_WA_2384374 ?= ${GICV3_SUPPORT_GIC600} |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 16 | |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 17 | GICV3_SOURCES += drivers/arm/gic/v3/gicv3_main.c \ |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 18 | drivers/arm/gic/v3/gicv3_helpers.c \ |
| 19 | drivers/arm/gic/v3/gicdv3_helpers.c \ |
| 20 | drivers/arm/gic/v3/gicrv3_helpers.c |
| 21 | |
Varun Wadekar | eea6dc1 | 2021-05-04 16:14:09 -0700 | [diff] [blame] | 22 | ifeq (${GICV3_SUPPORT_GIC600AE_FMU}, 1) |
| 23 | GICV3_SOURCES += drivers/arm/gic/v3/gic600ae_fmu.c \ |
| 24 | drivers/arm/gic/v3/gic600ae_fmu_helpers.c |
| 25 | endif |
| 26 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 27 | ifeq (${GICV3_OVERRIDE_DISTIF_PWR_OPS}, 0) |
| 28 | GICV3_SOURCES += drivers/arm/gic/v3/arm_gicv3_common.c |
| 29 | endif |
| 30 | |
Andre Przywara | e1cc130 | 2020-03-25 15:50:38 +0000 | [diff] [blame] | 31 | GICV3_SOURCES += drivers/arm/gic/v3/gic-x00.c |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 32 | ifeq (${GICV3_IMPL_GIC600_MULTICHIP}, 1) |
| 33 | GICV3_SOURCES += drivers/arm/gic/v3/gic600_multichip.c |
| 34 | endif |
Andre Przywara | e1cc130 | 2020-03-25 15:50:38 +0000 | [diff] [blame] | 35 | |
| 36 | # Set GIC-600 support |
| 37 | $(eval $(call assert_boolean,GICV3_SUPPORT_GIC600)) |
| 38 | $(eval $(call add_define,GICV3_SUPPORT_GIC600)) |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 39 | |
Varun Wadekar | eea6dc1 | 2021-05-04 16:14:09 -0700 | [diff] [blame] | 40 | # Set GIC-600AE FMU support |
| 41 | $(eval $(call assert_boolean,GICV3_SUPPORT_GIC600AE_FMU)) |
| 42 | $(eval $(call add_define,GICV3_SUPPORT_GIC600AE_FMU)) |
| 43 | |
Alexei Fedorov | 1970593 | 2020-04-06 19:00:35 +0100 | [diff] [blame] | 44 | # Set GICv4 extension |
| 45 | $(eval $(call assert_boolean,GIC_ENABLE_V4_EXTN)) |
| 46 | $(eval $(call add_define,GIC_ENABLE_V4_EXTN)) |
| 47 | |
Alexei Fedorov | a6e6ae0 | 2020-04-06 16:27:54 +0100 | [diff] [blame] | 48 | # Set support for extended PPI and SPI range |
| 49 | $(eval $(call assert_boolean,GIC_EXT_INTID)) |
| 50 | $(eval $(call add_define,GIC_EXT_INTID)) |
Manish V Badarkhe | 173c296 | 2022-05-09 21:55:19 +0100 | [diff] [blame] | 51 | |
| 52 | # Set errata workaround for GIC600/GIC600AE |
| 53 | $(eval $(call assert_boolean,GIC600_ERRATA_WA_2384374)) |
| 54 | $(eval $(call add_define,GIC600_ERRATA_WA_2384374)) |