blob: 931d5db06fe905b5bfe3a39f9afefabf5e4c9e3d [file] [log] [blame]
Stefan Reinauer425384442006-08-07 16:48:11 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Uwe Hermanna4c56c32006-11-01 14:31:00 +00003 *
Stefan Reinauer425384442006-08-07 16:48:11 +00004 * Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Stefan Reinauer425384442006-08-07 16:48:11 +000015 */
16
Edward O'Callaghanf2920022014-04-27 00:41:50 +100017#ifndef SUPERIO_ITE_IT8671F_H
18#define SUPERIO_ITE_IT8671F_H
19
20#include <arch/io.h>
21#include <stdint.h>
Uwe Hermann7fa08192010-11-08 20:55:24 +000022
Stefan Reinauer2073ce22006-09-06 16:12:39 +000023/* Datasheet: Not available online, got it from ITE per request. */
Stefan Reinauer2073ce22006-09-06 16:12:39 +000024
Stefan Reinauer4c556c52006-08-10 09:38:39 +000025#define IT8671F_FDC 0x00 /* Floppy */
Stefan Reinauer61be08b2006-08-29 17:41:14 +000026#define IT8671F_SP1 0x01 /* Com1 */
Stefan Reinauer425384442006-08-07 16:48:11 +000027#define IT8671F_SP2 0x02 /* Com2 */
Stefan Reinauer61be08b2006-08-29 17:41:14 +000028#define IT8671F_PP 0x03 /* Parallel port */
Uwe Hermann5c6bae22010-11-08 15:16:30 +000029#define IT8671F_KBCK 0x05 /* PS/2 keyboard */
30#define IT8671F_KBCM 0x06 /* PS/2 mouse */
Uwe Hermann7fa08192010-11-08 20:55:24 +000031
Edward O'Callaghanf2920022014-04-27 00:41:50 +100032void it8671f_48mhz_clkin(void);
Edward O'Callaghan85836c22014-07-09 20:26:25 +100033void it8671f_enable_serial(pnp_devfn_t dev, u16 iobase);
Edward O'Callaghanf2920022014-04-27 00:41:50 +100034
35#endif /* SUPERIO_ITE_IT8671F__H */