aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorHein Tibosch <hein_tibosch@yahoo.es>2010-09-05 21:37:19 -0400
committerChris Ball <cjb@laptop.org>2010-10-23 09:11:15 -0400
commit88ae8b866488031b0e2fc05a27440fefec5e6927 (patch)
tree07fba0c9aab5c50230fcac22e74506622fa19c68 /include/linux/mmc
parent176d1ed426a2a73a87c62a8aa05f6d002353cd50 (diff)
mmc: Make ID freq configurable
In the latest releases of the mmc driver, the freq during initialization is set to a fixed 400 Khz. This was reportedly too fast for several users. As there doesn't seem to be an ideal frequency which-works-for-all, Pierre suggested to let the driver try several frequencies. This patch implements that idea. It will try mmc-initialization using several frequencies from an array 400, 300, 200 and 100. In case SDIO is broken, it'll still try to detect SDMEM, also at different freqs. Signed-off-by: Hein Tibosch <hein_tibosch@yahoo.es> Cc: Pierre Ossman <pierre@ossman.eu> Reviewed-by: Chris Ball <cjb@laptop.org> Tested-by: Chris Ball <cjb@laptop.org> Cc: Ben Nizette <bn@niasdigital.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Adrian Hunter <adrian.hunter@nokia.com> Cc: Matt Fleming <matt@console-pimps.org> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 2e0fe623df90..20be040649a9 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -123,6 +123,7 @@ struct mmc_host {
123 const struct mmc_host_ops *ops; 123 const struct mmc_host_ops *ops;
124 unsigned int f_min; 124 unsigned int f_min;
125 unsigned int f_max; 125 unsigned int f_max;
126 unsigned int f_init;
126 u32 ocr_avail; 127 u32 ocr_avail;
127 struct notifier_block pm_notify; 128 struct notifier_block pm_notify;
128 129