mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Add support for GMT G762/G763 PWM fan controllers
GMT G762/763 fan speed PWM controller is connected directly to a fan and performs closed-loop or open-loop control of the fan speed. Two modes - PWM or DC - are supported by the chip. Introduced driver provides various knobs to control the operations of the chip (via sysfs interface). Specific characteristics of the system can be passed either using board init code or via DT. Documentation for both the driver and DT bindings are also provided. Signed-off-by: Arnaud Ebalard <[email protected]> Tested-by: Simon Guinot <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
31e7ad74f6
commit
594fbe713b
6 changed files with 1309 additions and 0 deletions
|
|
@ -461,6 +461,16 @@ config SENSORS_G760A
|
|||
This driver can also be built as a module. If so, the module
|
||||
will be called g760a.
|
||||
|
||||
config SENSORS_G762
|
||||
tristate "GMT G762 and G763"
|
||||
depends on I2C
|
||||
help
|
||||
If you say yes here you get support for Global Mixed-mode
|
||||
Technology Inc G762 and G763 fan speed PWM controller chips.
|
||||
|
||||
This driver can also be built as a module. If so, the module
|
||||
will be called g762.
|
||||
|
||||
config SENSORS_GL518SM
|
||||
tristate "Genesys Logic GL518SM"
|
||||
depends on I2C
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ obj-$(CONFIG_SENSORS_F75375S) += f75375s.o
|
|||
obj-$(CONFIG_SENSORS_FAM15H_POWER) += fam15h_power.o
|
||||
obj-$(CONFIG_SENSORS_FSCHMD) += fschmd.o
|
||||
obj-$(CONFIG_SENSORS_G760A) += g760a.o
|
||||
obj-$(CONFIG_SENSORS_G762) += g762.o
|
||||
obj-$(CONFIG_SENSORS_GL518SM) += gl518sm.o
|
||||
obj-$(CONFIG_SENSORS_GL520SM) += gl520sm.o
|
||||
obj-$(CONFIG_SENSORS_GPIO_FAN) += gpio-fan.o
|
||||
|
|
|
|||
1149
drivers/hwmon/g762.c
Normal file
1149
drivers/hwmon/g762.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue