diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-03-07 04:41:37 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-03-07 04:41:37 +0000 |
commit | da1ca5177fd1606fe494939e120c5731b4bb5d3f (patch) | |
tree | 63d77425f61fe05e12c52a3413dca2d0572bd485 /firmware/target/arm/philips/sa9200/powermgmt-target.h | |
parent | a88d5f045f054347a33320a417177f71bb2c3a91 (diff) | |
download | rockbox-da1ca5177fd1606fe494939e120c5731b4bb5d3f.tar.gz rockbox-da1ca5177fd1606fe494939e120c5731b4bb5d3f.zip |
Make Philips SA9200 build again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20226 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/philips/sa9200/powermgmt-target.h')
-rw-r--r-- | firmware/target/arm/philips/sa9200/powermgmt-target.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/firmware/target/arm/philips/sa9200/powermgmt-target.h b/firmware/target/arm/philips/sa9200/powermgmt-target.h new file mode 100644 index 0000000000..4400cda5d1 --- /dev/null +++ b/firmware/target/arm/philips/sa9200/powermgmt-target.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2009 by Michael Sevakis | ||
11 | * Copyright (C) 2008 by Bertrik Sikken | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | #ifndef POWERMGMT_TARGET_H | ||
23 | #define POWERMGMT_TARGET_H | ||
24 | |||
25 | /* NOTE: these values are copied from the Sansa e200v1 */ | ||
26 | |||
27 | /* PREFERRED - Check if topped-off and monitor voltage while plugged. */ | ||
28 | #define BATT_FULL_VOLTAGE 4160 | ||
29 | #define BATT_VAUTO_RECHARGE 4100 | ||
30 | #define BATT_CHG_V CHG_V_4_20V | ||
31 | #define BATT_CHG_I CHG_I_300MA | ||
32 | #define CHARGER_TOTAL_TIMER (4*3600*2) /* 4 hours enough? */ | ||
33 | /* On e200 ADC_RTCSUP seems to represent battery voltage better than | ||
34 | * ADC_BVDD during charging (ADC_BVDD is way too high) and appears the | ||
35 | * same in normal use. | ||
36 | */ | ||
37 | #define ADC_BATTERY ADC_RTCSUP | ||
38 | |||
39 | void powermgmt_init_target(void); | ||
40 | void charging_algorithm_step(void); | ||
41 | void charging_algorithm_close(void); | ||
42 | |||
43 | /* We want to be able to reset the averaging filter */ | ||
44 | #define HAVE_RESET_BATTERY_FILTER | ||
45 | |||
46 | #define BATT_AVE_SAMPLES 32 | ||
47 | |||
48 | #endif /* POWERMGMT_TARGET_H */ | ||