mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
SD1.00 wide-bus fix
Fixed a bug wherein SD version 1.0 cards were not configured for 4-bit mode Signed-off-by: Alagu Sankar <alagusankar@embwise.com>
This commit is contained in:
parent
b16aadf411
commit
b44c70837a
1 changed files with 3 additions and 3 deletions
|
@ -512,6 +512,9 @@ retry_scr:
|
|||
break;
|
||||
}
|
||||
|
||||
if (mmc->scr[0] & SD_DATA_4BIT)
|
||||
mmc->card_caps |= MMC_MODE_4BIT;
|
||||
|
||||
/* Version 1.0 doesn't support switching */
|
||||
if (mmc->version == SD_VERSION_1_0)
|
||||
return 0;
|
||||
|
@ -529,9 +532,6 @@ retry_scr:
|
|||
break;
|
||||
}
|
||||
|
||||
if (mmc->scr[0] & SD_DATA_4BIT)
|
||||
mmc->card_caps |= MMC_MODE_4BIT;
|
||||
|
||||
/* If high-speed isn't supported, we return */
|
||||
if (!(__be32_to_cpu(switch_status[3]) & SD_HIGHSPEED_SUPPORTED))
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue