summaryrefslogtreecommitdiff
path: root/src/superio/nsc/pc87309/pc87309.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-05-29 14:43:39 +1000
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-31 21:18:05 +0200
commit32da8d900e2ca5fa9fe95d30dd064d593b26002f (patch)
tree9acea8cabf262e24b02924ef626ff94b591bad98 /src/superio/nsc/pc87309/pc87309.h
parentbeb0f2631fe6e49e86687cc3a7cf63ce41157a45 (diff)
superio/nsc/pc87309: Avoid .c includes in mainboard
Make superio romstage component link-time symbols. Change-Id: Icde27465a05946498ff7b8f1aaa7a9e8ba074272 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5880 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/superio/nsc/pc87309/pc87309.h')
-rw-r--r--src/superio/nsc/pc87309/pc87309.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/superio/nsc/pc87309/pc87309.h b/src/superio/nsc/pc87309/pc87309.h
index 396aa783fe..5f39b6e121 100644
--- a/src/superio/nsc/pc87309/pc87309.h
+++ b/src/superio/nsc/pc87309/pc87309.h
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef SUPERIO_NSC_PC87309_PC87309_H
-#define SUPERIO_NSC_PC87309_PC87309_H
+#ifndef SUPERIO_NSC_PC87309_H
+#define SUPERIO_NSC_PC87309_H
/* Datasheet: PC87309 SuperI/O Plug and Play Compatible Chip. */
@@ -31,4 +31,9 @@
#define PC87309_KBCM 0x05 /* Mouse */
#define PC87309_KBCK 0x06 /* Keyboard */
-#endif
+#include <arch/io.h>
+#include <stdint.h>
+
+void pc87309_enable_serial(device_t dev, u16 iobase);
+
+#endif /* SUPERIO_NSC_PC87309_H */