summaryrefslogtreecommitdiff
path: root/src/superio/ite/common/env_ctrl_chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/ite/common/env_ctrl_chip.h')
-rw-r--r--src/superio/ite/common/env_ctrl_chip.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/superio/ite/common/env_ctrl_chip.h b/src/superio/ite/common/env_ctrl_chip.h
index 2bb0780c53..6d716bb845 100644
--- a/src/superio/ite/common/env_ctrl_chip.h
+++ b/src/superio/ite/common/env_ctrl_chip.h
@@ -11,6 +11,8 @@
#define ITE_EC_FAN_CNT 3
#endif
+#define ITE_EC_FAN_VECTOR_CNT 2 /* A, B */
+
/* Supported thermal mode on TMPINx */
enum ite_ec_thermal_mode {
THERMAL_MODE_DISABLED = 0,
@@ -69,6 +71,17 @@ struct ite_ec_fan_config {
struct ite_ec_fan_smartconfig smart;
};
+/* Special fan control modes that will assist smart control */
+struct ite_ec_fan_vector_config {
+ u8 tmpin; /* select TMPINx (1, 2 or 3) */
+ u8 fanout; /* select FANx (1, 2 or 3) */
+ u8 tmp_start;
+ u8 tmp_delta;
+ u8 tmp_range; /* restrict the range of the vector function,
+ 0x00 to disable */
+ s8 slope;
+};
+
struct ite_ec_config {
/*
* Enable reading of voltage pins VINx.
@@ -85,6 +98,11 @@ struct ite_ec_config {
*/
struct ite_ec_fan_config fan[ITE_EC_FAN_CNT];
+ /*
+ * Enable special FAN vector control.
+ */
+ struct ite_ec_fan_vector_config fan_vector[ITE_EC_FAN_VECTOR_CNT];
+
bool tmpin_beep;
bool fan_beep;
bool vin_beep;
@@ -111,4 +129,7 @@ struct ite_ec_config {
#define FAN4 ec.fan[3]
#define FAN5 ec.fan[4]
+#define FAN_VECA ec.fan_vector[0]
+#define FAN_VECB ec.fan_vector[1]
+
#endif /* SUPERIO_ITE_ENV_CTRL_CHIP_H */