diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-10-05 10:58:51 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-10-05 10:58:51 +0000 |
commit | d4945dc0d07b23eced900075e8748ccc7fb3e424 (patch) | |
tree | 4d67d49b4c036a841fb1ffe2e5f3a267bb9309d0 /firmware/drivers/power.c | |
parent | 1d69db7355dc7e3cbabc3c1c949e5d6ba3863405 (diff) | |
download | rockbox-d4945dc0d07b23eced900075e8748ccc7fb3e424.tar.gz rockbox-d4945dc0d07b23eced900075e8748ccc7fb3e424.zip |
Move all iPod targets into the target tree. FS#5890
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
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) pcf50606_init(); #endif #endif -#elif CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002 - pcf50605_init(); #else #ifdef HAVE_POWEROFF_ON_PB5 PBCR2 &= ~0x0c00; /* GPIO for PB5 */ @@ -123,12 +121,6 @@ bool charger_inserted(void) return (adc_read(ADC_CHARGE_REGULATOR) < 0x1FF); #elif defined(TOSHIBA_GIGABEAT_F) return false; -#elif defined(IPOD_VIDEO) - return (GPIOL_INPUT_VAL & 0x08)?false:true; -#elif defined(IPOD_ARCH) - /* This needs filling in for other ipods. */ - return false; -#else /* Player */ return (PADR & 1) == 0; #endif @@ -166,8 +158,6 @@ bool charging_state(void) { return charger_inserted(); #elif defined IRIVER_H300_SERIES return (GPIO_READ & 0x00800000)?true:false; -#elif defined IPOD_VIDEO - return (GPIOB_INPUT_VAL & 0x01)?false:true; #endif } #endif @@ -201,8 +191,6 @@ void ide_power_enable(bool on) or_l(0x80000000, &GPIO_OUT); #elif defined(IAUDIO_X5) /* X5 TODO */ -#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) - /* We do nothing on the iPod */ #elif defined(GMINI_ARCH) if(on) P1 |= 0x08; @@ -259,9 +247,6 @@ bool ide_powered(void) return (GPIO_OUT & 0x80000000)?false:true; #elif defined(IAUDIO_X5) return false; /* X5 TODO */ -#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) - /* pretend we are always powered - we don't turn it off on the ipod */ - return true; #elif defined(GMINI_ARCH) return (P1 & 0x08?true:false); #elif defined(TOSHIBA_GIGABEAT_F) @@ -296,11 +281,6 @@ void power_off(void) #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) and_l(~0x00080000, &GPIO1_OUT); asm("halt"); -#elif (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) -#ifndef BOOTLOADER - /* We don't turn off the ipod, we put it in a deep sleep */ - pcf50605_standby_mode(); -#endif #elif CONFIG_CPU == PNX0101 GPIO1_CLR = 1 << 16; GPIO2_SET = 1; |