From: Minkyu Kang Date: Thu, 2 Dec 2010 03:05:08 +0000 (+0900) Subject: s5p: mmc: allow for eMMC 74 clock generation X-Git-Tag: v0.2~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f68b80a16fccdea1c1f13b5cbb51f696831cdab;p=kernel%2Fu-boot.git s5p: mmc: allow for eMMC 74 clock generation Signed-off-by: Minkyu Kang --- diff --git a/drivers/mmc/s5p_mmc.c b/drivers/mmc/s5p_mmc.c index 3ec28a4..4964325 100644 --- a/drivers/mmc/s5p_mmc.c +++ b/drivers/mmc/s5p_mmc.c @@ -420,9 +420,16 @@ static void mmc_set_ios(struct mmc *mmc) writel(val, &host->reg->control3); - mmc_change_clock(host, mmc->clock); + /* + * eMMC spec calls for the host to send 74 clocks to the card + * during initialization, right after voltage stabilization. + * create the clocks manually right here. + */ + if (mmc->clock) + udelay(74 * 1000000 / mmc->clock); + ctrl = readb(&host->reg->hostctl); /*