summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2017-09-21 17:30:01 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2018-01-12 12:11:04 +0300
commit318a7a576bc49aa8b4207e694d3fbd48c663d6ac (patch)
treeb693aae78287dc6ad3eb069d6a4308266187bff1 /drivers/mmc/mmc.c
parentaff5d3c83fb8c294b3c4b97c5b6386306b47f1a0 (diff)
downloadu-boot-318a7a576bc49aa8b4207e694d3fbd48c663d6ac.tar.xz
mmc: Add a new callback function to perform the 74 clocks cycle sequence
Add a new callback function *send_init_stream* which start a sequence of at least 74 clock cycles. The mmc core uses *mmc_send_init_stream* in order to invoke the callback function. This will be used during power cycle where the specification requires such a sequence after power up. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r--drivers/mmc/mmc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 24b5e16a3b..1875b31ad1 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1198,6 +1198,10 @@ static inline int bus_width(uint cap)
}
#if !CONFIG_IS_ENABLED(DM_MMC)
+static void mmc_send_init_stream(struct mmc *mmc)
+{
+}
+
static int mmc_set_ios(struct mmc *mmc)
{
int ret = 0;
@@ -1983,6 +1987,8 @@ int mmc_start_init(struct mmc *mmc)
mmc_set_bus_width(mmc, 1);
mmc_set_clock(mmc, 1);
+ mmc_send_init_stream(mmc);
+
/* Reset the Card */
err = mmc_go_idle(mmc);