On 8/6/20 6:03 AM, Philippe Mathieu-Daudé wrote: > In the same chipset, UARTs can be clocked at different rate, or the > input clock can be changed at runtime. The Clock API allow us to > propagate such clock rate change to the device. > Let the SerialState have its reference input clock (called 'rclk') > and if not clock is connected to the device, use the currently provided
s/not/no/ > frequency, to not modify the current code behavior. > > Signed-off-by: Philippe Mathieu-Daudé <[email protected]> > --- > include/hw/char/serial.h | 3 +++ > hw/char/serial.c | 35 ++++++++++++++++++++++++++++------- > 2 files changed, 31 insertions(+), 7 deletions(-) Reviewed-by: Richard Henderson <[email protected]> r~
