mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
drivers: misc: gsc: add support for prescaled
Add support for Gateworks System Controller pre-scaled ADC input. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
795a7425a7
commit
87bdb4e8a7
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue