diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-02-27 10:43:14 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-02-27 11:09:32 -0800 |
commit | 3a460ea765417ce70bd760b91f46feca7cccb828 (patch) | |
tree | f0b28a8d03078eb7abde3a7039f347ebf063fc99 /include/pwm.h | |
parent | 4f3f3fdf3d0eae8c20d2278a29831c709b7aba38 (diff) | |
download | chrome-ec-3a460ea765417ce70bd760b91f46feca7cccb828.tar.gz |
Disable fan PWM when +5VS is disabled
Signed-off-by: Randall Spangler <rspangler@chromium.org>
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
Diffstat (limited to 'include/pwm.h')
-rw-r--r-- | include/pwm.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |