[PATCH 2/2] drivers: misc: gsc: add support for prescaled

Tim Harvey tharvey at gateworks.com
Wed Dec 18 20:45:42 CET 2024


Add support for Gateworks System Controller pre-scaled ADC input.

Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
 drivers/misc/gsc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/gsc.c b/drivers/misc/gsc.c
index bab405bb7226..72a13abaaeed 100644
--- a/drivers/misc/gsc.c
+++ b/drivers/misc/gsc.c
@@ -310,6 +310,7 @@ static int gsc_hwmon(struct udevice *dev)
 			printf("%-8s: %d.%ldC\n", label, val / 10, abs(val % 10));
 			break;
 		case 1: /* prescaled voltage */
+		case 3:
 			if (val != 0xffff)
 				printf("%-8s: %d.%03dV\n", label, val / 1000, val % 1000);
 			break;
-- 
2.25.1



More information about the U-Boot mailing list