]> Git Repo - qemu.git/commitdiff
riscv: sifive_u: Correct UART0's IRQ in the device tree
authorBin Meng <[email protected]>
Sun, 17 Mar 2019 08:03:11 +0000 (01:03 -0700)
committerPalmer Dabbelt <[email protected]>
Tue, 19 Mar 2019 12:18:42 +0000 (05:18 -0700)
The UART0's interrupt vector is wrongly set to 1 in the device tree.
Use SIFIVE_U_UART0_IRQ instead.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
hw/riscv/sifive_u.c

index 3199238ba01e833734d36b5f9c3fe113fe128790..5ecc47cea35d3087851eedd5dadb41a89b1f292a 100644 (file)
@@ -244,7 +244,7 @@ static void create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap,
     qemu_fdt_setprop_cell(fdt, nodename, "clock-frequency",
                           SIFIVE_U_CLOCK_FREQ / 2);
     qemu_fdt_setprop_cells(fdt, nodename, "interrupt-parent", plic_phandle);
-    qemu_fdt_setprop_cells(fdt, nodename, "interrupts", 1);
+    qemu_fdt_setprop_cells(fdt, nodename, "interrupts", SIFIVE_U_UART0_IRQ);
 
     qemu_fdt_add_subnode(fdt, "/chosen");
     qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", nodename);
This page took 0.023038 seconds and 4 git commands to generate.