aboutsummaryrefslogtreecommitdiff
path: root/src/superio/smsc/sch4037/sch4037_early_init.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-08-06 21:32:50 +1000
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-08-23 05:31:03 +0200
commitd2da65e3abd93840c81fbc30c6488b625baf359b (patch)
tree117748994109296f57629615ba1e926c9b847acd /src/superio/smsc/sch4037/sch4037_early_init.c
parent47b8075bb14de4dad4cfd2c2f42482e04644b28d (diff)
superio/smsc/sch4037: Cleanup and fix .c inclusion
Clean up both ram and rom stage support and fix board to match. Change-Id: I55e3e7338c0551f0fb663eb9707f16ecdc1aca35 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6509 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/superio/smsc/sch4037/sch4037_early_init.c')
-rw-r--r--src/superio/smsc/sch4037/sch4037_early_init.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/superio/smsc/sch4037/sch4037_early_init.c b/src/superio/smsc/sch4037/sch4037_early_init.c
index 29517ed662..099e5f27c6 100644
--- a/src/superio/smsc/sch4037/sch4037_early_init.c
+++ b/src/superio/smsc/sch4037/sch4037_early_init.c
@@ -19,21 +19,24 @@
#include <arch/io.h>
+#include <device/pnp.h>
+#include <stdint.h>
+
#include "sch4037.h"
-static inline void pnp_enter_conf_state(device_t dev)
+static void pnp_enter_conf_state(device_t dev)
{
- unsigned port = dev>>8;
+ unsigned port = dev >> 8;
outb(0x55, port);
}
static void pnp_exit_conf_state(device_t dev)
{
- unsigned port = dev>>8;
+ unsigned port = dev >> 8;
outb(0xaa, port);
}
-static inline void sch4037_early_init(unsigned port)
+void sch4037_early_init(unsigned port)
{
device_t dev;