hwmon: (pwm-fan) Add fan speed register support
authorPhil Elwell <phil@raspberrypi.com>
Tue, 11 Jul 2023 09:17:29 +0000 (10:17 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:52 +0000 (11:34 +0000)
commitae0473371a9a08355cfe58bfc7bbacde6fa7f39b
tree9e3dde6cecdf6d7aa85b1aca5ae69a18fd51f42b
parent5491ab29e111ab3cf220a01ebce19a2957e04418
hwmon: (pwm-fan) Add fan speed register support

Some platforms include a fan-speed register that reports RPM directly
as an alternative to counting interrupts from the fan tachometer input.
Add support for reading a register at a given offset (rpm-offset) within
a block declared in another node (rpm-regmap). This indirection allows
the usual address mapping to be performed, and for address sharing with
another driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/hwmon/pwm-fan.c