From 40938fdb58742f5a5bd31fab36592c7cc449ae79 Mon Sep 17 00:00:00 2001 From: Kostas Missos Date: Sun, 6 May 2018 20:59:46 +0300 Subject: [PATCH] Add partial support for unknown CSD Structure V3 --- ipl/sdmmc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipl/sdmmc.c b/ipl/sdmmc.c index 8f0f96d..4039fc3 100755 --- a/ipl/sdmmc.c +++ b/ipl/sdmmc.c @@ -759,6 +759,9 @@ int sdmmc_storage_init_sd(sdmmc_storage_t *storage, sdmmc_t *sdmmc, u32 id, u32 case 1: storage->sec_cnt = (1 + unstuff_bits(csd, 48, 22)) << 10; break; + case 2: + storage->sec_cnt = (1 + unstuff_bits(csd, 48, 22)) << 10; + break; default: DPRINTF("[sd] Unknown CSD structure %d\n", csd_struct); //TODO: I've encountered this with one of my SD cards, but