summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-09-14 20:33:24 +0000
committerJens Arnold <amiconn@rockbox.org>2008-09-14 20:33:24 +0000
commitb1a584a1b6fbc3d16d7dbbd8f2fac857a1332f60 (patch)
tree6e5e2a7d70563af7161804948dea2d004b2fc229 /firmware/target/arm
parentd4404d3de0a99b69720b25ba730af197ea7d6c0b (diff)
downloadrockbox-b1a584a1b6fbc3d16d7dbbd8f2fac857a1332f60.tar.gz
rockbox-b1a584a1b6fbc3d16d7dbbd8f2fac857a1332f60.zip
Simplify & fix the MMC driver. After more than 3 years I found that the MMC specs were a bit misleading, and the 'large' MMC which state a block size of 1024 or 2048 bytes and no partial read and/or partial write capability are happily accepting a block size of 512 bytes. So go KISS and remove all the variable/partial block handling code. This fixes the driver for the Transcend 4GB MMCplus, which doesn't cope when we actually set the 2048 byte block size it states. It also makes write operations involving small blocks faster and more reliable. * Note: The 4GB Transcend still doesn't work when plugged at boot, but works when hotplugged.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18515 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/ata-sd-pp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c
index ddefbf7fdb..fbbaf09b5d 100644
--- a/firmware/target/arm/ata-sd-pp.c
+++ b/firmware/target/arm/ata-sd-pp.c
@@ -1260,9 +1260,6 @@ tCardInfo *card_get_info_target(int card_no)
for(i=0; i<4; i++) card.cid[i] = card_info[card_no].cid[3-i];
card.numblocks = card_info[card_no].numblocks;
card.blocksize = card_info[card_no].block_size;
- card.size = card_info[card_no].capacity < 0xffffffff ?
- card_info[card_no].capacity : 0xffffffff;
- card.block_exp = card_info[card_no].block_exp;
temp = card_extract_bits(card.csd, 29, 3);
card.speed = mantissa[card_extract_bits(card.csd, 25, 4)]
* exponent[temp > 2 ? 7 : temp + 4];