blob: c955d618403e78be8e76fe41ac8763a362733b38 [file] [log] [blame]
developer65014b82015-04-13 14:47:57 +08001/*
Sandrine Bailleux7659a262016-07-05 09:55:03 +01002 * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
developer65014b82015-04-13 14:47:57 +08003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
developer65014b82015-04-13 14:47:57 +08005 */
6#include <arm_gic.h>
7#include <bl_common.h>
8#include <mt8173_def.h>
Sandrine Bailleux7659a262016-07-05 09:55:03 +01009#include <utils.h>
developer65014b82015-04-13 14:47:57 +080010
11const 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
22void 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}