aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2014-02-19 09:56:40 -0500
committerChris Ball <chris@printf.net>2014-03-04 11:44:58 -0500
commit2cf171cb2579e82f3d587e8ea438afb2b78ddff2 (patch)
treea0c6a38870b9868527702ebee4a4700807f417e1 /drivers/mmc
parent12a7108787da44381aa2e1bd268231b9ea19b752 (diff)
mmc: omap_hsmmc: remove pbias workaround
remove pbias workaround Signed-off-by: Balaji T K <balajitk@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Tested-by: Florian Vaussard <florian.vaussard@epfl.ch> Tested-by: Stefan Roese <sr@denx.de> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index f46190cfae17..cc7e84f28c18 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -170,7 +170,6 @@ struct omap_hsmmc_host {
170 struct regulator *vcc_aux; 170 struct regulator *vcc_aux;
171 struct regulator *pbias; 171 struct regulator *pbias;
172 bool pbias_enabled; 172 bool pbias_enabled;
173 int pbias_disable;
174 void __iomem *base; 173 void __iomem *base;
175 resource_size_t mapbase; 174 resource_size_t mapbase;
176 spinlock_t irq_lock; /* Prevent races with irq handler */ 175 spinlock_t irq_lock; /* Prevent races with irq handler */
@@ -272,13 +271,6 @@ static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on,
272 */ 271 */
273 if (!host->vcc) 272 if (!host->vcc)
274 return 0; 273 return 0;
275 /*
276 * With DT, never turn OFF the regulator for MMC1. This is because
277 * the pbias cell programming support is still missing when
278 * booting with Device tree
279 */
280 if (host->pbias_disable && !vdd)
281 return 0;
282 274
283 if (mmc_slot(host).before_set_reg) 275 if (mmc_slot(host).before_set_reg)
284 mmc_slot(host).before_set_reg(dev, slot, power_on, vdd); 276 mmc_slot(host).before_set_reg(dev, slot, power_on, vdd);
@@ -1543,13 +1535,7 @@ static void omap_hsmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
1543 * of external transceiver; but they all handle 1.8V. 1535 * of external transceiver; but they all handle 1.8V.
1544 */ 1536 */
1545 if ((OMAP_HSMMC_READ(host->base, HCTL) & SDVSDET) && 1537 if ((OMAP_HSMMC_READ(host->base, HCTL) & SDVSDET) &&
1546 (ios->vdd == DUAL_VOLT_OCR_BIT) && 1538 (ios->vdd == DUAL_VOLT_OCR_BIT)) {
1547 /*
1548 * With pbias cell programming missing, this
1549 * can't be allowed on MMC1 when booting with device
1550 * tree.
1551 */
1552 !host->pbias_disable) {
1553 /* 1539 /*
1554 * The mmc_select_voltage fn of the core does 1540 * The mmc_select_voltage fn of the core does
1555 * not seem to set the power_mode to 1541 * not seem to set the power_mode to
@@ -1901,10 +1887,6 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
1901 1887
1902 omap_hsmmc_context_save(host); 1888 omap_hsmmc_context_save(host);
1903 1889
1904 /* This can be removed once we support PBIAS with DT */
1905 if (host->dev->of_node && res->start == 0x4809c000)
1906 host->pbias_disable = 1;
1907
1908 host->dbclk = clk_get(&pdev->dev, "mmchsdb_fck"); 1890 host->dbclk = clk_get(&pdev->dev, "mmchsdb_fck");
1909 /* 1891 /*
1910 * MMC can still work without debounce clock. 1892 * MMC can still work without debounce clock.