summaryrefslogtreecommitdiff
path: root/include/linux/mfd/mp2629.h
diff options
context:
space:
mode:
authorSaravanan Sekar <sravanhome@gmail.com>2020-05-26 12:06:43 +0300
committerLee Jones <lee.jones@linaro.org>2020-05-26 12:41:47 +0300
commit7abd9fb6468225f5c7f83149ce279cc1a912a68a (patch)
tree9e85c85e8ea9a0578ae0ac9f1f2e83565021bd1d /include/linux/mfd/mp2629.h
parent06081646450e46efcc1ca58c3b227bd60083cd3e (diff)
downloadlinux-7abd9fb6468225f5c7f83149ce279cc1a912a68a.tar.xz
iio: adc: mp2629: Add support for mp2629 ADC driver
Add support for 8-bit resolution ADC readings for input power supply and battery charging measurement. Provides voltage, current readings to mp2629 power supply driver. Signed-off-by: Saravanan Sekar <sravanhome@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/mp2629.h')
-rw-r--r--include/linux/mfd/mp2629.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mfd/mp2629.h b/include/linux/mfd/mp2629.h
index baaeeaf82949..89b706900b57 100644
--- a/include/linux/mfd/mp2629.h
+++ b/include/linux/mfd/mp2629.h
@@ -14,4 +14,13 @@ struct mp2629_data {
struct regmap *regmap;
};
+enum mp2629_adc_chan {
+ MP2629_BATT_VOLT,
+ MP2629_SYSTEM_VOLT,
+ MP2629_INPUT_VOLT,
+ MP2629_BATT_CURRENT,
+ MP2629_INPUT_CURRENT,
+ MP2629_ADC_CHAN_END
+};
+
#endif