drivers: interrupt_controller: irq_steer: use new multilevel irq impl
Update the NXP's irq_steer driver to use the new multi-level interrupt implementation. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
e2bcedc3ad
commit
5d9e266d13
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,7 @@ config LEGACY_MULTI_LEVEL_TABLE_GENERATION
|
|||
select DEPRECATED
|
||||
depends on MULTI_LEVEL_INTERRUPTS
|
||||
depends on !PLIC
|
||||
depends on !NXP_IRQSTEER
|
||||
help
|
||||
A make-shift Kconfig to continue generating the multi-level interrupt LUT
|
||||
with the legacy way using DT macros.
|
||||
|
|
|
@ -223,9 +223,11 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/devicetree/interrupt_controller.h>
|
||||
#include <zephyr/irq.h>
|
||||
#include <fsl_irqsteer.h>
|
||||
#include <zephyr/cache.h>
|
||||
#include <zephyr/sw_isr_table.h>
|
||||
|
||||
#include "sw_isr_common.h"
|
||||
|
||||
|
@ -478,3 +480,10 @@ DEVICE_DT_INST_DEFINE(0,
|
|||
NULL, &irqsteer_config,
|
||||
PRE_KERNEL_1, CONFIG_INTC_INIT_PRIORITY,
|
||||
NULL);
|
||||
|
||||
#define NXP_IRQSTEER_MASTER_IRQ_ENTRY_DEF(node_id) \
|
||||
IRQ_PARENT_ENTRY_DEFINE(CONCAT(nxp_irqsteer_master_, DT_NODE_CHILD_IDX(node_id)), NULL, \
|
||||
DT_IRQN(node_id), INTC_CHILD_ISR_TBL_OFFSET(node_id), \
|
||||
DT_INTC_GET_AGGREGATOR_LEVEL(node_id));
|
||||
|
||||
DT_INST_FOREACH_CHILD_STATUS_OKAY(0, NXP_IRQSTEER_MASTER_IRQ_ENTRY_DEF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue