From d2da65e3abd93840c81fbc30c6488b625baf359b Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 6 Aug 2014 21:32:50 +1000 Subject: 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 Reviewed-on: http://review.coreboot.org/6509 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/superio/smsc/sch4037/sch4037_early_init.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/superio/smsc/sch4037/sch4037_early_init.c') 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 +#include +#include + #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; -- cgit v1.2.3