Skip to content

Commit

Permalink
hwmon: Support Aspeed AST2600 PWM/Fan tachometer
Browse files Browse the repository at this point in the history
Add Aspeed AST2600 PWM/Fan tacho driver. AST2600 has 16 PWM channel and
16 FAN tacho channel.

Changes since v1:
- fixed review comments
- fixed double-looped calculation of div_h and div_l
- moving configuration to device tree
- register hwmon driver with devm_hwmon_device_register_with_info()

Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
  • Loading branch information
LeeTroy authored and intel-lab-lkp committed Jan 13, 2021
1 parent 631859f commit 19a5112
Show file tree
Hide file tree
Showing 3 changed files with 767 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/hwmon/Kconfig
Expand Up @@ -387,6 +387,16 @@ config SENSORS_ASPEED
This driver can also be built as a module. If so, the module
will be called aspeed_pwm_tacho.

config SENSORS_ASPEED2600_PWM_TACHO
tristate "ASPEED AST2600 PWM and Fan Tachometer"
depends on THERMAL || THERMAL=n
help
This driver provides support for ASPEED AST2600 PWM
and Fan Tacho controllers.

This driver can also be built as a module. If so, the module
will be called aspeed2600-pwm-tacho.

config SENSORS_ATXP1
tristate "Attansic ATXP1 VID controller"
depends on I2C
Expand Down
1 change: 1 addition & 0 deletions drivers/hwmon/Makefile
Expand Up @@ -51,6 +51,7 @@ obj-$(CONFIG_SENSORS_ARM_SCPI) += scpi-hwmon.o
obj-$(CONFIG_SENSORS_AS370) += as370-hwmon.o
obj-$(CONFIG_SENSORS_ASC7621) += asc7621.o
obj-$(CONFIG_SENSORS_ASPEED) += aspeed-pwm-tacho.o
obj-$(CONFIG_SENSORS_ASPEED2600_PWM_TACHO) += aspeed2600-pwm-tacho.o
obj-$(CONFIG_SENSORS_ATXP1) += atxp1.o
obj-$(CONFIG_SENSORS_AXI_FAN_CONTROL) += axi-fan-control.o
obj-$(CONFIG_SENSORS_BT1_PVT) += bt1-pvt.o
Expand Down

0 comments on commit 19a5112

Please sign in to comment.