[U-Boot] [PATCH 09/22] mmc: refactor SD startup to make it easier to support new modes

Simon Glass sjg at chromium.org
Mon May 15 03:28:07 UTC 2017


On 12 May 2017 at 12:16, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> The SDcard startup process currently handles only 2 modes. To make it
> easier to add support for more modes, let's make the process more generic
> and use a list of the modes to try.
> The major functional change is that when a mode fails we try the next one.
> Not all modes are tried, only those supported by the card and the host.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
> ---
>  drivers/mmc/mmc.c | 180 ++++++++++++++++++++++++++++++++++++++----------------
>  include/mmc.h     |   1 +
>  2 files changed, 128 insertions(+), 53 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Will you be using that foreach macro multiple times?


More information about the U-Boot mailing list