diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-30 20:44:30 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-30 20:44:30 +0000 |
commit | 80d9804ff776c677932937ac3faf494acf378b45 (patch) | |
tree | 6c3bdad8d9311c962aa05635a5f11c82df4d72a6 /src/superio/ite/it8718f | |
parent | 2c32e9902c4f4a76e404a9a3e673857d5fe7835b (diff) |
fix superio warnings. interesting side node: most superio .h files have no
guards.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio/ite/it8718f')
-rw-r--r-- | src/superio/ite/it8718f/it8718f.h | 5 | ||||
-rw-r--r-- | src/superio/ite/it8718f/it8718f_early_serial.c | 4 |
2 files changed, 7 insertions, 2 deletions
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(); |