diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2011-12-24 19:20:12 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2011-12-24 19:20:12 +0000 |
commit | f7f1f7023f94a0c1f00033235f0f9d9ab51a1b3f (patch) | |
tree | 394779c4dd8e6df796471346abb5f246aaee18e1 /firmware/target/arm/imx233/sansa-fuzeplus/powermgmt-target.h | |
parent | a1d3ed25346ab4174cb7fd066158cebc8e29fc79 (diff) | |
download | rockbox-f7f1f7023f94a0c1f00033235f0f9d9ab51a1b3f.tar.gz rockbox-f7f1f7023f94a0c1f00033235f0f9d9ab51a1b3f.zip |
imx233/fuze+: implement power management(battery charger), add powermgmt debug info, add power debug info, move target specific powermgmt code to its own files, remove auto-slow setup which was forgotten for debugging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31424 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/powermgmt-target.h')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/powermgmt-target.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/powermgmt-target.h b/firmware/target/arm/imx233/sansa-fuzeplus/powermgmt-target.h new file mode 100644 index 0000000000..34d1d00e1d --- /dev/null +++ b/firmware/target/arm/imx233/sansa-fuzeplus/powermgmt-target.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2011 by Amaury Pouly | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef POWERMGMT_TARGET_H | ||
22 | #define POWERMGMT_TARGET_H | ||
23 | |||
24 | #include "config.h" | ||
25 | #include "powermgmt-imx233.h" | ||
26 | |||
27 | /* Fuze+ OF settings: | ||
28 | * - current ramp slope: 50 mA/s | ||
29 | * - conditioning threshold voltage: 3 V | ||
30 | * - conditioning max voltage: 3.1 V | ||
31 | * - conditioning current: 60 mA | ||
32 | * - conditioning timeout: 1 h | ||
33 | * - charging voltage: 4.2 V | ||
34 | * - charging current: 200 mA | ||
35 | * - charging threshold current: 30 mA | ||
36 | * - charging timeout: 4 h | ||
37 | * - top off period: 30 min | ||
38 | * - high die temperature: 71 °C | ||
39 | * - low die temperature: 56 °C | ||
40 | * - safe temperature current: 30 mA | ||
41 | */ | ||
42 | |||
43 | #define IMX233_CHARGE_CURRENT 200 | ||
44 | #define IMX233_STOP_CURRENT 30 | ||
45 | #define IMX233_TOPOFF_TIMEOUT (30 * 60 * HZ) | ||
46 | #define IMX233_CHARGING_TIMEOUT (4 * 3600 * HZ) | ||
47 | |||
48 | #endif /* POWERMGMT_TARGET_H */ | ||