summaryrefslogtreecommitdiff
path: root/include/ns16550.h
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-08-19 14:28:25 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:37 -0700
commit8d920268a376a12087d846ee58190a4d2b0f5794 (patch)
tree2e155f11224880c14a6b3d4b472263ee8d1984f8 /include/ns16550.h
parentb124fd0733f61faef826f440645da9b386930e3e (diff)
Allow NS16550 driver to support IO and memory mapped registers
This is needed to use the same config files for all x86 platforms, while the right incarnation of register accesses is determined by the device tree. BUG=chrome-os-partner:4520 TEST=boot u-boot on Alex and Stumpy, get serial output on both. Change-Id: Ibb8192657861713d656358c5f085f6dde2cb1365 Reviewed-on: http://gerrit.chromium.org/gerrit/6248 Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'include/ns16550.h')
-rw-r--r--include/ns16550.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ns16550.h b/include/ns16550.h
index 4ac2b26e704..180959e7717 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -161,6 +161,9 @@ typedef volatile struct NS16550 *NS16550_t;
/* useful defaults for LCR */
#define UART_LCR_8N1 0x03
+#if defined(CONFIG_SYS_NS16550_RUNTIME_MAPPED)
+void NS16550_is_io_mapped(int io_mapped);
+#endif
void NS16550_init (NS16550_t com_port, int baud_divisor);
void NS16550_putc (NS16550_t com_port, char c);
char NS16550_getc (NS16550_t regs, unsigned int port);