IDE: fix bug in reset sequence
PATCH 1/1 IDE: fix bug in reset sequence
According to the ata (ata5) specification the RESET- signal shall be asserted for at least 25 us. Without this patch, the RESET- signal is asserted on some boards for only < 1 us (e. g. on the TQM5200). This patch adds a general delay of 25 us to the RESET- signal.
Without this patch a Platinum 4 GiB CF card is not recognised properly on boards with a TQM5200 (STK52xx, TB5200).
---
common/cmd_ide.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
common/cmd_ide.c +3 -0
@@ -1529,6 +1529,9 @@ static void ide_reset (void)ide_set_reset (1 );/* assert reset */ +/* the reset signal shall be asserted for et least 25 us */ +udelay (25 ); +WATCHDOG_RESET ();#ifdef CFG_PB_12V_ENABLE
PATCH 1/1 IDE: fix bug in reset sequence
Quoted 21 lines · Martin Krause
According to the ata (ata5) specification the RESET- signal shall be asserted for at least 25 us. Without this patch, the RESET- signal is asserted on some boards for only < 1 us (e. g. on the TQM5200). This patch adds a general delay of 25 us to the RESET- signal.
Without this patch a Platinum 4 GiB CF card is not recognised properly on boards with a TQM5200 (STK52xx, TB5200).
Signed-off-by Martin Krause <[email protected]>---
common/cmd_ide.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)common/cmd_ide.c +0
-0
common/cmd_ide.c static void ide_reset (void) · line 1532
Quoted 4 lines
common/cmd_ide.c +1
-0@@ -1529,6 +1529,9 @@ static void ide_reset (void)ide_set_reset (1 );/* assert reset */ +/* the reset signal shall be asserted for et least 25 us */
^
for at least ;-)
btw this need to be tested with other CF ex <>8GB and some hard drive
Best Regards,
J.
Wolfgang Denk
AppliedPATCH 1/1 IDE: fix bug in reset sequence
In reply to Martin KrauseQuoted 10 lines · In message <[email protected]> you wrote:
According to the ata (ata5) specification the RESET- signal shall be asserted for at least 25 us. Without this patch, the RESET- signal is asserted on some boards for only < 1 us (e. g. on the TQM5200). This patch adds a general delay of 25 us to the RESET- signal.
Without this patch a Platinum 4 GiB CF card is not recognised properly on boards with a TQM5200 (STK52xx, TB5200).
Signed-off-by Martin Krause <[email protected]>
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You can fool some of the people all of the time, and You can fool all of the people some of the time, but You can't fool mom.