From 3a460ea765417ce70bd760b91f46feca7cccb828 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 27 Feb 2012 10:43:14 -0800 Subject: Disable fan PWM when +5VS is disabled Signed-off-by: Randall Spangler BUG=chrome-os-partner:8097 TEST=manual faninfo should report fan is disabled powerbtn system turns on, fan turns on faninfo should report fan is enabled powerbtn system turns off, fan turns off faninfo should report fan is disabled again Change-Id: I8e94c142bf18d07f83bac05287bcd503a098cee7 --- include/pwm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/pwm.h b/include/pwm.h index ff76c89744..cbf11c5e95 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -13,6 +13,10 @@ /* Initializes the module. */ int pwm_init(void); +/* Enables/disables the fan. This should be called by whatever function + * enables the power supply to the fan. */ +int pwm_enable_fan(int enable); + /* Gets the current fan RPM. */ int pwm_get_fan_rpm(void); -- cgit v1.2.1