mmc: omap_hsmmc: implement send_init_stream callback

This callback is used to send the 74 clock cycles after power up.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Mathieu Othacehe
2025-04-10 11:00:21 +02:00
committed by Peng Fan
parent d770e325e9
commit 991c9530fc

View File

@@ -780,6 +780,14 @@ tuning_error:
return ret; return ret;
} }
#endif #endif
static void omap_hsmmc_send_init_stream(struct udevice *dev)
{
struct omap_hsmmc_data *priv = dev_get_priv(dev);
struct hsmmc *mmc_base = priv->base_addr;
mmc_init_stream(mmc_base);
}
#endif #endif
static void mmc_enable_irq(struct mmc *mmc, struct mmc_cmd *cmd) static void mmc_enable_irq(struct mmc *mmc, struct mmc_cmd *cmd)
@@ -1517,6 +1525,7 @@ static const struct dm_mmc_ops omap_hsmmc_ops = {
#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) #if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
.execute_tuning = omap_hsmmc_execute_tuning, .execute_tuning = omap_hsmmc_execute_tuning,
#endif #endif
.send_init_stream = omap_hsmmc_send_init_stream,
.wait_dat0 = omap_hsmmc_wait_dat0, .wait_dat0 = omap_hsmmc_wait_dat0,
}; };
#else #else