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 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <common/bl_common.h> |
| 8 | #include <lib/utils.h> |
| 9 | |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 10 | #include <mt8173_def.h> |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 11 | |
| 12 | const unsigned int mt_irq_sec_array[] = { |
| 13 | MT_IRQ_SEC_SGI_0, |
| 14 | MT_IRQ_SEC_SGI_1, |
| 15 | MT_IRQ_SEC_SGI_2, |
| 16 | MT_IRQ_SEC_SGI_3, |
| 17 | MT_IRQ_SEC_SGI_4, |
| 18 | MT_IRQ_SEC_SGI_5, |
| 19 | MT_IRQ_SEC_SGI_6, |
| 20 | MT_IRQ_SEC_SGI_7 |
| 21 | }; |
| 22 | |
| 23 | void plat_mt_gic_init(void) |
| 24 | { |
| 25 | arm_gic_init(BASE_GICC_BASE, |
| 26 | BASE_GICD_BASE, |
| 27 | BASE_GICR_BASE, |
| 28 | mt_irq_sec_array, |
| 29 | ARRAY_SIZE(mt_irq_sec_array)); |
| 30 | } |