diff options
Diffstat (limited to 'firmware/target/arm/pnx0101/iriver-ifp7xx/power-ifp7xx.c')
-rw-r--r-- | firmware/target/arm/pnx0101/iriver-ifp7xx/power-ifp7xx.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/firmware/target/arm/pnx0101/iriver-ifp7xx/power-ifp7xx.c b/firmware/target/arm/pnx0101/iriver-ifp7xx/power-ifp7xx.c deleted file mode 100644 index 1fd9d68028..0000000000 --- a/firmware/target/arm/pnx0101/iriver-ifp7xx/power-ifp7xx.c +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Linus Nielsen Feltzing | ||
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 | #include "config.h" | ||
22 | #include "cpu.h" | ||
23 | #include <stdbool.h> | ||
24 | #include "kernel.h" | ||
25 | #include "system.h" | ||
26 | #include "power.h" | ||
27 | #include "logf.h" | ||
28 | #include "usb.h" | ||
29 | |||
30 | #if CONFIG_TUNER | ||
31 | |||
32 | bool tuner_power(bool status) | ||
33 | { | ||
34 | (void)status; | ||
35 | return true; | ||
36 | } | ||
37 | |||
38 | #endif /* #if CONFIG_TUNER */ | ||
39 | |||
40 | #ifndef SIMULATOR | ||
41 | |||
42 | void power_init(void) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | void ide_power_enable(bool on) | ||
47 | { | ||
48 | (void)on; | ||
49 | /* no ide controller */ | ||
50 | } | ||
51 | |||
52 | bool ide_powered(void) | ||
53 | { | ||
54 | return true; /* pretend always powered if not controlable */ | ||
55 | } | ||
56 | |||
57 | void power_off(void) | ||
58 | { | ||
59 | disable_interrupt(IRQ_FIQ_STATUS); | ||
60 | GPIO1_CLR = 1 << 16; | ||
61 | GPIO2_SET = 1; | ||
62 | while(1); | ||
63 | } | ||
64 | |||
65 | #else | ||
66 | |||
67 | void power_off(void) | ||
68 | { | ||
69 | } | ||
70 | |||
71 | void ide_power_enable(bool on) | ||
72 | { | ||
73 | (void)on; | ||
74 | } | ||
75 | |||
76 | #endif /* SIMULATOR */ | ||