[U-Boot] [PATCH 1/4] mmc: fsl_esdhc: Add CMD11 support to switch to 1.8V

Marek Vasut marex at denx.de
Tue Feb 17 08:11:27 CET 2015


On Monday, February 16, 2015 at 10:38:00 PM, Otavio Salvador wrote:
> This adds support to switch to 1.8V in case CMD11 succeeds.
> 
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---

[...]

> @@ -413,6 +424,11 @@ out:
>  			while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTD))
>  				;
>  		}
> +
> +		/* If this was CMD11, then notify that power cycle is needed */
> +		if (cmd->cmdidx == SD_CMD_SWITCH_UHS18V)
> +			printf("CMD11 to switch to 1.8V mode failed."
> +				"Card requires power cycle\n");

Please avoid breaking strings, you cannot 'git grep' for them if they're broken.

>  	}
> 
>  	esdhc_write32(&regs->irqstat, -1);
[...]
Best regards,
Marek Vasut


More information about the U-Boot mailing list