Stefan Reinauer | 42538444 | 2006-08-07 16:48:11 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Uwe Hermann | a4c56c3 | 2006-11-01 14:31:00 +0000 | [diff] [blame] | 3 | * |
Stefan Reinauer | 42538444 | 2006-08-07 16:48:11 +0000 | [diff] [blame] | 4 | * 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 Reinauer | 42538444 | 2006-08-07 16:48:11 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
Edward O'Callaghan | f292002 | 2014-04-27 00:41:50 +1000 | [diff] [blame] | 17 | #ifndef SUPERIO_ITE_IT8671F_H |
| 18 | #define SUPERIO_ITE_IT8671F_H |
| 19 | |
| 20 | #include <arch/io.h> |
| 21 | #include <stdint.h> |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 22 | |
Stefan Reinauer | 2073ce2 | 2006-09-06 16:12:39 +0000 | [diff] [blame] | 23 | /* Datasheet: Not available online, got it from ITE per request. */ |
Stefan Reinauer | 2073ce2 | 2006-09-06 16:12:39 +0000 | [diff] [blame] | 24 | |
Stefan Reinauer | 4c556c5 | 2006-08-10 09:38:39 +0000 | [diff] [blame] | 25 | #define IT8671F_FDC 0x00 /* Floppy */ |
Stefan Reinauer | 61be08b | 2006-08-29 17:41:14 +0000 | [diff] [blame] | 26 | #define IT8671F_SP1 0x01 /* Com1 */ |
Stefan Reinauer | 42538444 | 2006-08-07 16:48:11 +0000 | [diff] [blame] | 27 | #define IT8671F_SP2 0x02 /* Com2 */ |
Stefan Reinauer | 61be08b | 2006-08-29 17:41:14 +0000 | [diff] [blame] | 28 | #define IT8671F_PP 0x03 /* Parallel port */ |
Uwe Hermann | 5c6bae2 | 2010-11-08 15:16:30 +0000 | [diff] [blame] | 29 | #define IT8671F_KBCK 0x05 /* PS/2 keyboard */ |
| 30 | #define IT8671F_KBCM 0x06 /* PS/2 mouse */ |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 31 | |
Edward O'Callaghan | f292002 | 2014-04-27 00:41:50 +1000 | [diff] [blame] | 32 | void it8671f_48mhz_clkin(void); |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 33 | void it8671f_enable_serial(pnp_devfn_t dev, u16 iobase); |
Edward O'Callaghan | f292002 | 2014-04-27 00:41:50 +1000 | [diff] [blame] | 34 | |
| 35 | #endif /* SUPERIO_ITE_IT8671F__H */ |