aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/sdhci.h
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-06-30 02:22:29 -0700
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-02 16:54:53 +0100
commit4a9655051fb1efa568e53baf5dfb21e33bad6bf6 (patch)
tree4cafaf33d3d9c821f39c3604ebdeeb85c5b911ef /drivers/mmc/sdhci.h
parentfd2208d7c72ef5995b730f1e23b082261499e334 (diff)
[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 'drivers/mmc/sdhci.h')
-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 b1aa3acf090..758cf1c2436 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;