plat_mt_gic.c 558 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <common/bl_common.h>
  7. #include <lib/utils.h>
  8. #include <mt8173_def.h>
  9. const unsigned int mt_irq_sec_array[] = {
  10. MT_IRQ_SEC_SGI_0,
  11. MT_IRQ_SEC_SGI_1,
  12. MT_IRQ_SEC_SGI_2,
  13. MT_IRQ_SEC_SGI_3,
  14. MT_IRQ_SEC_SGI_4,
  15. MT_IRQ_SEC_SGI_5,
  16. MT_IRQ_SEC_SGI_6,
  17. MT_IRQ_SEC_SGI_7
  18. };
  19. void plat_mt_gic_init(void)
  20. {
  21. arm_gic_init(BASE_GICC_BASE,
  22. BASE_GICD_BASE,
  23. BASE_GICR_BASE,
  24. mt_irq_sec_array,
  25. ARRAY_SIZE(mt_irq_sec_array));
  26. }