i2S6ULY2: add function whether the SOM has eMMC flash
This commit is contained in:
@ -449,6 +449,15 @@ int board_mmc_getcd(struct mmc *mmc)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int board_has_emmc(void)
|
||||
{
|
||||
#if defined(CONFIG_SYS_BOOT_EMMC)
|
||||
return 1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int check_mmc_autodetect(void)
|
||||
{
|
||||
char *autodetect_str = getenv("mmcautodetect");
|
||||
@ -469,12 +478,10 @@ void board_late_mmc_env_init(void)
|
||||
|
||||
if (!check_mmc_autodetect())
|
||||
return;
|
||||
#if 0
|
||||
setenv_ulong("mmcdev", dev_no);
|
||||
|
||||
sprintf(cmd, "mmc dev %d", dev_no);
|
||||
run_command(cmd, 0);
|
||||
#endif
|
||||
}
|
||||
int board_mmc_init(bd_t *bis)
|
||||
{
|
||||
@ -649,7 +656,7 @@ static void setup_iomux_fec(int fec_id)
|
||||
|
||||
/* Reset the PHY */
|
||||
gpio_direction_output(IMX_GPIO_NR(5, 6) , 0);
|
||||
udelay(500);
|
||||
udelay(100);
|
||||
gpio_direction_output(IMX_GPIO_NR(5, 6) , 1);
|
||||
}else
|
||||
imx_iomux_v3_setup_multiple_pads(fec2_pads,
|
||||
|
||||
Reference in New Issue
Block a user