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
This commit is contained in:
Randall Spangler
2012-02-27 10:43:14 -08:00
parent 4f3f3fdf3d
commit 3a460ea765
3 changed files with 33 additions and 7 deletions

View File

@@ -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);