summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>2011-11-03 16:01:37 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:11 +0200
commit1fa4ffa3bd74c841979a4f05cf6dd9a64e9769e7 (patch)
tree584c5aadc6819304d4a74ff0fdfbf2002ec14f96 /include
parent056e6e09ac185ed00a3fa08764af0efb18c97f1d (diff)
ab5500: enable GPADC-0 and provide sysfs interfce
This patch enables GPADC-0 to convert from voltage range 0 to 1.8v and also adds sysfs interface for reading gpadc ch-0. "/sys/devices/platform/ab5500-core.0/ab5500-adc.0/adc0volt" ST-Ericsson ID: 370066 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic23caa22ff4e10d3dbb151e10eb4625ec5d7078a Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36216 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/abx500/ab5500-gpadc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ab5500-gpadc.h b/include/linux/mfd/abx500/ab5500-gpadc.h
index 3282b44114e..67dc3cc9034 100644
--- a/include/linux/mfd/abx500/ab5500-gpadc.h
+++ b/include/linux/mfd/abx500/ab5500-gpadc.h
@@ -33,6 +33,7 @@
#define MAIN_BAT_V_TXON_TRIG_MIN 13
/* VBAT with TX off only min trigger */
#define MAIN_BAT_V_TRIG_MIN 14
+#define GPADC0_V 15
/*
* Frequency of auto adc conversion