developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 1 | /* |
Sandrine Bailleux | 7659a26 | 2016-07-05 09:55:03 +0100 | [diff] [blame] | 2 | * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 5 | */ |
Antonio Nino Diaz | 42eef85 | 2018-09-24 17:15:54 +0100 | [diff] [blame] | 6 | |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 7 | #include <bl_common.h> |
| 8 | #include <mt8173_def.h> |
Sandrine Bailleux | 7659a26 | 2016-07-05 09:55:03 +0100 | [diff] [blame] | 9 | #include <utils.h> |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 10 | |
| 11 | const unsigned int mt_irq_sec_array[] = { |
| 12 | MT_IRQ_SEC_SGI_0, |
| 13 | MT_IRQ_SEC_SGI_1, |
| 14 | MT_IRQ_SEC_SGI_2, |
| 15 | MT_IRQ_SEC_SGI_3, |
| 16 | MT_IRQ_SEC_SGI_4, |
| 17 | MT_IRQ_SEC_SGI_5, |
| 18 | MT_IRQ_SEC_SGI_6, |
| 19 | MT_IRQ_SEC_SGI_7 |
| 20 | }; |
| 21 | |
| 22 | void plat_mt_gic_init(void) |
| 23 | { |
| 24 | arm_gic_init(BASE_GICC_BASE, |
| 25 | BASE_GICD_BASE, |
| 26 | BASE_GICR_BASE, |
| 27 | mt_irq_sec_array, |
| 28 | ARRAY_SIZE(mt_irq_sec_array)); |
| 29 | } |