mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-20 03:24:25 +00:00
drivers: mmc: Fix R3 response type definition
The R3 response type definition should be (1 << 0). Make sure we define the expected response code in the appropriate fashion. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
This commit is contained in:
parent
2a82a9c95f
commit
94522ff7f6
1 changed files with 2 additions and 2 deletions
|
@ -333,7 +333,7 @@ static int sd_send_op_cond(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ACMD41: SD_SEND_OP_COND */
|
/* ACMD41: SD_SEND_OP_COND */
|
||||||
ret = mmc_send_cmd(MMC_ACMD(41), OCR_HCS, MMC_RESPONSE_R(3),
|
ret = mmc_send_cmd(MMC_ACMD(41), OCR_HCS, MMC_RESPONSE_R3,
|
||||||
&resp_data[0]);
|
&resp_data[0]);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -384,7 +384,7 @@ static int mmc_send_op_cond(void)
|
||||||
for (n = 0; n < SEND_OP_COND_MAX_RETRIES; n++) {
|
for (n = 0; n < SEND_OP_COND_MAX_RETRIES; n++) {
|
||||||
ret = mmc_send_cmd(MMC_CMD(1), OCR_SECTOR_MODE |
|
ret = mmc_send_cmd(MMC_CMD(1), OCR_SECTOR_MODE |
|
||||||
OCR_VDD_MIN_2V7 | OCR_VDD_MIN_1V7,
|
OCR_VDD_MIN_2V7 | OCR_VDD_MIN_1V7,
|
||||||
MMC_RESPONSE_R(3), &resp_data[0]);
|
MMC_RESPONSE_R3, &resp_data[0]);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue