summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2011-10-12 11:20:48 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:00 +0200
commit73f4b28af12990a581b78faf1c4108916ea7351c (patch)
tree4d814bb97f2e3e1d3551298210a8a9d34ac9c74b /arch/arm/mach-ux500
parent464d668965c1f2b7d133c76680b3e246ba3d45da (diff)
mach-ux500: power: ab8500_bm: Removal of maintenance charging
This patch makes it possible to remove the maintenance A and B charging states and replaces them with a state that restarts the charging when the battery voltage level dropped below a certain level. The maintenance charging can now be turned of by setting a flag in the board configuration. ST-Ericsson Linux Next: - ST-Ericsson ID: CR333019 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ie5e8ab20a3b57a1028d544371b10ffbb1fd77660 Signed-off-by: Kalle Komierowski <kalle.komierowski@gmail.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/19916 Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com> Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com> Conflicts: drivers/power/ab8500_chargalg.c drivers/power/ab8500_fg.c include/linux/mfd/ab8500/bm.h
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r--arch/arm/mach-ux500/board-mop500-bm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-bm.c b/arch/arm/mach-ux500/board-mop500-bm.c
index 945964f3300..66ced8e088e 100644
--- a/arch/arm/mach-ux500/board-mop500-bm.c
+++ b/arch/arm/mach-ux500/board-mop500-bm.c
@@ -160,6 +160,7 @@ static const struct battery_type bat_type[] = {
.nominal_voltage = 3700,
.termination_vol = 4050,
.termination_curr = 200,
+ .recharge_vol = 3990,
.normal_cur_lvl = 400,
.normal_vol_lvl = 4100,
.maint_a_cur_lvl = 400,
@@ -186,6 +187,7 @@ static const struct battery_type bat_type[] = {
.nominal_voltage = 3600,
.termination_vol = 4150,
.termination_curr = 80,
+ .recharge_vol = 4130,
.normal_cur_lvl = 700,
.normal_vol_lvl = 4200,
.maint_a_cur_lvl = 600,
@@ -211,6 +213,7 @@ static const struct battery_type bat_type[] = {
.nominal_voltage = 3600,
.termination_vol = 4150,
.termination_curr = 80,
+ .recharge_vol = 4130,
.normal_cur_lvl = 700,
.normal_vol_lvl = 4200,
.maint_a_cur_lvl = 600,
@@ -241,6 +244,7 @@ static const struct battery_type bat_type[] = {
.nominal_voltage = 3700,
.termination_vol = 4150,
.termination_curr = 100,
+ .recharge_vol = 4130,
.normal_cur_lvl = 700,
.normal_vol_lvl = 4200,
.maint_a_cur_lvl = 600,
@@ -265,6 +269,7 @@ static const struct battery_type bat_type[] = {
.nominal_voltage = 3700,
.termination_vol = 4150,
.termination_curr = 100,
+ .recharge_vol = 4130,
.normal_cur_lvl = 700,
.normal_vol_lvl = 4200,
.maint_a_cur_lvl = 600,
@@ -289,6 +294,7 @@ static const struct battery_type bat_type[] = {
.nominal_voltage = 3700,
.termination_vol = 4150,
.termination_curr = 100,
+ .recharge_vol = 4130,
.normal_cur_lvl = 700,
.normal_vol_lvl = 4200,
.maint_a_cur_lvl = 600,
@@ -390,6 +396,7 @@ struct ab8500_bm_data ab8500_bm_data = {
.usb_safety_tmr_h = 4,
.bkup_bat_v = BUP_VCH_SEL_2P6V,
.bkup_bat_i = BUP_ICH_SEL_150UA,
+ .no_maintenance = false,
#ifdef CONFIG_AB8500_BATTERY_THERM_ON_BATCTRL
.adc_therm = ADC_THERM_BATCTRL,
#else