diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-01-29 17:14:01 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-04 21:49:19 -0800 |
commit | 4d195bb06ea202891e3da16454140990431d88d5 (patch) | |
tree | 4f24770ce11b60b2301b8783ac16dc9180c81a27 /include/linux | |
parent | e923d9a3b9efeef9ee709c0957f147df7404c4dc (diff) |
power: bq2419x: add support to change charge voltage limit
Add support to configure the charger voltage limit based on
battery used on platform.
bug 1445682
Change-Id: Ibdc9d852f06504d8052ccc736ac3938ccc1aa88b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/361478
(cherry picked from commit 56f5517a05b95e4be5be8af0c2c9ffac89b28bcd)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: If0b3d0b8e666ad9ea39b2ee7813b2fcd31531e7d
Reviewed-on: http://git-master/r/363199
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/power/bq2419x-charger.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/power/bq2419x-charger.h b/include/linux/power/bq2419x-charger.h index dbf1aaa7e0ee..b55ccbcdc895 100644 --- a/include/linux/power/bq2419x-charger.h +++ b/include/linux/power/bq2419x-charger.h @@ -51,6 +51,8 @@ #define BQ2419X_THERM_VCLAMP_MASK 0x1C #define BQ2419X_THERM_TREG_MASK 0x03 +#define BQ2419X_CHG_VOLT_LIMIT_MASK 0xFC + #define BQ24190_IC_VER 0x40 #define BQ24192_IC_VER 0x28 #define BQ24192i_IC_VER 0x18 @@ -102,7 +104,6 @@ #define BQ2419x_NVCHARGER_INPUT_VOL_SEL 0x40 #define BQ2419x_DEFAULT_INPUT_VOL_SEL 0x30 #define BQ2419x_VOLTAGE_CTRL_MASK 0xFC -#define BQ2419x_DEFAULT_CHARGE_VOLTAGE 0xB2 #define BQ2419x_CHARGING_CURRENT_STEP_DELAY_US 1000 @@ -132,6 +133,7 @@ struct bq2419x_charger_platform_data { int ir_compensation_resister_ohm; int ir_compensation_voltage_mV; int thermal_regulation_threshold_degC; + int charge_voltage_limit_mV; int max_charge_current_mA; int wdt_timeout; int rtc_alarm_time; |