drivers: misc: gsc: add support for fan controller

Add support for Gateworks System Controller fan tach input.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
(cherry picked from commit 795a7425a7)
This commit is contained in:
Tim Harvey
2024-12-18 11:45:41 -08:00
committed by Simon Glass
parent 23af5aaf59
commit 62ad32f4cd

View File

@@ -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;
}
}