diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c index 31a9f7d2b0..6e7f62a2e5 100644 --- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c | |||
@@ -1675,12 +1675,12 @@ tCardInfo* card_get_info_target(int card_no) | |||
1675 | card.csd[i] = ((unsigned long*)&mmcinfo.csd)[i]; | 1675 | card.csd[i] = ((unsigned long*)&mmcinfo.csd)[i]; |
1676 | for(i=0; i<4; i++) | 1676 | for(i=0; i<4; i++) |
1677 | card.cid[i] = ((unsigned long*)&mmcinfo.cid)[i]; | 1677 | card.cid[i] = ((unsigned long*)&mmcinfo.cid)[i]; |
1678 | temp = card_extract_bits(card.csd, 29, 3); | 1678 | temp = card_extract_bits(card.csd, 98, 3); |
1679 | card.speed = sd_mantissa[card_extract_bits(card.csd, 25, 4)] | 1679 | card.speed = sd_mantissa[card_extract_bits(card.csd, 102, 4)] |
1680 | * sd_exponent[temp > 2 ? 7 : temp + 4]; | 1680 | * sd_exponent[temp > 2 ? 7 : temp + 4]; |
1681 | card.nsac = 100 * card_extract_bits(card.csd, 16, 8); | 1681 | card.nsac = 100 * card_extract_bits(card.csd, 111, 8); |
1682 | temp = card_extract_bits(card.csd, 13, 3); | 1682 | temp = card_extract_bits(card.csd, 114, 3); |
1683 | card.taac = sd_mantissa[card_extract_bits(card.csd, 9, 4)] | 1683 | card.taac = sd_mantissa[card_extract_bits(card.csd, 118, 4)] |
1684 | * sd_exponent[temp] / 10; | 1684 | * sd_exponent[temp] / 10; |
1685 | card.numblocks = mmcinfo.block_num; | 1685 | card.numblocks = mmcinfo.block_num; |
1686 | card.blocksize = mmcinfo.block_len; | 1686 | card.blocksize = mmcinfo.block_len; |