2020-02-11 17:08:28 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief ARM64 Cortex-A interrupt initialisation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <arch/cpu.h>
|
|
|
|
#include <drivers/interrupt_controller/gic.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialise interrupts
|
|
|
|
*
|
|
|
|
* This function invokes the ARM Generic Interrupt Controller (GIC) driver to
|
|
|
|
* initialise the interrupt system on the SoCs that use the GIC as the primary
|
|
|
|
* interrupt controller.
|
|
|
|
*
|
|
|
|
* When a custom interrupt controller is used, however, the SoC layer function
|
|
|
|
* is invoked for SoC-specific interrupt system initialisation.
|
|
|
|
*/
|
|
|
|
void z_arm64_interrupt_init(void)
|
|
|
|
{
|
2020-12-11 18:03:48 +08:00
|
|
|
#ifdef CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER
|
2020-02-11 17:08:28 +08:00
|
|
|
/* Invoke SoC-specific interrupt controller initialisation */
|
|
|
|
z_soc_irq_init();
|
|
|
|
#endif
|
|
|
|
}
|