summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2011-10-17 17:56:54 -0700
committerGerrit <chrome-bot@google.com>2011-10-28 11:08:57 -0700
commit59700e830d14730f4df65feb83c0fe0a5e3e33b9 (patch)
tree2ac65ca0dc9e1bde8d48f1f7dc2a464aa52f3bdd /drivers
parent186e1be5e2555ff51d496ad7a179b5988ae6be9a (diff)
mmc: tegra3: Add MMC support for Tegra3 (specifically, waluigi)
BUG=chromium-os:21540 TEST=Able to talk to MMC1 on Waluigi w/ future config changes. Specifically: 1. mmcinfo 0 - works (shows info) 2. mmcinfo 1 - works (shows info) 3. mmc rescan 1; mmc part 1 - works (shows partitions) Change-Id: I730d3b91088f20ccf7ca20f3f31f7d59514af243 Signed-off-by: Doug Anderson <dianders@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/10661 Reviewed-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/tegra_mmc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c
index 7f943b2afc..0c1dc8ed84 100644
--- a/drivers/mmc/tegra_mmc.c
+++ b/drivers/mmc/tegra_mmc.c
@@ -560,6 +560,14 @@ static void mmc_reset(struct mmc_host *host)
timeout--;
udelay(1000);
}
+
+#if defined(CONFIG_TEGRA3)
+ /* TCW Set SD_BUS_VOLTAGE and SD_BUS_POWER here for T30! */
+ /* TCW Find a way to do it based on fuses, device caps, etc. */
+ writeb(0x0F, &host->reg->pwrcon);
+ printf("mmc_reset: power control = %02X, host control = %02X\n",
+ readb(&host->reg->pwrcon), readb(&host->reg->hostctl));
+#endif
}
static int mmc_core_init(struct mmc *mmc)