git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
795a742
)
drivers: misc: gsc: add support for prescaled
author
Tim Harvey
<tharvey@gateworks.com>
Wed, 18 Dec 2024 19:45:42 +0000
(11:45 -0800)
committer
Fabio Estevam
<festevam@gmail.com>
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 <tharvey@gateworks.com>
drivers/misc/gsc.c
patch
|
blob
|
history
diff --git
a/drivers/misc/gsc.c
b/drivers/misc/gsc.c
index
bab405b
..
72a13ab
100644
(file)
--- 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;