summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2018-06-08 13:26:58 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2018-06-12 10:31:16 +0200
commitc0bdbb43ea6319a937a565251eeb4e01183ef1ca (patch)
tree71cdf105f4977f819c967e4a1f1b53c211eb9d80
parent0952f59b92297452f4747acf101cce3c33038b88 (diff)
downloadrockbox-c0bdbb43ea6319a937a565251eeb4e01183ef1ca.tar.gz
rockbox-c0bdbb43ea6319a937a565251eeb4e01183ef1ca.tar.bz2
rockbox-c0bdbb43ea6319a937a565251eeb4e01183ef1ca.zip
Agptek Rocker: Callibrate power discharge/charge curve
Thanks 'elakir' and 'pechenyh' rockbox forum users for performing battery bench. Change-Id: I25d350deaa805a9ecdc236f81f0ad127a169de52
-rw-r--r--firmware/target/hosted/agptek/powermgmt-agptek.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/hosted/agptek/powermgmt-agptek.c b/firmware/target/hosted/agptek/powermgmt-agptek.c
index 6bfccb4115..bd7e4157d6 100644
--- a/firmware/target/hosted/agptek/powermgmt-agptek.c
+++ b/firmware/target/hosted/agptek/powermgmt-agptek.c
@@ -32,18 +32,16 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
3400
};
-/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled
- * NOTE: not calibrated simple linear scale for now
- */
+/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- { 3400, 3480, 3560, 3640, 3720, 3800, 3880, 3960, 4040, 4120, 4200 }
+ { 3400, 3675, 3715, 3750, 3775, 3810, 3850, 3915, 3985, 4060, 4155 }
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short const percent_to_volt_charge[11] =
{
- 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200
+ 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196
};
unsigned int power_input_status(void)