forked from len0rd/rockbox
Finally: HDD power control for all PP502x iPods (4th gen Grayscale, Color, Minis, Video). * Wait a short time after powering on the HDD on all disk based targets, as that seems like a good idea. Shorten the excessive wait on initial power on.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15444 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
33acc66256
commit
015f6286a8
8 changed files with 39 additions and 10 deletions
|
|
@ -949,6 +949,7 @@ static int ata_power_on(void)
|
|||
int rc;
|
||||
|
||||
ide_power_enable(true);
|
||||
sleep(HZ/50); /* allow voltage to build up */
|
||||
if( ata_hard_reset() )
|
||||
return -1;
|
||||
|
||||
|
|
@ -1145,7 +1146,7 @@ int ata_init(void)
|
|||
if (!ide_powered()) /* somebody has switched it off */
|
||||
{
|
||||
ide_power_enable(true);
|
||||
sleep(HZ); /* allow voltage to build up */
|
||||
sleep(HZ/50); /* allow voltage to build up */
|
||||
}
|
||||
|
||||
/* first try, hard reset at cold start only */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue