1
0
Fork 0
forked from len0rd/rockbox

iPod: We are not going to implement ATA power-off control (Rockbox will still use the ATA hardware's power handling)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8031 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-11-21 22:44:15 +00:00
parent bccfae0a58
commit d60aac9243
3 changed files with 2 additions and 8 deletions

View file

@ -175,7 +175,7 @@ void ide_power_enable(bool on)
else else
or_l(0x80000000, &GPIO_OUT); or_l(0x80000000, &GPIO_OUT);
#elif CONFIG_CPU == PP5020 #elif CONFIG_CPU == PP5020
/* TODO: Implement ide_power_enable() */ /* We do nothing on the iPod */
#elif defined(GMINI_ARCH) #elif defined(GMINI_ARCH)
if(on) if(on)
P1 |= 0x08; P1 |= 0x08;
@ -227,7 +227,7 @@ bool ide_powered(void)
#if CONFIG_CPU == MCF5249 #if CONFIG_CPU == MCF5249
return (GPIO_OUT & 0x80000000)?false:true; return (GPIO_OUT & 0x80000000)?false:true;
#elif CONFIG_CPU == PP5020 #elif CONFIG_CPU == PP5020
/* TODO: Implement ide_powered() */ /* pretend we are always powered - we don't turn it off on the ipod */
return true; return true;
#elif defined(GMINI_ARCH) #elif defined(GMINI_ARCH)
return (P1 & 0x08?true:false); return (P1 & 0x08?true:false);

View file

@ -66,9 +66,6 @@
/* Define this to the CPU frequency */ /* Define this to the CPU frequency */
#define CPU_FREQ 11289600 #define CPU_FREQ 11289600
/* Define this if you have ATA power-off control */
#define HAVE_ATA_POWER_OFF
#define CONFIG_LCD LCD_IPODCOLOR #define CONFIG_LCD LCD_IPODCOLOR
/* Offset ( in the firmware file's header ) to the file length */ /* Offset ( in the firmware file's header ) to the file length */

View file

@ -68,9 +68,6 @@
/* Define this to the CPU frequency */ /* Define this to the CPU frequency */
#define CPU_FREQ 11289600 #define CPU_FREQ 11289600
/* Define this if you have ATA power-off control */
#define HAVE_ATA_POWER_OFF
#define CONFIG_LCD LCD_IPODNANO #define CONFIG_LCD LCD_IPODNANO
/* Offset ( in the firmware file's header ) to the file length */ /* Offset ( in the firmware file's header ) to the file length */