mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
mmc: omap_hsmmc: provide wait_dat0 even if UHS modes are not supported
This function can also be used for eMMC devices. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:
committed by
Peng Fan
parent
c5bda37589
commit
c2c22b9df3
@@ -430,7 +430,6 @@ static void omap_hsmmc_conf_bus_power(struct mmc *mmc, uint signal_voltage)
|
|||||||
writel(ac12, &mmc_base->ac12);
|
writel(ac12, &mmc_base->ac12);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
|
|
||||||
static int omap_hsmmc_wait_dat0(struct udevice *dev, int state, int timeout)
|
static int omap_hsmmc_wait_dat0(struct udevice *dev, int state, int timeout)
|
||||||
{
|
{
|
||||||
int ret = -ETIMEDOUT;
|
int ret = -ETIMEDOUT;
|
||||||
@@ -456,7 +455,6 @@ static int omap_hsmmc_wait_dat0(struct udevice *dev, int state, int timeout)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(MMC_IO_VOLTAGE)
|
#if CONFIG_IS_ENABLED(MMC_IO_VOLTAGE)
|
||||||
#if CONFIG_IS_ENABLED(DM_REGULATOR)
|
#if CONFIG_IS_ENABLED(DM_REGULATOR)
|
||||||
@@ -1513,9 +1511,7 @@ static const struct dm_mmc_ops omap_hsmmc_ops = {
|
|||||||
#ifdef MMC_SUPPORTS_TUNING
|
#ifdef MMC_SUPPORTS_TUNING
|
||||||
.execute_tuning = omap_hsmmc_execute_tuning,
|
.execute_tuning = omap_hsmmc_execute_tuning,
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
|
|
||||||
.wait_dat0 = omap_hsmmc_wait_dat0,
|
.wait_dat0 = omap_hsmmc_wait_dat0,
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
static const struct mmc_ops omap_hsmmc_ops = {
|
static const struct mmc_ops omap_hsmmc_ops = {
|
||||||
|
Reference in New Issue
Block a user