serial: Add interface to set reference oscillator frequency
authorStefan Weil <weil@mail.berlios.de>
Sat, 31 Oct 2009 10:28:11 +0000 (11:28 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 12 Nov 2009 17:23:53 +0000 (11:23 -0600)
commit038eaf82c853f3bf8d4c106c0677bbf4adada7de
treeb7f750e6f884315960d195295d03e95c99bab09f
parentba6d048aadb3a7fb87781a76dc89bb09edac1fcf
serial: Add interface to set reference oscillator frequency

Many (most?) serial interfaces have a programmable
clock which provides the reference frequency ("baudbase").
So a fixed baudbase which is only set once can be wrong.

omap1.c is an example which could use the new interface
to change baudbase when the programmable clock changes.
ar7 system emulation (still not part of standard QEMU)
is similar to omap and already uses serial_set_frequency.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.h
hw/serial.c