src/commonlib/storage: Fix typos
Change-Id: Ie210191b79e94d3918ea95d40aeba40f33eb1b2f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38269 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -436,7 +436,7 @@ int mmc_update_capacity(struct storage_media *media)
|
|||||||
if ((capacity >> 20) > 2 * 1024)
|
if ((capacity >> 20) > 2 * 1024)
|
||||||
media->capacity[MMC_PARTITION_USER] = capacity;
|
media->capacity[MMC_PARTITION_USER] = capacity;
|
||||||
|
|
||||||
/* Determine the boot parition sizes */
|
/* Determine the boot partition sizes */
|
||||||
hc_erase_size = ext_csd[224] * 512 * KiB;
|
hc_erase_size = ext_csd[224] * 512 * KiB;
|
||||||
capacity = ext_csd[EXT_CSD_BOOT_SIZE_MULT] * 128 * KiB;
|
capacity = ext_csd[EXT_CSD_BOOT_SIZE_MULT] * 128 * KiB;
|
||||||
media->capacity[MMC_PARTITION_BOOT_1] = capacity;
|
media->capacity[MMC_PARTITION_BOOT_1] = capacity;
|
||||||
|
@ -199,7 +199,7 @@ int sd_mmc_enter_standby(struct storage_media *media)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* For MMC cards, set the Relative Address.
|
* For MMC cards, set the Relative Address.
|
||||||
* For SD cards, get the Relatvie Address.
|
* For SD cards, get the Relative Address.
|
||||||
* This also puts the cards into Standby State
|
* This also puts the cards into Standby State
|
||||||
*/
|
*/
|
||||||
cmd.cmdidx = SD_CMD_SEND_RELATIVE_ADDR;
|
cmd.cmdidx = SD_CMD_SEND_RELATIVE_ADDR;
|
||||||
|
@ -146,7 +146,7 @@ static int sdhci_send_command_bounced(struct sd_mmc_ctrlr *ctrlr,
|
|||||||
sdhci_writel(sdhci_ctrlr, SDHCI_INT_ALL_MASK, SDHCI_INT_STATUS);
|
sdhci_writel(sdhci_ctrlr, SDHCI_INT_ALL_MASK, SDHCI_INT_STATUS);
|
||||||
mask = SDHCI_CMD_INHIBIT | SDHCI_DATA_INHIBIT;
|
mask = SDHCI_CMD_INHIBIT | SDHCI_DATA_INHIBIT;
|
||||||
|
|
||||||
/* We shouldn't wait for data inihibit for stop commands, even
|
/* We shouldn't wait for data inhibit for stop commands, even
|
||||||
though they might use busy signaling */
|
though they might use busy signaling */
|
||||||
if (cmd->flags & CMD_FLAG_IGNORE_INHIBIT)
|
if (cmd->flags & CMD_FLAG_IGNORE_INHIBIT)
|
||||||
mask &= ~SDHCI_DATA_INHIBIT;
|
mask &= ~SDHCI_DATA_INHIBIT;
|
||||||
|
Reference in New Issue
Block a user