From: Chao Liu 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 Signed-off-by: Yifan Wang --- hw/char/dw8250.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/char/dw8250.c b/hw/char/dw8250.c index 80ace7f7a7..a888ab207a 100644 --- a/hw/char/dw8250.c +++ b/hw/char/dw8250.c @@ -109,6 +109,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