irq: rv32m1: Fixup IRQ values for multi-level IRQ handling
Remove the handcoded multi-level IRQ values in device tree. We now are able to generate the encoded multi-level IRQ value. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d6e6a2be38
commit
2c1e0439c7
3 changed files with 24 additions and 45 deletions
|
@ -7,19 +7,6 @@
|
|||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_OPENISA_INTMUX_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_OPENISA_INTMUX_H_
|
||||
|
||||
/*
|
||||
* Symbols for intmux channels, for DT readability when using
|
||||
* INTMUX_LEVEL2_IRQ().
|
||||
*/
|
||||
#define INTMUX_CH0 0
|
||||
#define INTMUX_CH1 1
|
||||
#define INTMUX_CH2 2
|
||||
#define INTMUX_CH3 3
|
||||
#define INTMUX_CH4 4
|
||||
#define INTMUX_CH5 5
|
||||
#define INTMUX_CH6 6
|
||||
#define INTMUX_CH7 7
|
||||
|
||||
/*
|
||||
* Level 1 IRQ offsets for each INTMUX channel.
|
||||
*/
|
||||
|
@ -32,12 +19,4 @@
|
|||
#define INTMUX_CH6_IRQ 30
|
||||
#define INTMUX_CH7_IRQ 31
|
||||
|
||||
/*
|
||||
* Multi-level IRQ number for a INTMUX channel/line interrupt.
|
||||
*
|
||||
* See gen_isr_tables.py for details.
|
||||
*/
|
||||
#define INTMUX_LEVEL2_IRQ(channel, line) \
|
||||
((((line) + 1) << 8) | ((channel) + INTMUX_CH0_IRQ))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue