diff options
author | Johan Palsson <johan.palsson@stericsson.com> | 2011-03-16 13:25:10 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2011-07-22 15:42:35 +0200 |
commit | 6ac85038619da2654b1654fb9a09cae613a96bed (patch) | |
tree | 4132e812e7bdf09da79f5028e25a7b6cca250206 /include | |
parent | c83e202f7a96da540cebb5c2dbf125eaa629b61c (diff) |
power: ab8500_bm: Lower current when charger voltage drops
The charger current optimization loop has been corrected for
when the VBUS voltage collapses
ST-Ericsson Linux next: -
ST-Ericsson ID: ER328139
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie997402e3c0b868212ad59fe242f393ba0721007
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18415
Reviewed-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 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/bm.h b/include/linux/mfd/ab8500/bm.h index 7f5d25f84e0..068b63a93ce 100644 --- a/include/linux/mfd/ab8500/bm.h +++ b/include/linux/mfd/ab8500/bm.h @@ -185,6 +185,19 @@ #define BATT_OVV_TH_3P7 0x00 #define BATT_OVV_TH_4P75 0x01 +/* VBUS OVV constants */ +#define VBUS_OVV_SELECT_MASK 0x78 +#define VBUS_OVV_SELECT_5P6V 0x00 +#define VBUS_OVV_SELECT_5P7V 0x08 +#define VBUS_OVV_SELECT_5P8V 0x10 +#define VBUS_OVV_SELECT_5P9V 0x18 +#define VBUS_OVV_SELECT_6P0V 0x20 +#define VBUS_OVV_SELECT_6P1V 0x28 +#define VBUS_OVV_SELECT_6P2V 0x30 +#define VBUS_OVV_SELECT_6P3V 0x38 + +#define VBUS_AUTO_IN_CURR_LIM_ENA 0x04 + /* Fuel Gauge constants */ #define RESET_ACCU 0x02 #define READ_REQ 0x01 |