diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-07-01 21:49:13 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-07-01 21:49:13 +0000 |
commit | c0eb9aeb9e89ae33a9f084167147d8eacb9c7c60 (patch) | |
tree | 57e96460989d9cccc421486769befb5648601b8c /firmware/hotswap.c | |
parent | 93f6e3df246ff50c24524c9d329f27a06e1845db (diff) | |
download | rockbox-c0eb9aeb9e89ae33a9f084167147d8eacb9c7c60.tar.gz rockbox-c0eb9aeb9e89ae33a9f084167147d8eacb9c7c60.zip |
add firmware/driver/sd.c which contains common code between SD drivers
ingenic SD driver needs more cleanup so it still doesn't use the common code
correct a comment in hotswap.c: card_extract_bits assume most significant word of register first (so, use this order)
fix debug menu which used MMC specific commands / bits positions in csd/cid
move the default block size of 512 into sd.h
move the mantissa & exponent table into a single file (sd.c) to reduce binsize. we don't need to export it anymore anyway
TODO : ingenic cleanup (will happen soon so building sd.c is not conditional)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21601 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/hotswap.c')
-rw-r--r-- | firmware/hotswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/hotswap.c b/firmware/hotswap.c index ec298f7243..79595e4591 100644 --- a/firmware/hotswap.c +++ b/firmware/hotswap.c | |||
@@ -36,7 +36,7 @@ unsigned long card_extract_bits( | |||
36 | unsigned int long_index, bit_index; | 36 | unsigned int long_index, bit_index; |
37 | unsigned long result; | 37 | unsigned long result; |
38 | 38 | ||
39 | /* we assume words of CSD/CID are stored least significant word first */ | 39 | /* we assume words of CSD/CID are stored most significant word first */ |
40 | start = 127 - start; | 40 | start = 127 - start; |
41 | 41 | ||
42 | long_index = start / 32; | 42 | long_index = start / 32; |