diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2017-02-24 10:15:20 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-03-17 08:27:08 (GMT) |
commit | e9685967bbcdbf9ca8bd5e313b747a02d0b0ca07 (patch) | |
tree | 9c29ccd5d0333ffaac065aa1aca67d907883a3e9 | |
parent | 0dd259a1b13554947d813ed315dc860cee67fb8e (diff) | |
download | u-boot-e9685967bbcdbf9ca8bd5e313b747a02d0b0ca07.tar.xz |
i.MX6UL: isiot: Switch the mmc env based on devno
Add board_mmc_get_env_dev
Switch the mmc env based on the mmc devno, instead of separately
defining a config item in include/configs using board_mmc_get_env_dev
- devno 0: sd/esd
- devno 1: mmc/emmc
Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
-rw-r--r-- | board/engicam/isiotmx6ul/isiotmx6ul.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/engicam/isiotmx6ul/isiotmx6ul.c b/board/engicam/isiotmx6ul/isiotmx6ul.c index b96e4ce..29a137d 100644 --- a/board/engicam/isiotmx6ul/isiotmx6ul.c +++ b/board/engicam/isiotmx6ul/isiotmx6ul.c @@ -105,6 +105,12 @@ static void setup_gpmi_nand(void) #endif /* CONFIG_NAND_MXS */ #ifdef CONFIG_ENV_IS_IN_MMC +int board_mmc_get_env_dev(int devno) +{ + /* dev 0 for SD/eSD, dev 1 for MMC/eMMC */ + return (devno == 0) ? 0 : 1; +} + static void mmc_late_init(void) { char cmd[32]; |