blob: 6ae3989e6ca8973460ab992ef69fc8319797eb32 [file] [log] [blame]
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -07001/*
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.
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -070015 */
16
17#ifndef SUPERIO_ITE_IT8772F_CHIP_H
18#define SUPERIO_ITE_IT8772F_CHIP_H
19
20#include <device/device.h>
Ted Kuo4e8f23b2015-03-18 10:42:22 +080021#include "it8772f.h"
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -070022
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -070023struct superio_ite_it8772f_config {
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -070024 /* GPIO SimpleIO register values via devicetree.cb */
25 u8 gpio_set1;
26 u8 gpio_set2;
27 u8 gpio_set3;
28 u8 gpio_set4;
29 u8 gpio_set5;
30 u8 gpio_set6;
31
32 u8 skip_keyboard;
33
34 /*
35 * Enable external temperature sensor to use PECI GetTemp()
36 * command and store in register TMPIN 1, 2, or 3.
37 */
38 u8 peci_tmpin;
39
40 /*
Ted Kuo4e8f23b2015-03-18 10:42:22 +080041 * Enable thermal mode on tmpinx.
42 */
43 enum thermal_mode tmpin1_mode;
44 enum thermal_mode tmpin2_mode;
45
46 /*
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -070047 * Enable a FAN for sofware control.
48 */
49 u8 fan1_enable;
50 u8 fan2_enable;
51 u8 fan3_enable;
Ted Kuo08debac2015-03-27 18:59:07 +080052
53 /*
54 * Default FAN speed
55 */
56 u8 fan2_speed;
57 u8 fan3_speed;
Stefan Reinauerb0dd1d92012-03-30 15:04:07 -070058};
59
Edward O'Callaghan0403c8632014-04-30 17:17:03 +100060#endif /* SUPERIO_ITE_IT8772F_CHIP_H */