qemu-e2k/hw/riscv
Guenter Roeck 44e6dcd30a
riscv: sivive_u: Add dummy serial clock and aliases entry for uart
The riscv uart needs valid clocks. This requires a refereence
to the clock node. Since the SOC clock is not emulated by qemu,
add a reference to a fixed clock instead. The clock-frequency
entry in the uart node does not seem to be necessary, so drop it.

In addition to a reference to the clock, the driver also needs
an aliases entry for the serial node. Add it as well.

Without this patch, the serial driver fails to instantiate with
the following error message.

sifive-serial 10013000.uart: unable to find controller clock
sifive-serial: probe of 10013000.uart failed with error -2

when trying to boot Linux.

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>
2019-09-17 08:42:42 -07:00
..
Kconfig kconfig: add CONFIG_MSI_NONBROKEN 2019-03-18 09:39:57 +01:00
Makefile.objs hw/riscv: Split out the boot functions 2019-06-27 02:47:06 -07:00
boot.c Include hw/boards.h a bit less 2019-08-16 13:31:53 +02:00
riscv_hart.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
riscv_htif.c hw: Do not include "exec/address-spaces.h" if it is not necessary 2018-06-01 14:15:10 +02:00
sifive_clint.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
sifive_e.c Include sysemu/sysemu.h a lot less 2019-08-16 13:31:53 +02:00
sifive_gpio.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
sifive_plic.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
sifive_prci.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
sifive_test.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
sifive_u.c riscv: sivive_u: Add dummy serial clock and aliases entry for uart 2019-09-17 08:42:42 -07:00
sifive_uart.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
spike.c Include sysemu/sysemu.h a lot less 2019-08-16 13:31:53 +02:00
trace-events SiFive RISC-V GPIO Device 2019-05-24 11:58:30 -07:00
virt.c Include sysemu/sysemu.h a lot less 2019-08-16 13:31:53 +02:00