mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
hwmon: (max6650) Allow fan shutdown and initial rpm target
The fan can be stopped by writing "3" to pwm1_enable in sysfs. Add devicetree property for early initialization of the fan controller to prevent overheating, for example when resetting the board while the fan was completely turned off. Also improve error reporting, I2C failures were ignored while writing new values. Signed-off-by: Mike Looijmans <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
a6cdeefeca
commit
20005cc58d
2 changed files with 68 additions and 41 deletions
|
|
@ -34,6 +34,7 @@ fan3_input ro "
|
|||
fan4_input ro "
|
||||
fan1_target rw desired fan speed in RPM (closed loop mode only)
|
||||
pwm1_enable rw regulator mode, 0=full on, 1=open loop, 2=closed loop
|
||||
3=off
|
||||
pwm1 rw relative speed (0-255), 255=max. speed.
|
||||
Used in open loop mode only.
|
||||
fan1_div rw sets the speed range the inputs can handle. Legal
|
||||
|
|
|
|||
Loading…
Reference in a new issue