drivers: interrupt_controller: fix usage of DT_ defines
This commit switches from using device tree automatically generated address-based defines to the instance id-based ones. Without this change it is not be possible to re-use the driver on boards where the timer and uart devices are located at different locations than 0xe0002800 and 0xe0001800 respectively. Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
This commit is contained in:
parent
ee36c2ce53
commit
b8f54e7c05
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@
|
|||
#define IRQ_MASK DT_INST_0_VEXRISCV_INTC0_IRQ_MASK_BASE_ADDRESS
|
||||
#define IRQ_PENDING DT_INST_0_VEXRISCV_INTC0_IRQ_PENDING_BASE_ADDRESS
|
||||
|
||||
#define TIMER0_IRQ DT_LITEX_TIMER0_E0002800_IRQ_0
|
||||
#define UART0_IRQ DT_LITEX_UART0_E0001800_IRQ_0
|
||||
#define TIMER0_IRQ DT_INST_0_LITEX_TIMER0_IRQ_0
|
||||
#define UART0_IRQ DT_INST_0_LITEX_UART0_IRQ_0
|
||||
|
||||
#define ETH0_IRQ DT_INST_0_LITEX_ETH0_IRQ_0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue