Add support for ITE IT8772F SuperI/O chip
[coreboot.git] / src / superio / ite / it8772f / chip.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2011 The ChromiumOS Authors.  All rights reserved.
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.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20
21 #ifndef SUPERIO_ITE_IT8772F_CHIP_H
22 #define SUPERIO_ITE_IT8772F_CHIP_H
23
24 #include <device/device.h>
25 #include <pc80/keyboard.h>
26 #include <uart8250.h>
27
28 extern struct chip_operations superio_ite_it8772f_ops;
29
30 struct superio_ite_it8772f_config {
31         struct pc_keyboard keyboard;
32
33         /* GPIO SimpleIO register values via devicetree.cb */
34         u8 gpio_set1;
35         u8 gpio_set2;
36         u8 gpio_set3;
37         u8 gpio_set4;
38         u8 gpio_set5;
39         u8 gpio_set6;
40
41         u8 skip_keyboard;
42
43         /*
44          * Enable external temperature sensor to use PECI GetTemp()
45          * command and store in register TMPIN 1, 2, or 3.
46          */
47         u8 peci_tmpin;
48
49         /*
50          * Enable a FAN for sofware control.
51          */
52         u8 fan1_enable;
53         u8 fan2_enable;
54         u8 fan3_enable;
55 };
56
57 #endif