Skip to content

Commit

Permalink
ARM: 6530/1: mmci: partially revert clock divisor code
Browse files Browse the repository at this point in the history
I misread the datasheet as if bypass mode was not available at all
on the ux500's, I was wrong. It is there, the datasheet just
states that you should not have to use it.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Linus Walleij authored and Russell King committed Dec 19, 2010
1 parent b70a67f commit 991a86e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,7 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired)

if (desired) {
if (desired >= host->mclk) {
/*
* The ST clock divider does not like the bypass bit,
* even though it's available. Instead the datasheet
* recommends setting the divider to zero.
*/
if (!variant->st_clkdiv)
clk = MCI_CLK_BYPASS;
clk = MCI_CLK_BYPASS;
host->cclk = host->mclk;
} else if (variant->st_clkdiv) {
/*
Expand Down

0 comments on commit 991a86e

Please sign in to comment.