diff options
| author | 2020-05-26 11:06:43 +0200 | |
|---|---|---|
| committer | 2020-05-26 10:41:47 +0100 | |
| commit | 7abd9fb6468225f5c7f83149ce279cc1a912a68a (patch) | |
| tree | 9e85c85e8ea9a0578ae0ac9f1f2e83565021bd1d /include/linux/mfd | |
| parent | mfd: mp2629: Add support for mps battery charger (diff) | |
| download | linux-dev-7abd9fb6468225f5c7f83149ce279cc1a912a68a.tar.xz linux-dev-7abd9fb6468225f5c7f83149ce279cc1a912a68a.zip | |
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')
| -rw-r--r-- | include/linux/mfd/mp2629.h | 9 |
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 |
