Hello,

I try to get u-boot working with sdhc cards on gta01. I applied patch from Alex 
[1]
but it don't work for my sdhc card.
Digging s3c2410 documents, I get it working with a new patch (attached) to 
apply on
top Alex's patchs, against u-boot origin/stable.

If you wan't to test it, I published my version of u-boot here :
http://www.starox.org/pub/openmoko/u-boot/

A user already reports me that it won't work with his card, you're
warned ;)

-- 
Frédéric Leroy

[1] 
http://lists.openmoko.org/pipermail/openmoko-kernel/2008-December/007268.html
    
http://lists.openmoko.org/pipermail/openmoko-kernel/2008-December/007269.html
diff -r 27e0e0acc9b3 cpu/arm920t/s3c24x0/mmc.c
--- a/cpu/arm920t/s3c24x0/mmc.c	Sat Mar 14 22:42:47 2009 +0100
+++ b/cpu/arm920t/s3c24x0/mmc.c	Sat Mar 14 21:59:38 2009 +0000
@@ -135,6 +135,9 @@
 
 	debug("mmc_block_rd dst %lx src %lx len %d\n", (ulong)dst, src, len);
 
+	/* Set up time - ref S3C2410A page 440 (19-4) */
+	sdi->SDIDTIMER = 0xffff;
+
 	/* set block len */
 	resp = mmc_cmd(MMC_CMD_SET_BLOCKLEN, len, CMD_F_RESP);
 	sdi->SDIBSIZE = len;
@@ -186,6 +189,8 @@
 
 	if (!(sdi->SDIDSTA & S3C2410_SDIDSTA_XFERFINISH))
 		debug("mmc_block_read; transfer not finished!\n");
+
+	sdi->SDIDSTA = S3C2410_SDIDSTA_XFERFINISH;
 
 	return 0;
 }

Reply via email to