summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.h
diff options
context:
space:
mode:
authorPhilip Rakity2012-05-28 03:36:44 +0200
committerChris Ball2012-07-21 06:02:22 +0200
commitbad37e1ac6b1a73ed30702b24a45c27c4f53aada (patch)
treef296dfee6adbb7c7b781285cd447b3aed53fa0ed /drivers/mmc/host/sdhci.h
parentmmc: sh_mmcif: support generic card-detection (diff)
downloadkernel-qcow2-linux-bad37e1ac6b1a73ed30702b24a45c27c4f53aada.tar.gz
kernel-qcow2-linux-bad37e1ac6b1a73ed30702b24a45c27c4f53aada.tar.xz
kernel-qcow2-linux-bad37e1ac6b1a73ed30702b24a45c27c4f53aada.zip
mmc: sdhci: if MAX_CURRENT is 0, try getting current from regulator
The sd host controller spec indicates the the MAX_CURRENT value may be returned as 0. In this case other methods need to be used to return the current. If 0 is returned and there is a regulator, ask the regulator for how much current is available. Signed-off-by: Philip Rakity <prakity@marvell.com> Signed-off-by: Mark F. Brown <mark.brown314@gmail.com> Reviewed-by: Aaron Lu <aaron.lu@amd.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r--drivers/mmc/host/sdhci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index f761f23d2a28..97653ea8942b 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -205,6 +205,7 @@
#define SDHCI_CAPABILITIES_1 0x44
#define SDHCI_MAX_CURRENT 0x48
+#define SDHCI_MAX_CURRENT_LIMIT 0xFF
#define SDHCI_MAX_CURRENT_330_MASK 0x0000FF
#define SDHCI_MAX_CURRENT_330_SHIFT 0
#define SDHCI_MAX_CURRENT_300_MASK 0x00FF00