blob: 80b9010c1a628fc2fcf68a07790248b66ed8024e [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 */
Antonio Nino Diaz42eef852018-09-24 17:15:54 +01006
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <common/bl_common.h>
8#include <lib/utils.h>
9
developer65014b82015-04-13 14:47:57 +080010#include <mt8173_def.h>
developer65014b82015-04-13 14:47:57 +080011
12const 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
23void 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}