]> Git Repo - u-boot.git/commitdiff
drivers: misc: gsc: add support for prescaled
authorTim Harvey <[email protected]>
Wed, 18 Dec 2024 19:45:42 +0000 (11:45 -0800)
committerFabio Estevam <[email protected]>
Mon, 23 Dec 2024 11:08:51 +0000 (08:08 -0300)
Add support for Gateworks System Controller pre-scaled ADC input.

Signed-off-by: Tim Harvey <[email protected]>
drivers/misc/gsc.c

index bab405bb72266f7bc5cafa0e66cf37412736f5fc..72a13abaaeedb91adaa7f092e236a22d475335cd 100644 (file)
@@ -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;
This page took 0.034212 seconds and 4 git commands to generate.