From 80d9804ff776c677932937ac3faf494acf378b45 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 30 Apr 2010 20:44:30 +0000 Subject: fix superio warnings. interesting side node: most superio .h files have no guards. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/ite/it8718f/it8718f.h | 5 +++++ src/superio/ite/it8718f/it8718f_early_serial.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/superio/ite/it8718f') diff --git a/src/superio/ite/it8718f/it8718f.h b/src/superio/ite/it8718f/it8718f.h index 2d2171fb0b..1967d25b5f 100644 --- a/src/superio/ite/it8718f/it8718f.h +++ b/src/superio/ite/it8718f/it8718f.h @@ -30,3 +30,8 @@ #define IT8718F_KBCM 0x06 /* Mouse */ #define IT8718F_IR 0x0a /* Consumer IR */ +#if defined(__PRE_RAM__) && !defined(__ROMCC__) +void it8718f_24mhz_clkin(void); +void it8718f_enable_serial(device_t dev, unsigned iobase); +#endif + diff --git a/src/superio/ite/it8718f/it8718f_early_serial.c b/src/superio/ite/it8718f/it8718f_early_serial.c index 6aae54d65e..fabbde5e8f 100644 --- a/src/superio/ite/it8718f/it8718f_early_serial.c +++ b/src/superio/ite/it8718f/it8718f_early_serial.c @@ -64,7 +64,7 @@ static void it8718f_exit_conf(void) it8718f_sio_write(0x00, IT8718F_CONFIG_REG_CC, 0x02); } -static void it8718f_24mhz_clkin(void) +void it8718f_24mhz_clkin(void) { it8718f_enter_conf(); @@ -75,7 +75,7 @@ static void it8718f_24mhz_clkin(void) } /* Enable the peripheral devices on the IT8718F Super I/O chip. */ -static void it8718f_enable_serial(device_t dev, unsigned iobase) +void it8718f_enable_serial(device_t dev, unsigned iobase) { /* (1) Enter the configuration state (MB PnP mode). */ it8718f_enter_conf(); -- cgit v1.2.3