Skip to content

Commit

Permalink
mxcmmc: decrease minimum frequency to make MMC cards work
Browse files Browse the repository at this point in the history
This is a temporary workaround until the MMC stack can be fixed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
  • Loading branch information
Sascha Hauer authored and Pierre Ossman committed Jun 3, 2009
1 parent 9fa7eb2 commit c499b06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/mmc/host/mxcmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ static int mxcmci_probe(struct platform_device *pdev)
goto out_clk_put;
}

mmc->f_min = clk_get_rate(host->clk) >> 7;
mmc->f_min = clk_get_rate(host->clk) >> 16;
if (mmc->f_min < 400000)
mmc->f_min = 400000;
mmc->f_max = clk_get_rate(host->clk) >> 1;

/* recommended in data sheet */
Expand Down

0 comments on commit c499b06

Please sign in to comment.