summaryrefslogtreecommitdiffstats
path: root/drivers/ntb/hw/idt/Kconfig
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2018-07-17 11:24:35 +0200
committerJon Mason <jdmason@kudzu.us>2018-11-01 15:33:12 +0100
commitaed1b7b31154bdd6f2fccca0ab5cf8a6fe2f52eb (patch)
tree644bbecd708736af2ae378cbe1fe11d7e5389583 /drivers/ntb/hw/idt/Kconfig
parentntb: idt: Alter temperature read method (diff)
downloadlinux-aed1b7b31154bdd6f2fccca0ab5cf8a6fe2f52eb.tar.xz
linux-aed1b7b31154bdd6f2fccca0ab5cf8a6fe2f52eb.zip
ntb: idt: Add basic hwmon sysfs interface
IDT PCIe switches provide an embedded temperature sensor working within [0; 127.5]C with resolution of 0.5C. They also can generate a PCIe upstream interrupt in case if the temperature passes through specified thresholds. Since this thresholds interface is very broken the created hwmon-sysfs interface exposes only the next set of hwmon nodes: current input temperature, lowest and highest values measured, history resetting, value offset. HWmon alarm interface isn't provided. IDT PCIe switch also've got an ADC/filter settings of the sensor. This driver doesn't expose them to the hwmon-sysfs interface at the moment, except the offset node. Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/ntb/hw/idt/Kconfig')
-rw-r--r--drivers/ntb/hw/idt/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ntb/hw/idt/Kconfig b/drivers/ntb/hw/idt/Kconfig
index b360e5613b9f..2ed147368fa8 100644
--- a/drivers/ntb/hw/idt/Kconfig
+++ b/drivers/ntb/hw/idt/Kconfig
@@ -1,6 +1,7 @@
config NTB_IDT
tristate "IDT PCIe-switch Non-Transparent Bridge support"
depends on PCI
+ select HWMON
help
This driver supports NTB of cappable IDT PCIe-switches.