bdk: emmc: add emmc_set_partition

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

No files matched your search

+2
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);