sdmmc: Add protected area info (Content Protection)

This commit is contained in:
CTCaer
2020-07-17 17:01:40 +03:00
parent f559017aeb
commit 3c2d86ef7b
3 changed files with 8 additions and 3 deletions

View File

@@ -1030,6 +1030,8 @@ static void _sd_storage_parse_ssr(sdmmc_storage_t *storage)
raw_ssr2[0] = *(u32 *)&storage->raw_ssr[16];
storage->ssr.bus_width = (unstuff_bits(raw_ssr1, 510 - 384, 2) & SD_BUS_WIDTH_4) ? 4 : 1;
storage->ssr.protected_size = unstuff_bits(raw_ssr1, 448 - 384, 32);
switch(unstuff_bits(raw_ssr1, 440 - 384, 8))
{
case 0: