diff options
author | Andre Przywara <andre.przywara@linaro.org> | 2013-08-13 17:12:52 +0200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-20 15:20:39 +0100 |
commit | db58a28b9b41722aee7c812d6621360c88317049 (patch) | |
tree | 781df9a5b8db6f3608d27bf93ea32e1443b3c339 /xen/drivers | |
parent | c8ed9db1fa7100b296c017b24369cc5d94e5c16f (diff) | |
download | xen-db58a28b9b41722aee7c812d6621360c88317049.tar.gz xen-db58a28b9b41722aee7c812d6621360c88317049.tar.bz2 xen-db58a28b9b41722aee7c812d6621360c88317049.zip |
PL011: don't force baud rate of 38400 bps
The PL011 driver currently sets the baudrate to a hardcoded value of
38400 bits/second. This will break Calxeda Midway, which uses 115200
bps.
Instead don't tinker with the baud rate register at all and rely on
the firmware or bootloader setting the correct value in here.
This works fine on Versatile Express and Calxeda Midway.
Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/drivers')
-rw-r--r-- | xen/drivers/char/pl011.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/drivers/char/pl011.c b/xen/drivers/char/pl011.c index 05d034f4f6..3747c166a0 100644 --- a/xen/drivers/char/pl011.c +++ b/xen/drivers/char/pl011.c @@ -229,7 +229,7 @@ static int __init pl011_uart_init(struct dt_device_node *dev, uart = &pl011_com; uart->clock_hz = 0x16e3600; - uart->baud = 38400; + uart->baud = BAUD_AUTO; uart->data_bits = 8; uart->parity = PARITY_NONE; uart->stop_bits = 1; |