[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    FlynDice: r22850 - trunk/firmware/target/arm/as3525
From:       mailer () svn ! rockbox ! org
Date:       2009-09-29 16:32:24
Message-ID: 200909291632.n8TGWOI0006336 () giant ! haxx ! se
[Download RAW message or body]

Date: 2009-09-29 18:32:24 +0200 (Tue, 29 Sep 2009)
New Revision: 22850

Log Message:
AMS Sansa:  Replace simple write delay with a smarter check on status of MCI FIFO.

Modified:
   trunk/firmware/target/arm/as3525/ata_sd_as3525.c

Modified: trunk/firmware/target/arm/as3525/ata_sd_as3525.c
===================================================================
--- trunk/firmware/target/arm/as3525/ata_sd_as3525.c	2009-09-29 01:34:11 UTC (rev 22849)
+++ trunk/firmware/target/arm/as3525/ata_sd_as3525.c	2009-09-29 16:32:24 UTC (rev 22850)
@@ -735,12 +735,8 @@
 
         wakeup_wait(&transfer_completion_signal, TIMEOUT_BLOCK);
 
-        /* Higher speed class cards need a write delay here for some reason */
-        if((drive == SD_SLOT_AS3525) && write)
-        {
-            int delay = 3500;
-            while(delay--)  asm volatile ("nop\n");
-        }
+        /*  Wait for FIFO to empty  */
+        while(MCI_STATUS(drive) & (MCI_TX_ACTIVE | MCI_RX_ACTIVE));
 
         if(!transfer_error[drive])
         {

_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic