This patch enable to set the emmc_dev number because it's
varied by boot order. If the board is booted from sdcard,
the emmc device number will be 1 not default 0. Thus, I
set a "emmc_dev" environment to retrieve the number anywhere.
Change-Id: I9324f855151bcfee85e351749ae91cab51ec4a22
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
return err;
}
+ if (OmPin == BOOT_MMCSD)
+ setenv("emmc_dev", "1");
+
if (OmPin == BOOT_EMMC_4_4 || OmPin == BOOT_EMMC) {
#ifdef USE_MMC0
set_mmc_clk(PERIPH_ID_SDMMC0, 0);
}
switch (OmPin) {
+ case BOOT_MMCSD:
+ setenv("emmc_dev", "1");
+ break;
case BOOT_EMMC_4_4:
#if defined(USE_MMC0)
set_mmc_clk(PERIPH_ID_SDMMC0, 1);