diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c new file mode 100644 index 0000000000..5a72deced9 --- /dev/null +++ b/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c | |||
@@ -0,0 +1,68 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: power-mr500.c 15599 2007-11-12 18:49:53Z amiconn $ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Karl Kurbjun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #include "config.h" | ||
21 | #include "cpu.h" | ||
22 | #include <stdbool.h> | ||
23 | #include "kernel.h" | ||
24 | #include "system.h" | ||
25 | #include "power.h" | ||
26 | #include "backlight.h" | ||
27 | #include "backlight-target.h" | ||
28 | |||
29 | #ifndef SIMULATOR | ||
30 | |||
31 | void power_init(void) | ||
32 | { | ||
33 | /* Initialize IDE power pin */ | ||
34 | /* set ATA power on and output */ | ||
35 | /* Charger detect */ | ||
36 | } | ||
37 | |||
38 | bool charger_inserted(void) | ||
39 | { | ||
40 | return false; | ||
41 | } | ||
42 | |||
43 | /* Returns true if the unit is charging the batteries. */ | ||
44 | bool charging_state(void) { | ||
45 | return false; | ||
46 | } | ||
47 | |||
48 | void power_off(void) | ||
49 | { | ||
50 | } | ||
51 | |||
52 | #else /* SIMULATOR */ | ||
53 | |||
54 | bool charger_inserted(void) | ||
55 | { | ||
56 | return false; | ||
57 | } | ||
58 | |||
59 | void charger_enable(bool on) | ||
60 | { | ||
61 | (void)on; | ||
62 | } | ||
63 | |||
64 | void power_off(void) | ||
65 | { | ||
66 | } | ||
67 | |||
68 | #endif /* SIMULATOR */ | ||