From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 3 Apr 2008 23:28:38 +0200 Subject: [U-Boot-Users] [PATCH] IDE: fix bug in reset sequence In-Reply-To: <20080403113721.28821.11173.stgit@tq-sewsrv-4.tq-net.de> References: <20080403113721.28821.11173.stgit@tq-sewsrv-4.tq-net.de> Message-ID: <20080403212838.GA10873@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 13:37 Thu 03 Apr , Martin Krause 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 > --- > > 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 */ ^ for at least ;-) btw this need to be tested with other CF ex <>8GB and some hard drive Best Regards, J.