From: Jonathan McDowell <noodles@earth.li>
To: linux-serial@vger.kernel.org, rmk+serial@arm.linux.org.uk
Cc: linux-omap-open-source@linux.omap.com, linux-kernel@vger.kernel.org
Subject: [PATCH] OMAP1510 serial fix for 115200 baud.
Date: Wed, 9 Aug 2006 21:11:46 +0100 [thread overview]
Message-ID: <20060809201146.GG27094@earth.li> (raw)
The patch below is necessary for 115200 baud on an OMAP1510 internal
UART. It's been in the linux-omap tree for some time and with it applied
to a vanilla Linus git tree the serial console on the Amstrad Delta
(which is OMAP1510 based and whose initial bootloader runs at 115200)
works fine (it doesn't without it). Is there any possibility of getting
it accepted into mainline? It shouldn't affect any other platform due to
the ifdef/cpu_is guards.
Signed-Off-By: Jonathan McDowell <noodles@earth.li>
-----
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index bbf78aa..76cd21d 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -1885,6 +1885,17 @@ #endif
serial_outp(up, UART_EFR, efr);
}
+#ifdef CONFIG_ARCH_OMAP15XX
+ /* Workaround to enable 115200 baud on OMAP1510 internal ports */
+ if (cpu_is_omap1510() && is_omap_port((unsigned int)up->port.membase)) {
+ if (baud == 115200) {
+ quot = 1;
+ serial_out(up, UART_OMAP_OSC_12M_SEL, 1);
+ } else
+ serial_out(up, UART_OMAP_OSC_12M_SEL, 0);
+ }
+#endif
+
if (up->capabilities & UART_NATSEMI) {
/* Switch to bank 2 not bank 1, to avoid resetting EXCR2 */
serial_outp(up, UART_LCR, 0xe0);
-----
J.
--
] http://www.earth.li/~noodles/ [] 101 things you can't have too much [
] PGP/GPG Key @ the.earth.li [] of : 1 - Cable ties. [
] via keyserver, web or email. [] [
] RSA: 4DC4E7FD / DSA: 5B430367 [] [
reply other threads:[~2006-08-09 20:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060809201146.GG27094@earth.li \
--to=noodles@earth.li \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap-open-source@linux.omap.com \
--cc=linux-serial@vger.kernel.org \
--cc=rmk+serial@arm.linux.org.uk \
/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).