[PATCH 1/2] drivers: misc: gsc: add support for fan controller
Tim Harvey
tharvey at gateworks.com
Wed Dec 18 20:45:41 CET 2024
Add support for Gateworks System Controller fan tach input.
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
drivers/misc/gsc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/misc/gsc.c b/drivers/misc/gsc.c
index dee0bdd9663a..bab405bb7226 100644
--- a/drivers/misc/gsc.c
+++ b/drivers/misc/gsc.c
@@ -330,6 +330,9 @@ static int gsc_hwmon(struct udevice *dev)
printf("%-8s: %d.%03dV\n", label, val / 1000, val % 1000);
break;
+ case 4: /* revolutions per minute */
+ printf("%-8s: %drpm\n", label, val * 30);
+ break;
}
}
--
2.25.1
More information about the U-Boot
mailing list