From f9a135a81f624f49748ddc2b44d99a6e1eda85db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mo=C5=84?= Date: Thu, 22 Dec 2011 08:45:09 +0000 Subject: [PATCH] Sansa Connect: Significantly decrease MIN_YIELD_PERIOD in sdmmc driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31400 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tms320dm320/sdmmc-dm320.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/tms320dm320/sdmmc-dm320.c b/firmware/target/arm/tms320dm320/sdmmc-dm320.c index d989330230..2a7e1739eb 100644 --- a/firmware/target/arm/tms320dm320/sdmmc-dm320.c +++ b/firmware/target/arm/tms320dm320/sdmmc-dm320.c @@ -68,7 +68,7 @@ #define EC_CRC_ERROR 15 #define NUM_EC 16 -#define MIN_YIELD_PERIOD 1000 +#define MIN_YIELD_PERIOD 5 #define UNALIGNED_NUM_SECTORS 10 #define MAX_TRANSFER_ERRORS 10 @@ -899,7 +899,7 @@ int sd_init(void) /* mmc module clock: 75 Mhz (AHB) / 2 = ~37.5 Mhz * (Frequencies above are taken from Sansa Connect's OF source code) */ - IO_CLK_DIV3 = (IO_CLK_DIV3 & 0xFF00) | 0x01; + IO_CLK_DIV3 = (IO_CLK_DIV3 & 0xFF00) | 0x02; /* OF uses 1 */ bitset16(&IO_CLK_MOD2, CLK_MOD2_MMC);