summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/bootm.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 6a3e5d50c6..7ce9420fe0 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -345,20 +345,16 @@ static int get_fdto_totalsize(u32 *tz)
#endif
#if defined(CONFIG_ODROID_COMMON)
-extern int get_boot_device(void);
static int bootm_add_ignore_mpt_to_fdt(void *fdth)
{
char *pathp = NULL;
int nodeoffset;
int ret;
- switch (get_boot_device()) {
- case 1: // emmc boot
- pathp = "/sd/sd";
- break;
- case 4: //sd boot
- pathp = "/emmc/emmc";
- break;
+ if (simple_strtol(getenv("mmc_dev"), NULL, 10) == 0) { // emmc boot
+ pathp = "/sd/sd";
+ } else { // sd boot
+ pathp = "/emmc/emmc";
}
nodeoffset = fdt_path_offset (fdth, pathp);