1 /*
2  * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <common/bl_common.h>
8 #include <lib/utils.h>
9 
10 #include <mt8173_def.h>
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 
plat_mt_gic_init(void)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 }
31