From 1ca1dc6c313a710ab1983b8d3b8011ae160e12d5 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Wed, 29 Oct 2025 18:59:46 -0500 Subject: [PATCH] ec/google/chromeec: Add ability to enable auto fan control via setup option Allow enabling of automatic fan control via a setup option, while preserving the functionality of the existing Kconfig symbol. TEST=tested hooked up to a CFR option to toggle automatic fan control at boot, with visibility controlled by fan presence, on a range of ChromeOS devices with and without a PWM-controlled fan. Change-Id: I0510c0d0bd79106036f77d59e04d455ee904ce6e Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/89830 Reviewed-by: Maximilian Brune Reviewed-by: Caveh Jalali Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 27c752b196..662e83e4b2 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -1366,7 +1366,7 @@ void google_chromeec_init(void) google_chromeec_log_uptimeinfo(); /* Enable automatic fan control */ - if (CONFIG(EC_GOOGLE_CHROMEEC_AUTO_FAN_CTRL)) { + if (get_uint_option("auto_fan_control", CONFIG(EC_GOOGLE_CHROMEEC_AUTO_FAN_CTRL))) { ec_cmd_thermal_auto_fan_ctrl(PLAT_EC); }