diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 484c97eda9..88dc3b9473 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -175,6 +175,10 @@ static const unsigned int battery_level_dangerous[BATTERY_TYPES_COUNT] = | |||
175 | 105, 115 | 175 | 105, 115 |
176 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0: LiPolymer */ | 176 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0: LiPolymer */ |
177 | 338 | 177 | 338 |
178 | #elif CONFIG_BATTERY == BATT_LIION300 /* ipod nano */ | ||
179 | 333 | ||
180 | #elif CONFIG_BATTERY == BATT_LIION400 /* iPOD Video 30GB */ | ||
181 | 345 | ||
178 | #elif CONFIG_BATTERY == BATT_LIION750 /* Sansa e200 */ | 182 | #elif CONFIG_BATTERY == BATT_LIION750 /* Sansa e200 */ |
179 | 340 | 183 | 340 |
180 | #elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */ | 184 | #elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */ |
@@ -198,6 +202,10 @@ static const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = | |||
198 | 270, 280 | 202 | 270, 280 |
199 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver Hxxx */ | 203 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver Hxxx */ |
200 | 302 | 204 | 302 |
205 | #elif CONFIG_BATTERY == BATT_LIION300 /* ipod nano */ | ||
206 | 323 | ||
207 | #elif CONFIG_BATTERY == BATT_LIION400 /* iPOD Video 30GB */ | ||
208 | 345 | ||
201 | #elif CONFIG_BATTERY == BATT_LIION750 /* Sansa e200 */ | 209 | #elif CONFIG_BATTERY == BATT_LIION750 /* Sansa e200 */ |
202 | 330 | 210 | 330 |
203 | #elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */ | 211 | #elif CONFIG_BATTERY == BATT_LIION830 /* Gigabeat F */ |
@@ -246,6 +254,12 @@ static const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = | |||
246 | #elif CONFIG_BATTERY == BATT_LIION750 | 254 | #elif CONFIG_BATTERY == BATT_LIION750 |
247 | /* Sansa Li Ion 750mAH FIXME this is a first linear approach */ | 255 | /* Sansa Li Ion 750mAH FIXME this is a first linear approach */ |
248 | { 330, 339, 348, 357, 366, 375, 384, 393, 402, 411, 420 }, | 256 | { 330, 339, 348, 357, 366, 375, 384, 393, 402, 411, 420 }, |
257 | #elif CONFIG_BATTERY == BATT_LIION400 /* iPOD Video 30GB */ | ||
258 | /* iPOD Video 30GB Li-Ion 400mAh, first approach based upon measurements */ | ||
259 | { 345, 367, 371, 375, 379, 383, 387, 393, 401, 410, 418 }, | ||
260 | #elif CONFIG_BATTERY == BATT_LIION300 | ||
261 | /* measured values */ | ||
262 | { 323, 362, 370, 373, 375, 378, 383, 389, 395, 403, 416 }, | ||
249 | #else /* NiMH */ | 263 | #else /* NiMH */ |
250 | /* original values were taken directly after charging, but it should show | 264 | /* original values were taken directly after charging, but it should show |
251 | 100% after turning off the device for some hours, too */ | 265 | 100% after turning off the device for some hours, too */ |
@@ -264,6 +278,12 @@ static const unsigned short percent_to_volt_charge[11] = | |||
264 | #if CONFIG_BATTERY == BATT_LIPOL1300 | 278 | #if CONFIG_BATTERY == BATT_LIPOL1300 |
265 | /* values measured over one full charging cycle */ | 279 | /* values measured over one full charging cycle */ |
266 | 354, 386, 393, 398, 400, 402, 404, 408, 413, 418, 423 /* LiPo */ | 280 | 354, 386, 393, 398, 400, 402, 404, 408, 413, 418, 423 /* LiPo */ |
281 | #elif CONFIG_BATTERY == BATT_LIION300 | ||
282 | /* measured values */ | ||
283 | 323, 362, 370, 373, 375, 378, 383, 389, 395, 403, 416 | ||
284 | #elif CONFIG_BATTERY == BATT_LIION400 | ||
285 | /* iPOD Video 30GB Li-Ion 400mAh, first approach based upon measurements */ | ||
286 | 345, 367, 371, 375, 379, 383, 387, 393, 401, 410, 418 | ||
267 | #elif CONFIG_BATTERY == BATT_LIION750 | 287 | #elif CONFIG_BATTERY == BATT_LIION750 |
268 | /* Sansa Li Ion 750mAH FIXME*/ | 288 | /* Sansa Li Ion 750mAH FIXME*/ |
269 | 330, 339, 348, 357, 366, 375, 384, 393, 402, 411, 420 | 289 | 330, 339, 348, 357, 366, 375, 384, 393, 402, 411, 420 |