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>2014-12-26 18:43:09 +0800
commit8a9a1c875e76d9f0b919ac6132392f6b452dcaa4 (patch)
treef50182079df1b274091d5647ed21411302deb565
parent65d9bea28b9e656c5d7d87ef2fd9990175faca3a (diff)
emmc hack
This lets the eMMC (alone) get probed. But there's a funny partition table, only p1 can be mounted. 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 cbb245b58538..185069f49fca 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3240,6 +3240,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));