[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hw/clock: What clock rate for virt machines?
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: hw/clock: What clock rate for virt machines? |
Date: |
Wed, 2 Sep 2020 19:09:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
+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
>>
>