[u-boot][master][PATCH 2/3] pico-imx7d: add baseboard SD card boot detect

Fabio Estevam festevam at gmail.com
Mon Dec 19 17:31:42 CET 2022


On Sun, Dec 18, 2022 at 9:53 AM <egyszeregy at freemail.hu> wrote:

> +       for (index = 0; index < CONFIG_SYS_FSL_USDHC_NUM; ++index) {
> +               ret = fsl_esdhc_initialize(bis, &usdhc_cfg[index]);
> +               if (ret)
> +                       return ret;

In patch 3/3, CONFIG_SPL_DM_MMC=y, so can't the driver do the MMC init
instead of doing this manually?

>  #define BOOT_TARGET_DEVICES(func) \
> +       func(MMC, mmc, 3) \

Shouldn't the index 2 instead?


More information about the U-Boot mailing list