add firmware/driver/sd.c which contains common code between SD drivers
commit5b2a2666f862f3819833777fe0baf5598ac31304
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 1 Jul 2009 21:49:13 +0000 (1 21:49 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 1 Jul 2009 21:49:13 +0000 (1 21:49 +0000)
tree57e96460989d9cccc421486769befb5648601b8c
parentb2c2073167ab01d663991f274c32ef5c2b67fc26
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
apps/debug_menu.c
firmware/SOURCES
firmware/drivers/sd.c [new file with mode: 0644]
firmware/export/hotswap.h
firmware/export/sd.h
firmware/hotswap.c
firmware/target/arm/as3525/ata_sd_as3525.c
firmware/target/arm/ata-sd-pp.c
firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c