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 | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c index 1d26c68177..a76e827bec 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c +++ b/firmware/target/arm/tms320dm320/creative-zvm/power-creativezvm.c | |||
@@ -1,70 +1,70 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * __________ __ ___. | 2 | * __________ __ ___. |
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id: power-mr500.c 15599 2007-11-12 18:49:53Z amiconn $ | 8 | * $Id: power-mr500.c 15599 2007-11-12 18:49:53Z amiconn $ |
9 | * | 9 | * |
10 | * Copyright (C) 2007 by Karl Kurbjun | 10 | * Copyright (C) 2007 by Karl Kurbjun |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
14 | * as published by the Free Software Foundation; either version 2 | 14 | * as published by the Free Software Foundation; either version 2 |
15 | * of the License, or (at your option) any later version. | 15 | * of the License, or (at your option) any later version. |
16 | * | 16 | * |
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
18 | * KIND, either express or implied. | 18 | * KIND, either express or implied. |
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | #include "cpu.h" | 23 | #include "cpu.h" |
24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
25 | #include "kernel.h" | 25 | #include "kernel.h" |
26 | #include "system.h" | 26 | #include "system.h" |
27 | #include "power.h" | 27 | #include "power.h" |
28 | #include "backlight.h" | 28 | #include "backlight.h" |
29 | #include "backlight-target.h" | 29 | #include "backlight-target.h" |
30 | 30 | ||
31 | #ifndef SIMULATOR | 31 | #ifndef SIMULATOR |
32 | 32 | ||
33 | void power_init(void) | 33 | void power_init(void) |
34 | { | 34 | { |
35 | /* Initialize IDE power pin */ | 35 | /* Initialize IDE power pin */ |
36 | /* set ATA power on and output */ | 36 | /* set ATA power on and output */ |
37 | /* Charger detect */ | 37 | /* Charger detect */ |
38 | } | 38 | } |
39 | 39 | ||
40 | bool charger_inserted(void) | 40 | bool charger_inserted(void) |
41 | { | 41 | { |
42 | return false; | 42 | return false; |
43 | } | 43 | } |
44 | 44 | ||
45 | /* Returns true if the unit is charging the batteries. */ | 45 | /* Returns true if the unit is charging the batteries. */ |
46 | bool charging_state(void) { | 46 | bool charging_state(void) { |
47 | return false; | 47 | return false; |
48 | } | 48 | } |
49 | 49 | ||
50 | void power_off(void) | 50 | void power_off(void) |
51 | { | 51 | { |
52 | } | 52 | } |
53 | 53 | ||
54 | #else /* SIMULATOR */ | 54 | #else /* SIMULATOR */ |
55 | 55 | ||
56 | bool charger_inserted(void) | 56 | bool charger_inserted(void) |
57 | { | 57 | { |
58 | return false; | 58 | return false; |
59 | } | 59 | } |
60 | 60 | ||
61 | void charger_enable(bool on) | 61 | void charger_enable(bool on) |
62 | { | 62 | { |
63 | (void)on; | 63 | (void)on; |
64 | } | 64 | } |
65 | 65 | ||
66 | void power_off(void) | 66 | void power_off(void) |
67 | { | 67 | { |
68 | } | 68 | } |
69 | 69 | ||
70 | #endif /* SIMULATOR */ | 70 | #endif /* SIMULATOR */ |