-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Got so wrapped up in making SDHC work I didn't test the last one against
normal SD 2.0 card at the end -- this post-reset delay is enough for
both kinds of card I have, 4GB SDHC and 512MB SD 2.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHs1QeOjLpvpq7dMoRAjlaAJ0RmEF+u42viKbYjSn2k81JscQRLQCfc/X0
cgSSUYuq6FCSy8MdZ82ofeM=
=GIy4
-----END PGP SIGNATURE-----
fix-uboot-mmc-post-reset-delay.patch

From: warmcat <[EMAIL PROTECTED]>

From: Andy Green <[EMAIL PROTECTED]>

Whoops, failed to check all my cards against the post-reset delay,
it only worked on the 4GB SDHC one.  This increases it so the
512MB Sandisk 2.0 one is recognized too.

Signed-off-by: Andy Green <[EMAIL PROTECTED]>
---

 board/neo1973/gta02/glamo-mmc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/board/neo1973/gta02/glamo-mmc.c b/board/neo1973/gta02/glamo-mmc.c
index 0413242..33dc6bb 100644
--- a/board/neo1973/gta02/glamo-mmc.c
+++ b/board/neo1973/gta02/glamo-mmc.c
@@ -556,7 +556,7 @@ static void print_sd_cid(const struct sd_cid *cid)
 int mmc_init(int verbose)
 {
  	int retries = 14, rc = -ENODEV;
-	int resp, count_reset = 0;
+	int resp;
 	u8 response[16];
 	mmc_cid_t *mmc_cid = (mmc_cid_t *)response;
 	struct sd_cid *sd_cid = (struct sd_cid *)response;
@@ -611,6 +611,8 @@ int mmc_init(int verbose)
 		       (u16 *)&response[0]);
 
 	udelay(100000);
+	udelay(100000);
+	udelay(100000);
 
 	/* SDHC card? */
 

Reply via email to