gicv3.mk 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #
  2. # Copyright (c) 2013-2022, Arm Limited and Contributors. All rights reserved.
  3. # Copyright (c) 2021, NVIDIA Corporation. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-3-Clause
  6. #
  7. # Default configuration values
  8. GICV3_SUPPORT_GIC600 ?= 0
  9. GICV3_SUPPORT_GIC600AE_FMU ?= 0
  10. GICV3_IMPL_GIC600_MULTICHIP ?= 0
  11. GICV3_OVERRIDE_DISTIF_PWR_OPS ?= 0
  12. GIC_ENABLE_V4_EXTN ?= 0
  13. GIC_EXT_INTID ?= 0
  14. GIC600_ERRATA_WA_2384374 ?= ${GICV3_SUPPORT_GIC600}
  15. GICV3_SOURCES += drivers/arm/gic/v3/gicv3_main.c \
  16. drivers/arm/gic/v3/gicv3_helpers.c \
  17. drivers/arm/gic/v3/gicdv3_helpers.c \
  18. drivers/arm/gic/v3/gicrv3_helpers.c
  19. ifeq (${GICV3_SUPPORT_GIC600AE_FMU}, 1)
  20. GICV3_SOURCES += drivers/arm/gic/v3/gic600ae_fmu.c \
  21. drivers/arm/gic/v3/gic600ae_fmu_helpers.c
  22. endif
  23. ifeq (${GICV3_OVERRIDE_DISTIF_PWR_OPS}, 0)
  24. GICV3_SOURCES += drivers/arm/gic/v3/arm_gicv3_common.c
  25. endif
  26. GICV3_SOURCES += drivers/arm/gic/v3/gic-x00.c
  27. ifeq (${GICV3_IMPL_GIC600_MULTICHIP}, 1)
  28. GICV3_SOURCES += drivers/arm/gic/v3/gic600_multichip.c
  29. endif
  30. # Set GIC-600 support
  31. $(eval $(call assert_boolean,GICV3_SUPPORT_GIC600))
  32. $(eval $(call add_define,GICV3_SUPPORT_GIC600))
  33. # Set GIC-600AE FMU support
  34. $(eval $(call assert_boolean,GICV3_SUPPORT_GIC600AE_FMU))
  35. $(eval $(call add_define,GICV3_SUPPORT_GIC600AE_FMU))
  36. # Set GIC-600 multichip support
  37. $(eval $(call assert_boolean,GICV3_IMPL_GIC600_MULTICHIP))
  38. $(eval $(call add_define,GICV3_IMPL_GIC600_MULTICHIP))
  39. # Set GICv4 extension
  40. $(eval $(call assert_boolean,GIC_ENABLE_V4_EXTN))
  41. $(eval $(call add_define,GIC_ENABLE_V4_EXTN))
  42. # Set support for extended PPI and SPI range
  43. $(eval $(call assert_boolean,GIC_EXT_INTID))
  44. $(eval $(call add_define,GIC_EXT_INTID))
  45. # Set errata workaround for GIC600/GIC600AE
  46. $(eval $(call assert_boolean,GIC600_ERRATA_WA_2384374))
  47. $(eval $(call add_define,GIC600_ERRATA_WA_2384374))