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>
This commit is contained in:
Sascha Hauer 2009-04-03 14:41:56 +02:00 коммит произвёл Pierre Ossman
Родитель 9fa7eb283c
Коммит c499b0672f
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -724,7 +724,9 @@ static int mxcmci_probe(struct platform_device *pdev)
goto out_clk_put; 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; mmc->f_max = clk_get_rate(host->clk) >> 1;
/* recommended in data sheet */ /* recommended in data sheet */