diff options
author | Jinyoung Park <jinyoungp@nvidia.com> | 2013-09-12 18:00:00 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-16 17:42:44 -0700 |
commit | f3191dfc739eb0473c40709d7597896d6f5152f0 (patch) | |
tree | 45dd27032c0440087aba542d078b3a660687301c /include/linux/mfd | |
parent | e27b139423191931de01d22acf73638971a3a922 (diff) |
staging: iio: adc: palmas: Support ADC reading with dual current for CH3
Support ADC reading with dual current for GPADC channel3 .
This ADC reading with dual current for GPADC channel3 is required to do
the series resistance cancellation for thermal diode sensing.
Bug 1287901
Bug 1356128
Change-Id: Ib3be778a3ba8cbb3e938fc8be6e1140d17286969
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/273638
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/palmas.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index b0491622d7e5..79c49f0de1c4 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h @@ -281,6 +281,7 @@ struct palmas_gpadc_platform_data { * consumption depending on current level set here. */ int ch0_current; + bool ch3_dual_current; /* default BAT_REMOVAL_DAT setting on device probe */ int bat_removal; @@ -4098,6 +4099,22 @@ enum { PALMAS_ADC_CH_MAX, }; +/* Palma GPADC Channel0 Current Source */ +enum { + PALMAS_ADC_CH0_CURRENT_SRC_0, + PALMAS_ADC_CH0_CURRENT_SRC_5, + PALMAS_ADC_CH0_CURRENT_SRC_15, + PALMAS_ADC_CH0_CURRENT_SRC_20, +}; + +/* Palma GPADC Channel3 Current Source */ +enum { + PALMAS_ADC_CH3_CURRENT_SRC_0, + PALMAS_ADC_CH3_CURRENT_SRC_10, + PALMAS_ADC_CH3_CURRENT_SRC_400, + PALMAS_ADC_CH3_CURRENT_SRC_800, +}; + /* Palma Sleep requestor IDs IDs */ enum { PALMAS_SLEEP_REQSTR_ID_REGEN1, |