summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2011-12-22 08:45:09 +0000
committerTomasz Moń <desowin@gmail.com>2011-12-22 08:45:09 +0000
commitf9a135a81f624f49748ddc2b44d99a6e1eda85db (patch)
tree3818c92214b2efdf5bb62ac29e12b1cd810fbe9f /firmware/target/arm
parentb0e7869f00385a25dcaefdc390ee582817d29ea2 (diff)
downloadrockbox-f9a135a81f624f49748ddc2b44d99a6e1eda85db.tar.gz
rockbox-f9a135a81f624f49748ddc2b44d99a6e1eda85db.zip
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
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/tms320dm320/sdmmc-dm320.c4
1 files 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 @@
68#define EC_CRC_ERROR 15 68#define EC_CRC_ERROR 15
69#define NUM_EC 16 69#define NUM_EC 16
70 70
71#define MIN_YIELD_PERIOD 1000 71#define MIN_YIELD_PERIOD 5
72#define UNALIGNED_NUM_SECTORS 10 72#define UNALIGNED_NUM_SECTORS 10
73#define MAX_TRANSFER_ERRORS 10 73#define MAX_TRANSFER_ERRORS 10
74 74
@@ -899,7 +899,7 @@ int sd_init(void)
899 899
900 /* mmc module clock: 75 Mhz (AHB) / 2 = ~37.5 Mhz 900 /* mmc module clock: 75 Mhz (AHB) / 2 = ~37.5 Mhz
901 * (Frequencies above are taken from Sansa Connect's OF source code) */ 901 * (Frequencies above are taken from Sansa Connect's OF source code) */
902 IO_CLK_DIV3 = (IO_CLK_DIV3 & 0xFF00) | 0x01; 902 IO_CLK_DIV3 = (IO_CLK_DIV3 & 0xFF00) | 0x02; /* OF uses 1 */
903 903
904 bitset16(&IO_CLK_MOD2, CLK_MOD2_MMC); 904 bitset16(&IO_CLK_MOD2, CLK_MOD2_MMC);
905 905