From: Andre Przywara <andre.przywara@linaro.org>
To: stefano.stabellini@eu.citrix.com, Ian.Campbell@citrix.com,
julien.grall@linaro.org
Cc: patches@linaro.org, Andre Przywara <andre.przywara@linaro.org>,
xen-devel@lists.xen.org
Subject: [PATCH] PL011: don't force baud rate of 38400 bps
Date: Tue, 13 Aug 2013 17:12:52 +0200 [thread overview]
Message-ID: <1376406772-23737-1-git-send-email-andre.przywara@linaro.org> (raw)
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>
---
xen/drivers/char/pl011.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/drivers/char/pl011.c b/xen/drivers/char/pl011.c
index 8e90520..0e1eb64 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;
--
1.7.12.1
next reply other threads:[~2013-08-13 15:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 15:12 Andre Przywara [this message]
2013-08-20 15:04 ` [PATCH] PL011: don't force baud rate of 38400 bps Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1376406772-23737-1-git-send-email-andre.przywara@linaro.org \
--to=andre.przywara@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=julien.grall@linaro.org \
--cc=patches@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).