]> git.proxmox.com Git - mirror_qemu.git/commit
riscv: sivive_u: Add dummy serial clock and aliases entry for uart
authorGuenter Roeck <linux@roeck-us.net>
Fri, 19 Jul 2019 13:40:44 +0000 (06:40 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:42 +0000 (08:42 -0700)
commit44e6dcd30a10e5b5d70cbf1bc248b146eabcec03
treef7cda0a3252e19937f08223662db382fe982a87e
parent0f8d4462498afd2f071cb5c837750b703a48ba18
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>
hw/riscv/sifive_u.c