From 39afa214bb13b9ca41149de88bbaf9a21eba960e Mon Sep 17 00:00:00 2001 From: Ulf Hansson Date: Wed, 2 Mar 2011 09:53:36 +0100 Subject: MMCI: Use CLK_BYPASS together with NEG_EDGE To make use of CLK_BYPASS bit in the MMCICLOCK register the NEG_EDGE bit must be set as well to get a correct clock signal. ST-Ericsson ID: 325385 Change-Id: I86c9ec67b49c24621372984e0eca5963c339a6b0 Signed-off-by: Ulf Hansson Signed-off-by: Stefan Nilsson XK Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17398 Reviewed-by: Sebastian RASMUSSEN Tested-by: Sebastian RASMUSSEN --- drivers/mmc/host/mmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 09ebfbc2534..68f15d8a7b3 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -146,7 +146,7 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired) if (desired) { if (desired >= host->mclk) { - clk = MCI_CLK_BYPASS; + clk = MCI_CLK_BYPASS | MCI_NEG_EDGE; host->cclk = host->mclk; } else if (variant->st_clkdiv) { clk = ((host->mclk + desired - 1) / desired) - 2; -- cgit v1.2.3