From: <rob...@us...> - 2004-12-10 12:23:45
|
Update of /cvsroot/gc-linux/linux/drivers/exi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17179/drivers/exi Modified Files: gcn-exi-lite-tmbinc-exi_c.c Log Message: Added the SD and MMC card driver (alpha) Modified gcn-exi-lite-tmbinc-exi_c.c to output 0xff's upon *reading* from the exi bus, instead of outputting semi-random data. This is a requirement to meet the SD spec, and should not influence other drivers using the exi framework Index: gcn-exi-lite-tmbinc-exi_c.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/exi/gcn-exi-lite-tmbinc-exi_c.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gcn-exi-lite-tmbinc-exi_c.c 19 Oct 2004 22:49:40 -0000 1.1 +++ gcn-exi-lite-tmbinc-exi_c.c 10 Dec 2004 12:23:34 -0000 1.2 @@ -28,6 +28,11 @@ volatile unsigned long *exi = (volatile unsigned long *)0xCC006800; if (mode == EXI_WRITE) exi[channel * 5 + 4] = *(unsigned long*)data; + else + /* even if we read, something is sent out. What should it be? + make it 0xffffffff. This makes sure the SD-card driver is happy */ + exi[channel * 5 + 4] = (unsigned long) 0xffffffff; + exi[channel * 5 + 3] = ((len-1)<<4)|(mode<<2)|1; if (mode == EXI_READ) { |