mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
engicam: imx6q: Return mmc dev 0 for icore
icorem6 has sd on usdhci1 which is devno 0 so return proper devno from board_mmc_get_env_dev for icorem6 and icorem_6rqs Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:

committed by
Stefano Babic

parent
52aaddd6f4
commit
b596df4567
@ -193,6 +193,7 @@ void setup_display(void)
|
|||||||
#ifdef CONFIG_ENV_IS_IN_MMC
|
#ifdef CONFIG_ENV_IS_IN_MMC
|
||||||
int board_mmc_get_env_dev(int devno)
|
int board_mmc_get_env_dev(int devno)
|
||||||
{
|
{
|
||||||
return devno - 1;
|
/* i.CoreM6 RQS has USDHC3 for SD and USDHC4 for eMMC */
|
||||||
|
return (devno == 0) ? 0: (devno - 1);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user