diff options
Diffstat (limited to 'firmware/drivers/power.c')
-rw-r--r-- | firmware/drivers/power.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index d5b75a130d..cfe64c965e 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -84,8 +84,6 @@ void power_init(void) | |||
84 | pcf50606_init(); | 84 | pcf50606_init(); |
85 | #endif | 85 | #endif |
86 | #endif | 86 | #endif |
87 | #elif CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 | ||
88 | pcf50605_init(); | ||
89 | #else | 87 | #else |
90 | #ifdef HAVE_POWEROFF_ON_PB5 | 88 | #ifdef HAVE_POWEROFF_ON_PB5 |
91 | PBCR2 &= ~0x0c00; /* GPIO for PB5 */ | 89 | PBCR2 &= ~0x0c00; /* GPIO for PB5 */ |
@@ -123,12 +121,6 @@ bool charger_inserted(void) | |||
123 | return (adc_read(ADC_CHARGE_REGULATOR) < 0x1FF); | 121 | return (adc_read(ADC_CHARGE_REGULATOR) < 0x1FF); |
124 | #elif defined(TOSHIBA_GIGABEAT_F) | 122 | #elif defined(TOSHIBA_GIGABEAT_F) |
125 | return false; | 123 | return false; |
126 | #elif defined(IPOD_VIDEO) | ||
127 | return (GPIOL_INPUT_VAL & 0x08)?false:true; | ||
128 | #elif defined(IPOD_ARCH) | ||
129 | /* This needs filling in for other ipods. */ | ||
130 | return false; | ||
131 | #else | ||
132 | /* Player */ | 124 | /* Player */ |
133 | return (PADR & 1) == 0; | 125 | return (PADR & 1) == 0; |
134 | #endif | 126 | #endif |
@@ -166,8 +158,6 @@ bool charging_state(void) { | |||
166 | return charger_inserted(); | 158 | return charger_inserted(); |
167 | #elif defined IRIVER_H300_SERIES | 159 | #elif defined IRIVER_H300_SERIES |
168 | return (GPIO_READ & 0x00800000)?true:false; | 160 | return (GPIO_READ & 0x00800000)?true:false; |
169 | #elif defined IPOD_VIDEO | ||
170 | return (GPIOB_INPUT_VAL & 0x01)?false:true; | ||
171 | #endif | 161 | #endif |
172 | } | 162 | } |
173 | #endif | 163 | #endif |
@@ -201,8 +191,6 @@ void ide_power_enable(bool on) | |||
201 | or_l(0x80000000, &GPIO_OUT); | 191 | or_l(0x80000000, &GPIO_OUT); |
202 | #elif defined(IAUDIO_X5) | 192 | #elif defined(IAUDIO_X5) |
203 | /* X5 TODO */ | 193 | /* X5 TODO */ |
204 | #elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) | ||
205 | /* We do nothing on the iPod */ | ||
206 | #elif defined(GMINI_ARCH) | 194 | #elif defined(GMINI_ARCH) |
207 | if(on) | 195 | if(on) |
208 | P1 |= 0x08; | 196 | P1 |= 0x08; |
@@ -259,9 +247,6 @@ bool ide_powered(void) | |||
259 | return (GPIO_OUT & 0x80000000)?false:true; | 247 | return (GPIO_OUT & 0x80000000)?false:true; |
260 | #elif defined(IAUDIO_X5) | 248 | #elif defined(IAUDIO_X5) |
261 | return false; /* X5 TODO */ | 249 | return false; /* X5 TODO */ |
262 | #elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) | ||
263 | /* pretend we are always powered - we don't turn it off on the ipod */ | ||
264 | return true; | ||
265 | #elif defined(GMINI_ARCH) | 250 | #elif defined(GMINI_ARCH) |
266 | return (P1 & 0x08?true:false); | 251 | return (P1 & 0x08?true:false); |
267 | #elif defined(TOSHIBA_GIGABEAT_F) | 252 | #elif defined(TOSHIBA_GIGABEAT_F) |
@@ -296,11 +281,6 @@ void power_off(void) | |||
296 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) | 281 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
297 | and_l(~0x00080000, &GPIO1_OUT); | 282 | and_l(~0x00080000, &GPIO1_OUT); |
298 | asm("halt"); | 283 | asm("halt"); |
299 | #elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) | ||
300 | #ifndef BOOTLOADER | ||
301 | /* We don't turn off the ipod, we put it in a deep sleep */ | ||
302 | pcf50605_standby_mode(); | ||
303 | #endif | ||
304 | #elif CONFIG_CPU == PNX0101 | 284 | #elif CONFIG_CPU == PNX0101 |
305 | GPIO1_CLR = 1 << 16; | 285 | GPIO1_CLR = 1 << 16; |
306 | GPIO2_SET = 1; | 286 | GPIO2_SET = 1; |