linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] sdhci: Enable cache snooping
@ 2009-09-23  9:08 Gao Guanhua
  2009-09-23  9:08 ` [PATCH 2/6] P2020DS: Add sdhc support Gao Guanhua
  2009-09-23 11:52 ` [PATCH 1/6] sdhci: Enable cache snooping Anton Vorontsov
  0 siblings, 2 replies; 14+ messages in thread
From: Gao Guanhua @ 2009-09-23  9:08 UTC (permalink / raw)
  To: sdhci-devel; +Cc: linuxppc-dev, Gao Guanhua

This patch enable cache snooping when the sdhc is initialized.
---
 drivers/mmc/host/sdhci.c |    3 +++
 drivers/mmc/host/sdhci.h |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 288e40b..cc6d45c 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -178,6 +178,9 @@ static void sdhci_init(struct sdhci_host *host)
 {
 	sdhci_reset(host, SDHCI_RESET_ALL);
 
+	/* Enable cache snooping */
+	sdhci_writel(host, SDHCI_CACHE_SNOOP, SDHCI_HOST_DMA_CONTROL);
+
 	sdhci_clear_set_irqs(host, SDHCI_INT_ALL_MASK,
 		SDHCI_INT_BUS_POWER | SDHCI_INT_DATA_END_BIT |
 		SDHCI_INT_DATA_CRC | SDHCI_INT_DATA_TIMEOUT | SDHCI_INT_INDEX |
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index afda7f1..9ee9622 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -176,6 +176,10 @@
 #define   SDHCI_SPEC_100	0
 #define   SDHCI_SPEC_200	1
 
+/* 40C DMA control register*/
+#define SDHCI_HOST_DMA_CONTROL	0x40C
+#define SDHCI_CACHE_SNOOP	0x40
+
 struct sdhci_ops;
 
 struct sdhci_host {
-- 
1.6.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-11-13  8:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23  9:08 [PATCH 1/6] sdhci: Enable cache snooping Gao Guanhua
2009-09-23  9:08 ` [PATCH 2/6] P2020DS: Add sdhc support Gao Guanhua
2009-09-23  9:08   ` [PATCH 3/6] P2020DS: Fixup sdhc to use PIO mode Gao Guanhua
2009-09-23  9:08     ` [PATCH 4/6] sdhci: Fixup AHB2MAG IRQ bypass hardware workaround Gao Guanhua
2009-09-23  9:08       ` [PATCH 5/6] sdhci-of: Set the timeout to the max value Gao Guanhua
2009-09-23  9:08         ` [PATCH 6/6] P2020DS: Remove sdhci-dma-broken and sdhci-ahb2mag-irq-bypass properties Gao Guanhua
2009-09-23 11:59           ` Anton Vorontsov
2009-09-24  8:22             ` Gao Guanhua-B22826
2009-09-23 11:55     ` [PATCH 3/6] P2020DS: Fixup sdhc to use PIO mode Anton Vorontsov
2009-09-24  8:28       ` Gao Guanhua-B22826
2009-11-05 13:52         ` Kumar Gala
2009-11-06  2:08           ` Gao Guanhua-B22826
2009-11-13  8:30           ` Gao Guanhua-B22826
2009-09-23 11:52 ` [PATCH 1/6] sdhci: Enable cache snooping Anton Vorontsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).