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:
Mateusz Holenko 2019-10-17 11:50:45 +02:00 committed by Kumar Gala
commit b8f54e7c05

View file

@ -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