diff options
author | Guenter Roeck | 2019-07-19 15:40:45 +0200 |
---|---|---|
committer | Palmer Dabbelt | 2019-09-17 17:42:42 +0200 |
commit | 04ece4f8205b19b31c4c6ebc481c9653c7fadd39 (patch) | |
tree | 3d6d3fadb30350c295e038fab94d1046e5d906ec /hw/riscv | |
parent | riscv: sivive_u: Add dummy serial clock and aliases entry for uart (diff) | |
download | qemu-04ece4f8205b19b31c4c6ebc481c9653c7fadd39.tar.gz qemu-04ece4f8205b19b31c4c6ebc481c9653c7fadd39.tar.xz qemu-04ece4f8205b19b31c4c6ebc481c9653c7fadd39.zip |
riscv: sifive_u: Fix clock-names property for ethernet node
The correct property name is clock-names, not clocks-names.
Without this patch, the Ethernet driver fails to instantiate with
the following error.
macb 100900fc.ethernet: failed to get macb_clk (-2)
macb: probe of 100900fc.ethernet failed with error -2
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'hw/riscv')
-rw-r--r-- | hw/riscv/sifive_u.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 8313f2605e..ae5a16e636 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -215,7 +215,7 @@ static void *create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap, qemu_fdt_setprop_cells(fdt, nodename, "interrupts", SIFIVE_U_GEM_IRQ); qemu_fdt_setprop_cells(fdt, nodename, "clocks", ethclk_phandle, ethclk_phandle, ethclk_phandle); - qemu_fdt_setprop(fdt, nodename, "clocks-names", ethclk_names, + qemu_fdt_setprop(fdt, nodename, "clock-names", ethclk_names, sizeof(ethclk_names)); qemu_fdt_setprop_cells(fdt, nodename, "#address-cells", 1); qemu_fdt_setprop_cells(fdt, nodename, "#size-cells", 0); |