diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-12-17 20:15:12 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-12-17 20:15:12 +0000 |
commit | 1fe97ec54e5f18d853b58e4da2ffb46f7cb59721 (patch) | |
tree | 30231d1337ca9caa058604863ab16366b74f05b4 /firmware | |
parent | 3cefa27e10ec2b662cc9eb13cba3aa34f293660e (diff) |
Improved timing in soft_reset. This hopefully cures spontaneous Red Led freezes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4161 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 5a08db4f33..0ed0877034 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -632,10 +632,10 @@ static int perform_soft_reset(void) ATA_SELECT = SELECT_LBA | ata_device; ATA_CONTROL = CONTROL_nIEN|CONTROL_SRST; - sleep(HZ/20000); /* >= 5us */ + sleep(1); /* >= 5us */ ATA_CONTROL = CONTROL_nIEN; - sleep(HZ/400); /* >2ms */ + sleep(1); /* >2ms */ /* This little sucker can take up to 30 seconds */ retry_count = 8; |