mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
mmc: if possible, poll the busy state using DAT0
Using the DAT0 line as a rdy/busy line is an alternative to reading the status register of the card. It especially useful in situation where the bus is not in a good shape, like when modes are switched. This is also how the linux driver behaves. Note of warning: As per the specification, while polling on DAT0 the CLK must not turned off: "[...] Without a clock edge the Device (unless previously disconnected by a deselect command (CMD7)) will force the DAT0 line down, forever. [...]" Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:
committed by
Peng Fan
parent
863d10044a
commit
cd0b80ec9c
@@ -47,7 +47,6 @@ int mmc_set_ios(struct mmc *mmc)
|
||||
return dm_mmc_set_ios(mmc->dev);
|
||||
}
|
||||
|
||||
#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
|
||||
int dm_mmc_wait_dat0(struct udevice *dev, int state, int timeout)
|
||||
{
|
||||
struct dm_mmc_ops *ops = mmc_get_ops(dev);
|
||||
@@ -61,7 +60,6 @@ int mmc_wait_dat0(struct mmc *mmc, int state, int timeout)
|
||||
{
|
||||
return dm_mmc_wait_dat0(mmc->dev, state, timeout);
|
||||
}
|
||||
#endif
|
||||
|
||||
int dm_mmc_get_wp(struct udevice *dev)
|
||||
{
|
||||
|
Reference in New Issue
Block a user