summaryrefslogtreecommitdiff
path: root/src/superio/ite
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/ite')
-rw-r--r--src/superio/ite/it8772f/early_serial.c21
-rw-r--r--src/superio/ite/it8772f/it8772f.h10
2 files changed, 7 insertions, 24 deletions
diff --git a/src/superio/ite/it8772f/early_serial.c b/src/superio/ite/it8772f/early_serial.c
index 8bf2964a50..e9db117eae 100644
--- a/src/superio/ite/it8772f/early_serial.c
+++ b/src/superio/ite/it8772f/early_serial.c
@@ -22,6 +22,8 @@
#include <device/pnp_def.h>
#include "it8772f.h"
+/* NOTICE: This file is deprecated, use ite/common instead */
+
/* The base address is 0x2e or 0x4e, depending on config bytes. */
#define SIO_BASE IT8772F_BASE
#define SIO_INDEX SIO_BASE
@@ -85,25 +87,6 @@ void it8772f_enable_3vsbsw(void)
it8772f_exit_conf();
}
-void it8772f_kill_watchdog(void)
-{
- it8772f_enter_conf();
- it8772f_sio_write(IT8772F_CONFIG_REG_LDN, IT8772F_GPIO);
- it8772f_sio_write(IT8772F_CONFIG_REG_WATCHDOG, 0x00);
- it8772f_exit_conf();
-}
-
-/* Enable the serial port(s). */
-void it8772f_enable_serial(device_t dev, u16 iobase)
-{
- it8772f_enter_conf();
- it8772f_sio_write(IT8772F_CONFIG_REG_LDN, dev & 0xff);
- it8772f_sio_write(PNP_IDX_IO0, (iobase >> 8) & 0xff);
- it8772f_sio_write(PNP_IDX_IO0+1, iobase & 0xff);
- it8772f_sio_write(PNP_IDX_EN, 1);
- it8772f_exit_conf();
-}
-
/* Set AC resume to be up to the Southbridge */
void it8772f_ac_resume_southbridge(void)
{
diff --git a/src/superio/ite/it8772f/it8772f.h b/src/superio/ite/it8772f/it8772f.h
index f881d7a92a..3d45f095c1 100644
--- a/src/superio/ite/it8772f/it8772f.h
+++ b/src/superio/ite/it8772f/it8772f.h
@@ -18,9 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef SUPERIO_ITE_IT8772F_IT8772F_H
-#define SUPERIO_ITE_IT8772F_IT8772F_H
+#ifndef SUPERIO_ITE_IT8772F_H
+#define SUPERIO_ITE_IT8772F_H
+/* FIXME: SUPERIO include.c */
#define IT8772F_BASE 0x2e
#define IT8772F_FDC 0x00 /* Floppy disk controller */
@@ -107,11 +108,10 @@
u8 it8772f_sio_read(u8 index);
void it8772f_sio_write(u8 index, u8 value);
-void it8772f_enable_serial(device_t dev, u16 iobase);
-void it8772f_kill_watchdog(void);
void it8772f_24mhz_clkin(void);
void it8772f_enable_3vsbsw(void);
void it8772f_ac_resume_southbridge(void);
void it8772f_gpio_setup(int set, u8 func_select, u8 polarity, u8 pullup,
u8 output, u8 enable);
-#endif
+
+#endif /* SUPERIO_ITE_IT8772F_H */