diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 23:31:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 23:31:25 -0400 |
commit | 16ee792e45cf0c97ce061fce03c36cab5551ec72 (patch) | |
tree | dc68af705fbac4b5d71325aa972730199bb187dd /drivers/mmc | |
parent | f906fb1d70e016726fccfb0d978c5d425503db9d (diff) | |
parent | efa62e1355f0495f37f1296754b8880947c8da72 (diff) |
Merge branch 'next/devel' of git://git.linaro.org/people/arnd/arm-soc
* 'next/devel' of git://git.linaro.org/people/arnd/arm-soc: (50 commits)
ARM: tegra: update defconfig
arm/tegra: Harmony: Configure PMC for low-level interrupts
arm/tegra: device tree support for ventana board
arm/tegra: add support for ventana pinmuxing
arm/tegra: prepare Seaboard pinmux code for derived boards
arm/tegra: pinmux: ioremap registers
gpio/tegra: Convert to a platform device
arm/tegra: Convert pinmux driver to a platform device
arm/dt: Tegra: Add pinmux node to tegra20.dtsi
arm/tegra: Prep boards for gpio/pinmux conversion to pdevs
ARM: mx5: fix clock usage for suspend
ARM i.MX entry-macro.S: remove now unused code
ARM i.MX boards: use CONFIG_MULTI_IRQ_HANDLER
ARM i.MX tzic: add handle_irq function
ARM i.MX avic: add handle_irq function
ARM: mx25: Add the missing IIM base definition
ARM i.MX avic: convert to use generic irq chip
mx31moboard: Add poweroff support
ARM: mach-qong: Add watchdog support
ARM: davinci: AM18x: Add wl1271/wlan support
...
Fix up conflicts in:
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-mx5/devices-imx53.h
arch/arm/plat-mxc/include/mach/memory.h
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/davinci_mmc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 0076c7448fe6..64a8325a4a8a 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c | |||
@@ -807,12 +807,25 @@ static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios) | |||
807 | static void mmc_davinci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | 807 | static void mmc_davinci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) |
808 | { | 808 | { |
809 | struct mmc_davinci_host *host = mmc_priv(mmc); | 809 | struct mmc_davinci_host *host = mmc_priv(mmc); |
810 | struct platform_device *pdev = to_platform_device(mmc->parent); | ||
811 | struct davinci_mmc_config *config = pdev->dev.platform_data; | ||
810 | 812 | ||
811 | dev_dbg(mmc_dev(host->mmc), | 813 | dev_dbg(mmc_dev(host->mmc), |
812 | "clock %dHz busmode %d powermode %d Vdd %04x\n", | 814 | "clock %dHz busmode %d powermode %d Vdd %04x\n", |
813 | ios->clock, ios->bus_mode, ios->power_mode, | 815 | ios->clock, ios->bus_mode, ios->power_mode, |
814 | ios->vdd); | 816 | ios->vdd); |
815 | 817 | ||
818 | switch (ios->power_mode) { | ||
819 | case MMC_POWER_OFF: | ||
820 | if (config && config->set_power) | ||
821 | config->set_power(pdev->id, false); | ||
822 | break; | ||
823 | case MMC_POWER_UP: | ||
824 | if (config && config->set_power) | ||
825 | config->set_power(pdev->id, true); | ||
826 | break; | ||
827 | } | ||
828 | |||
816 | switch (ios->bus_width) { | 829 | switch (ios->bus_width) { |
817 | case MMC_BUS_WIDTH_8: | 830 | case MMC_BUS_WIDTH_8: |
818 | dev_dbg(mmc_dev(host->mmc), "Enabling 8 bit mode\n"); | 831 | dev_dbg(mmc_dev(host->mmc), "Enabling 8 bit mode\n"); |