bdk: sdmmc: parse bkops info

This commit is contained in:
CTCaer
2026-03-19 15:15:40 +02:00
parent 04c4cfdd34
commit 1ad2233db5
2 changed files with 4 additions and 0 deletions

View File

@@ -526,6 +526,8 @@ static void _mmc_storage_parse_ext_csd(sdmmc_storage_t *storage)
storage->ext_csd.dev_version = *(u16 *)&ext_csd[EXT_CSD_DEVICE_VERSION];
storage->ext_csd.boot_mult = ext_csd[EXT_CSD_BOOT_MULT];
storage->ext_csd.rpmb_mult = ext_csd[EXT_CSD_RPMB_MULT];
storage->ext_csd.bkops = ext_csd[EXT_CSD_BKOPS_SUPPORT];
storage->ext_csd.bkops_en = ext_csd[EXT_CSD_BKOPS_EN];
storage->ext_csd.pre_eol_info = ext_csd[EXT_CSD_PRE_EOL_INFO];
storage->ext_csd.dev_life_est_a = ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A];

View File

@@ -143,6 +143,8 @@ typedef struct _mmc_csd
typedef struct _mmc_ext_csd
{
u8 bkops; /* background support bit */
u8 bkops_en; /* manual bkops enable bit */
u8 rev;
u8 ext_struct; /* 194 */
u8 card_type; /* 196 */