summaryrefslogtreecommitdiff
path: root/chip/lm4/pwm_fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/lm4/pwm_fan.c')
-rw-r--r--chip/lm4/pwm_fan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/lm4/pwm_fan.c b/chip/lm4/pwm_fan.c
index 6309867dae..ffe75b68fa 100644
--- a/chip/lm4/pwm_fan.c
+++ b/chip/lm4/pwm_fan.c
@@ -48,6 +48,10 @@ void pwm_enable_fan(int enable)
LM4_FAN_FANCTL |= (1 << FAN_CH_CPU);
else
LM4_FAN_FANCTL &= ~(1 << FAN_CH_CPU);
+
+#ifdef CONFIG_PWM_FAN_EN_GPIO
+ gpio_set_level(CONFIG_PWM_FAN_EN_GPIO, enable);
+#endif /* CONFIG_PWM_FAN_EN_GPIO */
}
int pwm_get_fan_enabled(void)