[U-Boot] [PATCH v2 3/3] mmc: at91: use max timeout value. It will avoid some situation that timeout happened.

Josh Wu josh.wu at atmel.com
Fri Sep 14 10:22:06 CEST 2012


Signed-off-by: Josh Wu <josh.wu at atmel.com>
---
since v1:
  seperate it as one patch from v1.

 drivers/mmc/gen_atmel_mci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c
index 9f06304..67b2dbe 100644
--- a/drivers/mmc/gen_atmel_mci.c
+++ b/drivers/mmc/gen_atmel_mci.c
@@ -321,8 +321,8 @@ static int mci_init(struct mmc *mmc)
 	writel(MMCI_BIT(MCIEN), &mci->cr);	/* enable mci */
 	writel(MMCI_BF(SCDSEL, MCI_BUS), &mci->sdcr);	/* select port */
 
-	/* Initial Time-outs */
-	writel(0x5f, &mci->dtor);
+	/* This delay can be optimized, but stick with max value */
+	writel(0x7f, &mci->dtor);
 	/* Disable Interrupts */
 	writel(~0UL, &mci->idr);
 
-- 
1.7.9.5



More information about the U-Boot mailing list