bdk: emmc: add emmc_set_partition

Additionally, add SDMMC index info to errors.
This commit is contained in:
CTCaer
2022-12-19 04:53:50 +02:00
parent 227fe9b7ea
commit 6257d20db9
5 changed files with 15 additions and 13 deletions

View File

@@ -131,6 +131,8 @@ bool emmc_initialize(bool power_cycle)
return false;
}
int emmc_set_partition(u32 partition) { return sdmmc_storage_set_mmc_partition(&emmc_storage, partition); }
void emmc_gpt_parse(link_t *gpt)
{
gpt_t *gpt_buf = (gpt_t *)calloc(GPT_NUM_BLOCKS, EMMC_BLOCKSIZE);