dts: riscv: gd32vf103: Use IRQ7 for interrupt of riscv_machine_timer
IRQ7 is placed on the second element of interrupt definition. Select it by DT_INST_IRQ_BY_IDX() explicitly. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
5cff937b3a
commit
eca3b1067e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
#define MTIME_REG DT_INST_REG_ADDR(0)
|
||||
#define MTIMECMP_REG (DT_INST_REG_ADDR(0) + 8)
|
||||
#define TIMER_IRQN DT_INST_IRQN(0)
|
||||
#define TIMER_IRQN DT_INST_IRQ_BY_IDX(0, 1, irq)
|
||||
/* sifive,clint0 */
|
||||
#elif DT_HAS_COMPAT_STATUS_OKAY(sifive_clint0)
|
||||
#define DT_DRV_COMPAT sifive_clint0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue