+PPC folks On 9/2/20 7:03 PM, Philippe Mathieu-Daudé wrote: > On 9/2/20 6:49 PM, Peter Maydell wrote: [...] >> Incidentally the serial.c API seems to be slightly confused >> about the difference between setting the baudbase as a value >> in bps (ie the traditional 9600, 115200, etc values) or a >> frequency (where 115200 bps corresponds to a 1.8432MHz clock, >> apparently). Luckily nobody uses the serial_set_frequency() >> function :-) > > Yes, it is a mess, I'm trying to not give up cleaning it. > > Note, some boards correctly set the frequency: > > musicpal, omap1 based, kzm, pxa2xx, boston. > > lasi / jazz use an unlikely 8MHz clock. > > For ppc405 I'm not sure this is an odd case: > 99MHz / 248 = 399193.54838709677419354838
Or 12.375MHz / 31 But it is not a common xtal freq: https://en.wikipedia.org/wiki/Crystal_oscillator_frequencies > > Thanks! > >> >> thanks >> -- PMM >> >