diff options
author | Martin Krause <martin.krause@tqs.de> | 2008-04-03 13:37:56 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-17 14:26:48 -0700 |
commit | e175eacc87c3a9e4dad0799fee0e95732520afc7 (patch) | |
tree | 20c07e83a61de971748e0cb29c91b3a77fbdd282 /common | |
parent | 813bea96a960916c72b4a3a7df840151529c26ce (diff) | |
download | u-boot-imx-e175eacc87c3a9e4dad0799fee0e95732520afc7.zip u-boot-imx-e175eacc87c3a9e4dad0799fee0e95732520afc7.tar.gz u-boot-imx-e175eacc87c3a9e4dad0799fee0e95732520afc7.tar.bz2 |
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).
Signed-off-by: Martin Krause <martin.krause@tqs.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_ide.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 8ace970..f9cd422 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -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 |