summaryrefslogtreecommitdiff
path: root/include/ns16550.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-05-25 15:30:33 -0700
committerSimon Glass <sjg@chromium.org>2011-08-24 10:01:31 -0700
commit001d0c8925a595fe3c155276496aae838ac189ce (patch)
treead86a2b7050e7e953ce139e0d58dc740ff57c6ca /include/ns16550.h
parent5584963a435637bf46e57a3eae8b2c2120f81294 (diff)
NS16550: add include guards to header file
BUG=chromium-os:13875 TEST=build U-Boot Change-Id: I8b64d77b2ac9c1833356add3dd76ec7dc331569c Reviewed-on: http://gerrit.chromium.org/gerrit/1582 Reviewed-by: Anton Staaf <robotboy@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ns16550.h')
-rw-r--r--include/ns16550.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ns16550.h b/include/ns16550.h
index 7c253def3a1..4ac2b26e704 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -21,6 +21,9 @@
* will not allocate storage for arrays of size 0
*/
+#ifndef __NS16550_H
+#define __NS16550_H
+
#if !defined(CONFIG_SYS_NS16550_REG_SIZE) || (CONFIG_SYS_NS16550_REG_SIZE == 0)
#error "Please define NS16550 registers size."
#elif (CONFIG_SYS_NS16550_REG_SIZE > 0)
@@ -165,3 +168,5 @@ 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);
+
+#endif