aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.h
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-08-10 21:01:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-11 11:59:03 -0400
commitccc92c23240cdf952ef7cc39ba563910dcbc9cbe (patch)
treed656aad9e86fff59c1a5cbece4a5ccb019c35011 /drivers/mmc/host/sdhci.h
parent4c2ef25fe0b847d2ae818f74758ddb0be1c27d8e (diff)
mmc: make sdhci work with ricoh mmc controller
The current way of disabling it is not well tested by vendor and has all kinds of bugs that show up on resume from ram/disk. A very good example is a dead SDHCI controller. Old way of disabling is still supported by continuing to use CONFIG_MMC_RICOH_MMC. Based on 'http://list.drzeus.cx/pipermail/sdhci-devel/2007-December/002085.html' Therefore most of the credit for this goes to Andrew de Quincey Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Cc: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Philip Langdale <philipl@overt.org> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r--drivers/mmc/host/sdhci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index c8468134adc9..b1839a315b86 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -240,6 +240,8 @@ struct sdhci_host {
240#define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25) 240#define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN (1<<25)
241/* Controller cannot support End Attribute in NOP ADMA descriptor */ 241/* Controller cannot support End Attribute in NOP ADMA descriptor */
242#define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26) 242#define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC (1<<26)
243/* Controller is missing device caps. Use caps provided by host */
244#define SDHCI_QUIRK_MISSING_CAPS (1<<27)
243 245
244 int irq; /* Device IRQ */ 246 int irq; /* Device IRQ */
245 void __iomem * ioaddr; /* Mapped address */ 247 void __iomem * ioaddr; /* Mapped address */
@@ -292,6 +294,8 @@ struct sdhci_host {
292 294
293 struct timer_list timer; /* Timer for timeouts */ 295 struct timer_list timer; /* Timer for timeouts */
294 296
297 unsigned int caps; /* Alternative capabilities */
298
295 unsigned long private[0] ____cacheline_aligned; 299 unsigned long private[0] ____cacheline_aligned;
296}; 300};
297 301