summaryrefslogtreecommitdiff
path: root/src/superio/nsc/pc97317/early_serial.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2015-01-04 16:05:59 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2015-01-04 13:47:45 +0100
commitfc4e8550afc5aab4af7801e2e008a8712f8c7795 (patch)
treefbc6c5e86af512f85c55a5b3e8e82c0e9873dcd0 /src/superio/nsc/pc97317/early_serial.c
parente64f5b1bcd589b4ac517909f5332f9926ab7d642 (diff)
downloadcoreboot-fc4e8550afc5aab4af7801e2e008a8712f8c7795.tar.xz
superio/nsc/pc97317: Use link-time symbols over .c inclusion
Change-Id: Ia45bc7a880d0dab57c56a0452858cd26626f09df Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/8076 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/superio/nsc/pc97317/early_serial.c')
-rw-r--r--src/superio/nsc/pc97317/early_serial.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/superio/nsc/pc97317/early_serial.c b/src/superio/nsc/pc97317/early_serial.c
index ad43010838..f9bc69e280 100644
--- a/src/superio/nsc/pc97317/early_serial.c
+++ b/src/superio/nsc/pc97317/early_serial.c
@@ -19,13 +19,15 @@
*/
#include <arch/io.h>
+#include <device/pnp.h>
+#include <stdint.h>
#include "pc97317.h"
#define PM_DEV PNP_DEV(0x2e, PC97317_PM)
#define PM_BASE 0xe8
/* The PC97317 needs clocks to be set up before the serial port will operate. */
-static void pc97317_enable_serial(pnp_devfn_t dev, u16 iobase)
+void pc97317_enable_serial(pnp_devfn_t dev, u16 iobase)
{
/* Set base address of power management unit. */
pnp_set_logical_device(PM_DEV);