summaryrefslogtreecommitdiff
path: root/include/ns16550.h
diff options
context:
space:
mode:
authorTom Warren <twarren.nvidia@gmail.com>2011-04-28 07:55:13 -0700
committerSimon Glass <sjg@chromium.org>2011-08-24 09:56:21 -0700
commitd1b282db26a73650b51c680a693e707579ea8035 (patch)
treec985d8a611a2d549edd30902b0b4fd048686c455 /include/ns16550.h
parenta14a954f1ed38a92f83a7b2861e438f21d728027 (diff)
Fix Seaboard UART corruption on SPI activity
On Seaboard the UART and SPI interfere with each other. This causes the UART to receive spurious zero bytes after SPI transactions and also means that SPI can corrupt a few output characters when it starts up if they are still in the UART buffer. This hack corrects this by making SPI record that it may have corrupted the UART, and making the UART take evasive action. BUG=chromium-os:13228 TEST=Try developer U-Boot on Seaboard, make sure it auto-boots OK now Review URL: http://codereview.chromium.org/6715017 Change-Id: If2281357f177eeb3a19a170ddea22adbcf5942e9 Reviewed-on: http://gerrit.chromium.org/gerrit/191 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ns16550.h')
-rw-r--r--include/ns16550.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ns16550.h b/include/ns16550.h
index fa3e62eb1f..7c253def3a 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -163,3 +163,5 @@ void NS16550_putc (NS16550_t com_port, char c);
char NS16550_getc (NS16550_t regs, unsigned int port);
int NS16550_tstc (NS16550_t regs, unsigned int port);
void NS16550_reinit (NS16550_t com_port, int baud_divisor);
+void NS16550_clear(NS16550_t regs, unsigned port);
+void NS16550_drain(NS16550_t regs, unsigned port);