summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/sysrom/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/sysrom/sdcard.c b/data/sysrom/sdcard.c
index 26738e4..a0ead30 100644
--- a/data/sysrom/sdcard.c
+++ b/data/sysrom/sdcard.c
@@ -512,7 +512,7 @@ static unsigned long sdcard_compute_size(struct sdcard_info *sdi)
lbasize = (c_size + 1) << (c_size_mult + read_bl_len + 2 - 9);
break;
case 2: /* SDHC/SDXC/eMMC card */
- c_size = ((sdi->csd.raw[1] & 0x1f) << 16) +
+ c_size = ((sdi->csd.raw[1] & 0x3f) << 16) +
(sdi->csd.raw[2] >> 16);
lbasize = c_size << 10;