diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-11-03 23:57:24 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-11-03 23:57:24 +0000 |
commit | 015f6286a8db3fb79d155cf33698ededf219d32e (patch) | |
tree | 2d6bce1fa42719e947ac8034012a8fe0e7627e20 /firmware/drivers | |
parent | 33acc662569ab01e0770b85a6b32c57ed340c351 (diff) | |
download | rockbox-015f6286a8db3fb79d155cf33698ededf219d32e.tar.gz rockbox-015f6286a8db3fb79d155cf33698ededf219d32e.zip |
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index f63b795a19..67aab8a9ba 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -949,6 +949,7 @@ static int ata_power_on(void) | |||
949 | int rc; | 949 | int rc; |
950 | 950 | ||
951 | ide_power_enable(true); | 951 | ide_power_enable(true); |
952 | sleep(HZ/50); /* allow voltage to build up */ | ||
952 | if( ata_hard_reset() ) | 953 | if( ata_hard_reset() ) |
953 | return -1; | 954 | return -1; |
954 | 955 | ||
@@ -1145,7 +1146,7 @@ int ata_init(void) | |||
1145 | if (!ide_powered()) /* somebody has switched it off */ | 1146 | if (!ide_powered()) /* somebody has switched it off */ |
1146 | { | 1147 | { |
1147 | ide_power_enable(true); | 1148 | ide_power_enable(true); |
1148 | sleep(HZ); /* allow voltage to build up */ | 1149 | sleep(HZ/50); /* allow voltage to build up */ |
1149 | } | 1150 | } |
1150 | 1151 | ||
1151 | /* first try, hard reset at cold start only */ | 1152 | /* first try, hard reset at cold start only */ |