Skip to content

Commit 0d8400c

Browse files
mshychgroeck
authored andcommitted
hwmon: (emc2305) add support for EMC2301/2/3/5 RPM-based PWM Fan Speed Controller.
Add driver for Microchip EMC2301/2/3/5 RPM-based PWM Fan Speed Controller. Modify Makefile and Kconfig to support Microchip EMC2305 RPM-based PWM Fan Speed Controller. Signed-off-by: Michael Shych <michaelsh@nvidia.com> Reviewed-by: Vadim Pasternak <vadimp@nvidia.com> Link: https://lore.kernel.org/r/20220810171552.56417-3-michaelsh@nvidia.com [groeck: Drop unnecessary () around DIV_ROUND_CLOSEST()] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 41929b7 commit 0d8400c

File tree

3 files changed

+638
-0
lines changed

3 files changed

+638
-0
lines changed

drivers/hwmon/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,6 +1785,19 @@ config SENSORS_EMC2103
17851785
This driver can also be built as a module. If so, the module
17861786
will be called emc2103.
17871787

1788+
config SENSORS_EMC2305
1789+
tristate "Microchip EMC2305 and compatible EMC2301/2/3"
1790+
depends on I2C
1791+
imply THERMAL
1792+
help
1793+
If you say yes here you get support for the Microchip EMC2305
1794+
fan controller chips.
1795+
The Microchip EMC2305 is a fan controller for up to 5 fans.
1796+
Fan rotation speeds are reported in RPM.
1797+
1798+
This driver can also be built as a module. If so, the module
1799+
will be called emc2305.
1800+
17881801
config SENSORS_EMC6W201
17891802
tristate "SMSC EMC6W201"
17901803
depends on I2C

drivers/hwmon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ obj-$(CONFIG_SENSORS_DS620) += ds620.o
6969
obj-$(CONFIG_SENSORS_DS1621) += ds1621.o
7070
obj-$(CONFIG_SENSORS_EMC1403) += emc1403.o
7171
obj-$(CONFIG_SENSORS_EMC2103) += emc2103.o
72+
obj-$(CONFIG_SENSORS_EMC2305) += emc2305.o
7273
obj-$(CONFIG_SENSORS_EMC6W201) += emc6w201.o
7374
obj-$(CONFIG_SENSORS_F71805F) += f71805f.o
7475
obj-$(CONFIG_SENSORS_F71882FG) += f71882fg.o

0 commit comments

Comments
 (0)