mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08:00
52 lines
1.8 KiB
Diff
52 lines
1.8 KiB
Diff
From a58b73b20db06f91025c5c847fcf2b53e341a6ff Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Mon, 14 Jun 2021 19:01:14 +0200
|
|
Subject: [PATCH] hwmon: Add SMSC EMC2301/2/3/5 fan controller driver
|
|
|
|
Add support for SMSC EMC2305, EMC2303, EMC2302, EMC2301 fan controller
|
|
chips.
|
|
The driver primary supports the EMC2305 chip which provides RPM-based
|
|
PWM control and monitoring for up to 5 fans.
|
|
|
|
According to the SMSC data sheets the EMC2303, EMC2302 and EMC2301 chips
|
|
have basically the same functionality and register layout, but support
|
|
less fans and (in case of EMC2302 and EMC2301) less possible I2C addresses.
|
|
The driver supports them, too.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
drivers/hwmon/Kconfig | 11 +++++++++++
|
|
drivers/hwmon/Makefile | 1 +
|
|
2 files changed, 12 insertions(+)
|
|
|
|
--- a/drivers/hwmon/Kconfig
|
|
+++ b/drivers/hwmon/Kconfig
|
|
@@ -1602,6 +1602,17 @@ config SENSORS_EMC2103
|
|
This driver can also be built as a module. If so, the module
|
|
will be called emc2103.
|
|
|
|
+config SENSORS_EMC2305
|
|
+ tristate "SMSC EMC2305"
|
|
+ depends on I2C
|
|
+ select REGMAP_I2C
|
|
+ help
|
|
+ If you say yes here you get support for the fan monitoring
|
|
+ and control features of the SMSC EMC2301/2/3/5 chips.
|
|
+
|
|
+ This driver can also be built as a module. If so, the module
|
|
+ will be called emc2305.
|
|
+
|
|
config SENSORS_EMC6W201
|
|
tristate "SMSC EMC6W201"
|
|
depends on I2C
|
|
--- a/drivers/hwmon/Makefile
|
|
+++ b/drivers/hwmon/Makefile
|
|
@@ -66,6 +66,7 @@ obj-$(CONFIG_SENSORS_DS620) += ds620.o
|
|
obj-$(CONFIG_SENSORS_DS1621) += ds1621.o
|
|
obj-$(CONFIG_SENSORS_EMC1403) += emc1403.o
|
|
obj-$(CONFIG_SENSORS_EMC2103) += emc2103.o
|
|
+obj-$(CONFIG_SENSORS_EMC2305) += emc2305.o
|
|
obj-$(CONFIG_SENSORS_EMC6W201) += emc6w201.o
|
|
obj-$(CONFIG_SENSORS_F71805F) += f71805f.o
|
|
obj-$(CONFIG_SENSORS_F71882FG) += f71882fg.o
|