summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/sdhci.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-06-30 11:22:29 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-02 17:54:53 +0200
commit4a9655051fb1efa568e53baf5dfb21e33bad6bf6 (patch)
tree4cafaf33d3d9c821f39c3604ebdeeb85c5b911ef /drivers/mmc/sdhci.h
parent[MMC] sdhci: check only relevant inhibit bits (diff)
downloadlinux-4a9655051fb1efa568e53baf5dfb21e33bad6bf6.tar.xz
linux-4a9655051fb1efa568e53baf5dfb21e33bad6bf6.zip
[MMC] sdhci: check controller version
Check the interface version of the controller and bail out if it's an unknown version. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--drivers/mmc/sdhci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.h b/drivers/mmc/sdhci.h
index b1aa3acf0906..758cf1c24364 100644
--- a/drivers/mmc/sdhci.h
+++ b/drivers/mmc/sdhci.h
@@ -149,6 +149,10 @@
#define SDHCI_SLOT_INT_STATUS 0xFC
#define SDHCI_HOST_VERSION 0xFE
+#define SDHCI_VENDOR_VER_MASK 0xFF00
+#define SDHCI_VENDOR_VER_SHIFT 8
+#define SDHCI_SPEC_VER_MASK 0x00FF
+#define SDHCI_SPEC_VER_SHIFT 0
struct sdhci_chip;