From 177f7731aa459e1171a7b118e884a40a90a5da60 Mon Sep 17 00:00:00 2001 From: Vagiz Trakhanov Date: Tue, 17 Oct 2017 18:04:55 +0000 Subject: superio/ite/common: Make PECI a thermal mode Instead of setting "peci_tmpin" in the devicetree, THERMAL_PECI is now a mode of TMPIN like THERMAL_RESISTOR and THERMAL_DIODE. Since the logic to set temperature offsets and limits is in the function that sets thermal modes, it makes sense to treat PECI as yet another mode. As of this commit, there are no boards that actually use peci_tmpin from ite/common. There are three boards that have a similar device tree option, but those boards use it8772f, which implements all superio functions on its own. The first user will probably be Gigabyte GA-Z77-DS3H. Change-Id: I39da50c124ad767f8681302733cf004622975e81 Signed-off-by: Vagiz Trakhanov Reviewed-on: https://review.coreboot.org/22076 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Paul Menzel --- src/superio/ite/common/env_ctrl_chip.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/superio/ite/common/env_ctrl_chip.h') diff --git a/src/superio/ite/common/env_ctrl_chip.h b/src/superio/ite/common/env_ctrl_chip.h index a535af6dfa..a3c6ae4b33 100644 --- a/src/superio/ite/common/env_ctrl_chip.h +++ b/src/superio/ite/common/env_ctrl_chip.h @@ -26,6 +26,7 @@ enum ite_ec_thermal_mode { THERMAL_MODE_DISABLED = 0, THERMAL_DIODE, THERMAL_RESISTOR, + THERMAL_PECI, }; struct ite_ec_thermal_config { @@ -76,12 +77,6 @@ struct ite_ec_fan_config { }; struct ite_ec_config { - /* - * Enable external temperature sensor to use PECI GetTemp() - * command and store in register TMPIN 1, 2, or 3. - */ - u8 peci_tmpin; - /* * Enable reading of voltage pins VINx. */ -- cgit v1.2.3