[U-Boot] [PATCH 1/4] SD1.00 wide-bus fix

Paulraj, Sandeep s-paulraj at ti.com
Thu May 13 17:13:52 CEST 2010


Andy,

Can you be kind enough to review these MMC patches.

I believe there are 2 sets of patches.

Thanks,
Sandeep 


> Subject: [U-Boot] [PATCH 1/4] 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 at embwise.com>
> ---
>  drivers/mmc/mmc.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index cf4ea16..959d8ad 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -520,6 +520,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;
> @@ -537,9 +540,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;
> --
> 1.6.0.6
> 



More information about the U-Boot mailing list