diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-04-03 08:41:56 -0400 |
---|---|---|
committer | Pierre Ossman <pierre@ossman.eu> | 2009-06-03 15:40:04 -0400 |
commit | c499b0672f8df9379764965c5ec124751699d7c4 (patch) | |
tree | 61266c8e4b4ca45ef3f2a760f43ff797c3fcd45a /drivers/mmc/host/mxcmmc.c | |
parent | 9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3 (diff) |
mxcmmc: decrease minimum frequency to make MMC cards work
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>
Diffstat (limited to 'drivers/mmc/host/mxcmmc.c')
-rw-r--r-- | drivers/mmc/host/mxcmmc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index b4a615c55f28..5950102113f4 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c | |||
@@ -724,7 +724,9 @@ static int mxcmci_probe(struct platform_device *pdev) | |||
724 | goto out_clk_put; | 724 | goto out_clk_put; |
725 | } | 725 | } |
726 | 726 | ||
727 | mmc->f_min = clk_get_rate(host->clk) >> 7; | 727 | mmc->f_min = clk_get_rate(host->clk) >> 16; |
728 | if (mmc->f_min < 400000) | ||
729 | mmc->f_min = 400000; | ||
728 | mmc->f_max = clk_get_rate(host->clk) >> 1; | 730 | mmc->f_max = clk_get_rate(host->clk) >> 1; |
729 | 731 | ||
730 | /* recommended in data sheet */ | 732 | /* recommended in data sheet */ |