Skip spindown and delay on flash targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14877 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2007-09-28 07:56:46 +00:00
parent 0a231de536
commit b452fb6dfe
2 changed files with 2 additions and 4 deletions

View file

@ -1087,10 +1087,6 @@ void ata_sleep(void)
{ {
} }
void ata_sleepnow(void)
{
}
void ata_spin(void) void ata_spin(void)
{ {
} }

View file

@ -109,8 +109,10 @@ void usb_enable(bool on)
if(button_status()==BUTTON_RIGHT) if(button_status()==BUTTON_RIGHT)
#endif /* defined(IRIVER_H10) || defined (IRIVER_H10_5GB) */ #endif /* defined(IRIVER_H10) || defined (IRIVER_H10_5GB) */
{ {
#ifndef HAVE_FLASH_STORAGE
ata_sleepnow(); /* Immediately spindown the disk. */ ata_sleepnow(); /* Immediately spindown the disk. */
sleep(HZ*2); sleep(HZ*2);
#endif
#ifdef IPOD_ARCH /* The following code is based on ipodlinux */ #ifdef IPOD_ARCH /* The following code is based on ipodlinux */
#if CONFIG_CPU == PP5020 #if CONFIG_CPU == PP5020