summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sony-nwz
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-07-01 17:25:37 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-07-01 17:26:29 +0200
commit8d754c09970416774fab99ae4314920046fc9467 (patch)
treef5cc4c032dbae61e1eb63c1f0a5c662cf5a89491 /firmware/target/arm/imx233/sony-nwz
parent314516e228421787b9ea3d0336ff99234ea511af (diff)
downloadrockbox-8d754c09970416774fab99ae4314920046fc9467.tar.gz
rockbox-8d754c09970416774fab99ae4314920046fc9467.tar.bz2
rockbox-8d754c09970416774fab99ae4314920046fc9467.zip
Sony NWZ: calibrate discharge curves
The charging curve also need to be calibrated but that will be part of another commit. Change-Id: Ie4c5995123e4059ae4f3c9d86c11fc1257314d39
Diffstat (limited to 'firmware/target/arm/imx233/sony-nwz')
-rw-r--r--firmware/target/arm/imx233/sony-nwz/powermgmt-nwze360.c8
-rw-r--r--firmware/target/arm/imx233/sony-nwz/powermgmt-nwze370.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze360.c b/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze360.c
index fd395e30ca..8d9cecc4f3 100644
--- a/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze360.c
+++ b/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze360.c
@@ -23,7 +23,7 @@
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
- 3659
+ 3660
};
const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
@@ -34,13 +34,13 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- /* Toshiba Gigabeat S Li Ion 700mAH figured from discharge curve */
- { 3659, 3719, 3745, 3761, 3785, 3813, 3856, 3926, 3984, 4040, 4121 },
+ /* figured from discharge curve */
+ { 3630, 3720, 3770, 3800, 3816, 3845, 3888, 3950, 4010, 4070, 4150 },
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short percent_to_volt_charge[11] =
{
- /* Toshiba Gigabeat S Li Ion 700mAH figured from charge curve */
+ /* TODO */
4028, 4063, 4087, 4111, 4135, 4156, 4173, 4185, 4194, 4202, 4208
};
diff --git a/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze370.c b/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze370.c
index fd395e30ca..f7ff147cb1 100644
--- a/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze370.c
+++ b/firmware/target/arm/imx233/sony-nwz/powermgmt-nwze370.c
@@ -23,7 +23,7 @@
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
- 3659
+ 3660
};
const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
@@ -34,13 +34,13 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- /* Toshiba Gigabeat S Li Ion 700mAH figured from discharge curve */
- { 3659, 3719, 3745, 3761, 3785, 3813, 3856, 3926, 3984, 4040, 4121 },
+ /* figured from discharge curve */
+ { 3630, 3700, 3745, 3775, 3800, 3830, 3880, 3940, 4000, 4070, 4140 },
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short percent_to_volt_charge[11] =
{
- /* Toshiba Gigabeat S Li Ion 700mAH figured from charge curve */
+ /* TODO */
4028, 4063, 4087, 4111, 4135, 4156, 4173, 4185, 4194, 4202, 4208
};