summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index eced1a21a6..5f112c3545 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -190,6 +190,8 @@ static const unsigned int battery_level_dangerous[BATTERY_TYPES_COUNT] =
190 105, 115 190 105, 115
191#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0: LiPolymer */ 191#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0: LiPolymer */
192 338 192 338
193#elif CONFIG_BATTERY == BATT_LIION750 /* Sansa e200 */
194 340
193#elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */ 195#elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */
194 345 196 345
195#elif CONFIG_BATTERY == BATT_IAUDIO_X5M5 /* iAudio X5 */ 197#elif CONFIG_BATTERY == BATT_IAUDIO_X5M5 /* iAudio X5 */
@@ -211,6 +213,8 @@ static const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
211 270, 280 213 270, 280
212#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver Hxxx */ 214#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver Hxxx */
213 302 215 302
216#elif CONFIG_BATTERY == BATT_LIION750 /* Sansa e200 */
217 330
214#elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */ 218#elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */
215 340 219 340
216#elif CONFIG_BATTERY == BATT_IAUDIO_X5M5 /* iAudio X5 */ 220#elif CONFIG_BATTERY == BATT_IAUDIO_X5M5 /* iAudio X5 */
@@ -258,6 +262,9 @@ static const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
258#elif CONFIG_BATTERY == BATT_LIION830 262#elif CONFIG_BATTERY == BATT_LIION830
259 /* Toshiba Gigabeat Li Ion 830mAH figured from discharge curve */ 263 /* Toshiba Gigabeat Li Ion 830mAH figured from discharge curve */
260 { 354, 357, 359, 361, 364, 366, 372, 381, 377, 381, 394 }, 264 { 354, 357, 359, 361, 364, 366, 372, 381, 377, 381, 394 },
265#elif CONFIG_BATTERY == BATT_LIION750
266 /* Sansa Li Ion 750mAH FIXME this is a first linear approach */
267 { 330, 339, 348, 357, 366, 375, 384, 393, 402, 411, 420 },
261#else /* NiMH */ 268#else /* NiMH */
262 /* original values were taken directly after charging, but it should show 269 /* original values were taken directly after charging, but it should show
263 100% after turning off the device for some hours, too */ 270 100% after turning off the device for some hours, too */
@@ -276,6 +283,9 @@ static const unsigned short percent_to_volt_charge[11] =
276#if CONFIG_BATTERY == BATT_LIPOL1300 283#if CONFIG_BATTERY == BATT_LIPOL1300
277 /* values measured over one full charging cycle */ 284 /* values measured over one full charging cycle */
278 354, 386, 393, 398, 400, 402, 404, 408, 413, 418, 423 /* LiPo */ 285 354, 386, 393, 398, 400, 402, 404, 408, 413, 418, 423 /* LiPo */
286#elif CONFIG_BATTERY == BATT_LIION750
287 /* Sansa Li Ion 750mAH FIXME*/
288 330, 339, 348, 357, 366, 375, 384, 393, 402, 411, 420
279#elif CONFIG_BATTERY == BATT_LIION830 289#elif CONFIG_BATTERY == BATT_LIION830
280 /* Toshiba Gigabeat Li Ion 830mAH */ 290 /* Toshiba Gigabeat Li Ion 830mAH */
281 354, 357, 359, 361, 364, 366, 372, 381, 377, 381, 394 291 354, 357, 359, 361, 364, 366, 372, 381, 377, 381, 394