diff options
Diffstat (limited to 'firmware/target/arm/tatung/tpj1022/power-tpj1022.c')
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/power-tpj1022.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/firmware/target/arm/tatung/tpj1022/power-tpj1022.c b/firmware/target/arm/tatung/tpj1022/power-tpj1022.c deleted file mode 100644 index fa46f34daa..0000000000 --- a/firmware/target/arm/tatung/tpj1022/power-tpj1022.c +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Barry Wardell | ||
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 | |||
22 | /* Created from power.c using some iPod code, and some custom stuff based on | ||
23 | GPIO analysis | ||
24 | */ | ||
25 | |||
26 | #include "config.h" | ||
27 | #include "cpu.h" | ||
28 | #include <stdbool.h> | ||
29 | #include "kernel.h" | ||
30 | #include "system.h" | ||
31 | #include "power.h" | ||
32 | #include "logf.h" | ||
33 | #include "usb.h" | ||
34 | |||
35 | void power_init(void) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | unsigned int power_input_status(void) | ||
40 | { | ||
41 | return POWER_INPUT_NONE; | ||
42 | } | ||
43 | |||
44 | void ide_power_enable(bool on) | ||
45 | { | ||
46 | (void)on; | ||
47 | /* We do nothing on the iPod */ | ||
48 | } | ||
49 | |||
50 | |||
51 | bool ide_powered(void) | ||
52 | { | ||
53 | /* pretend we are always powered - we don't turn it off on the ipod */ | ||
54 | return true; | ||
55 | } | ||
56 | |||
57 | void power_off(void) | ||
58 | { | ||
59 | /* Give things a second to settle before cutting power */ | ||
60 | sleep(HZ); | ||
61 | |||
62 | //GPIOF_OUTPUT_VAL &=~ 0x20; | ||
63 | } | ||