Sansa AMS: Use small write delay for all non-HS cards including the internal SD to prevent data corruption.

Making this delay apply to all non-HS SD cards seems to fix some data corruption issues that came up with the switch to 4-bit widebus.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24019 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jack Halpin 2009-12-16 06:32:22 +00:00
parent b283967ebd
commit 7d6ec7bb6f

View file

@ -777,7 +777,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL);
#if defined(HAVE_MULTIDRIVE) #if defined(HAVE_MULTIDRIVE)
/*Small delay for writes prevents data crc failures at lower freqs*/ /*Small delay for writes prevents data crc failures at lower freqs*/
if((drive == SD_SLOT_AS3525) && !hs_card) if(!hs_card)
{ {
int write_delay = 125; int write_delay = 125;
while(write_delay--); while(write_delay--);