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

@@ -1038,6 +1038,7 @@ DPRINTF("[SD] supports selected (U)HS mode\n");
u16 total_pwr_consumption = ((u16)buf[0] << 8) | buf[1];
DPRINTF("[SD] total max power: %d mW\n", total_pwr_consumption * 3600 / 1000);
storage->card_power_limit = total_pwr_consumption;
if (total_pwr_consumption <= 800)
{