From: Chao Liu <[email protected]> The RK3588 SoC clocks its UARTs at 24 MHz, so the embedded serial device needs a matching baud base to calculate the guest baud rate correctly. Alias the serial-mm baudbase property on the DW8250 device so that the SoC model can set it.
Signed-off-by: Chao Liu <[email protected]> Signed-off-by: Yifan Wang <[email protected]> --- hw/char/dw8250.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/char/dw8250.c b/hw/char/dw8250.c index 4f9a8ea989..6fba0d66aa 100644 --- a/hw/char/dw8250.c +++ b/hw/char/dw8250.c @@ -117,6 +117,8 @@ static void dw8250_instance_init(Object *obj) object_initialize_child(obj, "serial-mm", &s->serial_mm, TYPE_SERIAL_MM); object_property_add_alias(obj, "chardev", OBJECT(&s->serial_mm), "chardev"); + object_property_add_alias(obj, "baudbase", OBJECT(&s->serial_mm), + "baudbase"); } static void dw8250_realize(DeviceState *dev, Error **errp) -- 2.53.0
