diff options
author | Kalle Komierowski <kalle.komierowski@gmail.com> | 2011-03-08 09:42:20 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2011-07-22 15:42:05 +0200 |
commit | 58f0f4eae32d58d5591321b65fedf42d65a8bfb3 (patch) | |
tree | 65beef03e98dd20636ec2ddd22b9a66d88aa386c /include | |
parent | e075f965ffeeee86221f88c88b0c43fb1c5b7a7d (diff) |
power: ab8500_fg: Adding internal fuel gauge offset calibration
This calibration is to compensate for the offset in the fuel gauge
ST-Ericsson ID: ER327880
Change-Id: Ibf7e37ea65c4e8da334dcd554da71d442f3cdcb7
Signed-off-by: Kalle Komierowski <kalle.komierowski@gmail.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17815
Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/ab8500/bm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/bm.h b/include/linux/mfd/ab8500/bm.h index a6dc6e46124..7f5d25f84e0 100644 --- a/include/linux/mfd/ab8500/bm.h +++ b/include/linux/mfd/ab8500/bm.h @@ -192,6 +192,13 @@ #define CC_PWR_UP_ENA 0x01 #define CC_SAMPLES_40 0x28 #define RD_NCONV_ACCU_REQ 0x01 +#define CC_CALIB 0x08 +#define CC_INTAVGOFFSET_ENA 0x10 +#define CC_MUXOFFSET 0x80 +#define CC_INT_CAL_N_AVG_MASK 0x60 +#define CC_INT_CAL_SAMPLES_16 0x40 +#define CC_INT_CAL_SAMPLES_8 0x20 +#define CC_INT_CAL_SAMPLES_4 0x00 /* RTC constants */ #define RTC_BUP_CH_ENA 0x10 |