Skip to content

Commit 3a19948

Browse files
gmarullcarlescufi
authored andcommitted
drivers: intc: litex: remove machine timer IRQ usage
This platform does not use RISC-V machine timer, however, the interrupt controller had references to its IRQ. Remove them. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 1c41423 commit 3a19948

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/interrupt_controller/intc_vexriscv_litex.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ static int vexriscv_litex_irq_init(const struct device *dev)
124124
{
125125
ARG_UNUSED(dev);
126126
__asm__ volatile ("csrrs x0, mie, %0"
127-
:: "r"((1 << RISCV_MACHINE_TIMER_IRQ)
128-
| (1 << RISCV_MACHINE_EXT_IRQ)));
127+
:: "r"(1 << RISCV_MACHINE_EXT_IRQ));
129128
vexriscv_litex_irq_setie(1);
130129
IRQ_CONNECT(RISCV_MACHINE_EXT_IRQ, 0, vexriscv_litex_irq_handler,
131130
NULL, 0);

0 commit comments

Comments
 (0)