2015-04-13 07:47:57 +01:00
|
|
|
/*
|
2016-07-05 09:55:03 +01:00
|
|
|
* Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved.
|
2015-04-13 07:47:57 +01:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2015-04-13 07:47:57 +01:00
|
|
|
*/
|
|
|
|
#include <arm_gic.h>
|
|
|
|
#include <bl_common.h>
|
|
|
|
#include <mt8173_def.h>
|
2016-07-05 09:55:03 +01:00
|
|
|
#include <utils.h>
|
2015-04-13 07:47:57 +01:00
|
|
|
|
|
|
|
const unsigned int mt_irq_sec_array[] = {
|
|
|
|
MT_IRQ_SEC_SGI_0,
|
|
|
|
MT_IRQ_SEC_SGI_1,
|
|
|
|
MT_IRQ_SEC_SGI_2,
|
|
|
|
MT_IRQ_SEC_SGI_3,
|
|
|
|
MT_IRQ_SEC_SGI_4,
|
|
|
|
MT_IRQ_SEC_SGI_5,
|
|
|
|
MT_IRQ_SEC_SGI_6,
|
|
|
|
MT_IRQ_SEC_SGI_7
|
|
|
|
};
|
|
|
|
|
|
|
|
void plat_mt_gic_init(void)
|
|
|
|
{
|
|
|
|
arm_gic_init(BASE_GICC_BASE,
|
|
|
|
BASE_GICD_BASE,
|
|
|
|
BASE_GICR_BASE,
|
|
|
|
mt_irq_sec_array,
|
|
|
|
ARRAY_SIZE(mt_irq_sec_array));
|
|
|
|
}
|