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>
This commit is contained in:
Tim Harvey
2024-12-18 11:45:41 -08:00
committed by Fabio Estevam
parent f331967b3d
commit 795a7425a7

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