Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
hwmon: Add Ampere Altra HW monitor driver
Browse files Browse the repository at this point in the history
Add Ampere Altra HW monitor driver to support per core energy
and SoC temperature reporting.

cherry-pick from: AmpereComputing/ampere-centos-kernel---DEPRECATED@f2e6dee

Signed-off-by: lho <[email protected]>
Signed-off-by: lho <[email protected]>
  • Loading branch information
locnhinho authored and adamliyi committed Mar 8, 2022
1 parent 7355021 commit f984cae
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,16 @@ config SENSORS_FAM15H_POWER
This driver can also be built as a module. If so, the module
will be called fam15h_power.

config SENSORS_ALTRA
tristate "Altra sensors driver"
depends on ARM64
help
If you say yes here you get support for Ampere SoC core and package
sensors for Ampere Altra CPUs.

This driver can also be built as a module. If so, the module
will be called as altra-hwmon.

config SENSORS_APPLESMC
tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)"
depends on INPUT && X86
Expand Down
1 change: 1 addition & 0 deletions drivers/hwmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ obj-$(CONFIG_SENSORS_ADT7462) += adt7462.o
obj-$(CONFIG_SENSORS_ADT7470) += adt7470.o
obj-$(CONFIG_SENSORS_ADT7475) += adt7475.o
obj-$(CONFIG_SENSORS_AHT10) += aht10.o
obj-$(CONFIG_SENSORS_ALTRA) += altra-hwmon.o
obj-$(CONFIG_SENSORS_APPLESMC) += applesmc.o
obj-$(CONFIG_SENSORS_AQUACOMPUTER_D5NEXT) += aquacomputer_d5next.o
obj-$(CONFIG_SENSORS_ARM_SCMI) += scmi-hwmon.o
Expand Down
Loading

0 comments on commit f984cae

Please sign in to comment.