summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2014-12-08 03:07:34 +0800
committerAndy Green <andy.green@linaro.org>2015-01-22 00:46:30 +0800
commit33b49b3fa8e2f5c8811175d10b3b6b9408656629 (patch)
tree1662a5af4ba717b79419bbb1670a4520d81e1009
parent2f6886ab939655ef381b16e3fac8c0ab87927502 (diff)
emmc hack
This lets the eMMC (alone) get probed. Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/mmc/core/core.c2
-rw-r--r--drivers/mmc/host/sdhci.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 9584bffa8b22..a4844a6868d1 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -45,6 +45,8 @@
#include "sd_ops.h"
#include "sdio_ops.h"
+#define DEBUG 1
+
/* If the device is not responding */
#define MMC_CORE_TIMEOUT_MS (10 * 60 * 1000) /* 10 minute timeout */
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f1a488ee432f..6e46a9c94895 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3267,6 +3267,9 @@ int sdhci_add_host(struct sdhci_host *host)
if (host->ocr_avail_mmc)
mmc->ocr_avail_mmc &= host->ocr_avail_mmc;
+ // !!!
+ mmc->ocr_avail |= MMC_VDD_165_195; // | MMC_VDD_32_33 | MMC_VDD_33_34;
+
if (mmc->ocr_avail == 0) {
pr_err("%s: Hardware doesn't report any "
"support voltages.\n", mmc_hostname(mmc));