summaryrefslogtreecommitdiff
path: root/src/superio/ite/it8772f/chip.h
diff options
context:
space:
mode:
authorTed Kuo <tedkuo@ami.com.tw>2015-03-18 10:42:22 +0800
committerMartin Roth <martinroth@google.com>2015-12-31 17:39:47 +0100
commit4e8f23b896fe31851c26e056ee55fb8191419fa0 (patch)
tree80c543d02b8f6843e76e65f1eac3dd25324db06b /src/superio/ite/it8772f/chip.h
parent4f3d400a30247b7795254517078529d070f4129f (diff)
downloadcoreboot-4e8f23b896fe31851c26e056ee55fb8191419fa0.tar.xz
superio/it8772f: Add switch to enable HWM (Hardware Monitor)
Set up External Temperature to read via thermal diode/resistor into TMPINx register by setting thermal_mode switch. Original-Signed-off-by: Ted Kuo <tedkuo@ami.com.tw> Change-Id: I0e8621b92faa5c6246e009d2f852c8d4db484034 Original-Reviewed-on: https://chromium-review.googlesource.com/260545 Original-Reviewed-by: Shawn N <shawnn@chromium.org> Original-Tested-by: Ted Kuo <tedkuo@ami.com.tw> Original-(cherry picked from commit 973e2d393f2595b756f8aa20f6fbe3b6e045621a) Original-Reviewed-on: https://chromium-review.googlesource.com/262340 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/12798 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/superio/ite/it8772f/chip.h')
-rw-r--r--src/superio/ite/it8772f/chip.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/superio/ite/it8772f/chip.h b/src/superio/ite/it8772f/chip.h
index 78ded22b5d..0d80fb833c 100644
--- a/src/superio/ite/it8772f/chip.h
+++ b/src/superio/ite/it8772f/chip.h
@@ -18,6 +18,7 @@
#define SUPERIO_ITE_IT8772F_CHIP_H
#include <device/device.h>
+#include "it8772f.h"
struct superio_ite_it8772f_config {
/* GPIO SimpleIO register values via devicetree.cb */
@@ -37,6 +38,12 @@ struct superio_ite_it8772f_config {
u8 peci_tmpin;
/*
+ * Enable thermal mode on tmpinx.
+ */
+ enum thermal_mode tmpin1_mode;
+ enum thermal_mode tmpin2_mode;
+
+ /*
* Enable a FAN for sofware control.
*/
u8 fan1_enable;