From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SJru5-0001uM-2V for barebox@lists.infradead.org; Mon, 16 Apr 2012 19:48:01 +0000 From: Robert Jarzmik Date: Mon, 16 Apr 2012 21:47:18 +0200 Message-Id: <1334605638-23095-7-git-send-email-robert.jarzmik@free.fr> In-Reply-To: <1334605638-23095-1-git-send-email-robert.jarzmik@free.fr> References: <1334605638-23095-1-git-send-email-robert.jarzmik@free.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 6/6] mci: pxamci poweron ramp delay To: barebox@lists.infradead.org As per MMC spec, once power has been applied to an SD card, the card can take as much as 250ms to complete its power-up cycle, and become responsive to CMD0. When this delay was not in place, activating the SD card in the env init failed sometimes. With it, no more failure are observed. Signed-off-by: Robert Jarzmik --- drivers/mci/pxamci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mci/pxamci.c b/drivers/mci/pxamci.c index 9665196..027fa7b 100644 --- a/drivers/mci/pxamci.c +++ b/drivers/mci/pxamci.c @@ -42,6 +42,7 @@ static int pxamci_set_power(struct pxamci_host *host, int on) !!on ^ host->pdata->gpio_power_invert); else if (host->pdata && host->pdata->setpower) host->pdata->setpower(&host->mci, on); + mdelay(250); return 0; } -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox