summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Dziok <b0hoon@o2.pl>2012-03-04 21:05:58 +0100
committerSzymon Dziok <b0hoon@o2.pl>2012-03-17 19:20:21 +0100
commitb67f1b28726b40eafb2bd2818040dfac7626c9aa (patch)
treeec89be863279153c1f175fc20abcd1d279125212
parent740722f91338d8571eddbb16983368661a4d87c0 (diff)
downloadrockbox-b67f1b28726b40eafb2bd2818040dfac7626c9aa.tar.gz
rockbox-b67f1b28726b40eafb2bd2818040dfac7626c9aa.zip
HDD6330: Correct voltage values, based on the values found in the OF.
Change-Id: I76a101cd2c96be06fc95ca16871e5c86c2326c2d
-rw-r--r--firmware/target/arm/philips/hdd6330/powermgmt-hdd6330.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/philips/hdd6330/powermgmt-hdd6330.c b/firmware/target/arm/philips/hdd6330/powermgmt-hdd6330.c
index 938d8ce14c..0f5dc4f4f7 100644
--- a/firmware/target/arm/philips/hdd6330/powermgmt-hdd6330.c
+++ b/firmware/target/arm/philips/hdd6330/powermgmt-hdd6330.c
@@ -26,25 +26,25 @@
26 26
27const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = 27const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
28{ 28{
29 3550 29 3500
30}; 30};
31 31
32const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = 32const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
33{ 33{
34 3500 34 3400
35}; 35};
36 36
37/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ 37/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
38const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = 38const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
39{ 39{
40 { 3480, 3550, 3590, 3610, 3630, 3650, 3700, 3760, 3800, 3910, 3990 }, 40 { 3400, 3550, 3630, 3690 ,3730, 3770, 3810, 3850, 3890, 3930, 3980 },
41}; 41};
42 42
43#if CONFIG_CHARGING 43#if CONFIG_CHARGING
44/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ 44/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
45const unsigned short percent_to_volt_charge[11] = 45const unsigned short percent_to_volt_charge[11] =
46{ 46{
47 3480, 3550, 3590, 3610, 3630, 3650, 3700, 3760, 3800, 3910, 3990 47 3400, 3550, 3630, 3690 ,3730, 3770, 3810, 3850, 3890, 3930, 3980
48}; 48};
49#endif /* CONFIG_CHARGING */ 49#endif /* CONFIG_CHARGING */
50 50