summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-07 13:32:48 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-07 13:32:48 +0000
commit703773aab5857b9400e896c91fc6e0f2d19f7c59 (patch)
treea560591500069aa45bcbaf9df021cf7b5d38dfd8 /firmware
parent0f50302b1d437496fc546d8b101df5766659ef1c (diff)
downloadrockbox-703773aab5857b9400e896c91fc6e0f2d19f7c59.tar.gz
rockbox-703773aab5857b9400e896c91fc6e0f2d19f7c59.tar.bz2
rockbox-703773aab5857b9400e896c91fc6e0f2d19f7c59.zip
Samsung YH925: Battery calibration for charging and dischharging.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/samsung/yh925/powermgmt-yh925.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/samsung/yh925/powermgmt-yh925.c b/firmware/target/arm/samsung/yh925/powermgmt-yh925.c
index 8945bdbf78..80dcefcc9d 100644
--- a/firmware/target/arm/samsung/yh925/powermgmt-yh925.c
+++ b/firmware/target/arm/samsung/yh925/powermgmt-yh925.c
@@ -28,24 +28,24 @@
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
- 3733
+ 3750
};
const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
{
- 3627
+ 3700
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- { 3733, 3772, 3821, 3840, 3869, 3917, 3985, 4034, 4072, 4140, 4198 }
+ { 3700, 3822, 3880, 3909, 3946, 3976, 3024, 4086, 4141, 4223, 4307 }
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short percent_to_volt_charge[11] =
{
- 3956, 3995, 4024, 4043, 4063, 4082, 4111, 4140, 4179, 4218, 4266
+ 3868, 3971, 3988, 3998, 4018, 4036, 4097, 4116, 4165, 4222, 4307
};
#define BATTERY_SCALE_FACTOR 4650