dslinux/linux-2.6.x/drivers/mmc scsd_s.S

amadeus dslinux_amadeus at user.in-berlin.de
Sun Sep 3 22:23:11 CEST 2006


Update of /cvsroot/dslinux/dslinux/linux-2.6.x/drivers/mmc
In directory antilope:/tmp/cvs-serv7530/linux-2.6.x/drivers/mmc

Modified Files:
	scsd_s.S 
Log Message:
Improve detection of Supercard SD

Index: scsd_s.S
===================================================================
RCS file: /cvsroot/dslinux/dslinux/linux-2.6.x/drivers/mmc/scsd_s.S,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- scsd_s.S	30 Aug 2006 12:05:26 -0000	1.6
+++ scsd_s.S	3 Sep 2006 20:23:09 -0000	1.7
@@ -27,6 +27,8 @@
 #define SC_SDL_DOWRITE	0x09440000
 	/* SC lite: write 0 before write command */
 
+#define REG_SCCF_LBA1	0x09060000	@ 1st byte of sector address (CF)
+
 /*****************************************************************************/
 
 	@ Test if the card is present.
@@ -45,8 +47,11 @@
 	strh	r0, [r3]
 	@ now switch to IO mode (save old value @SC_LOCK in R2)
 	sc_set_io
-	@ now read SC_SD_CMD (in IO)
+	@ store opposite of requested value in SC_SD_CMD (in IO)
 	ldr	r3, =SC_SD_CMD
+	mov	r0, #-1
+	strh	r0, [r3]
+	@ now read SC_SD_CMD (in IO)
 	ldrh	r0, [r3]
 	tst	r0, #0x300		@ both bits must be 0
 	moveq	r0, #1




More information about the dslinux-commit mailing list