Skip to content

Commit

Permalink
mmc: omap_hsmmc: Fix pbias_disable for omap4
Browse files Browse the repository at this point in the history
pbias_disable is set to protect the mmc pbias i/o cells in DT boot
by preventing voltage switch. Currently pbias_disable is enabled only
for omap3 and not for omap4 due to reg_offset difference of 0x100.
Enable pbias_disable for omap4+ too by using res->start
which does not include the reg_offset.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Balaji T K authored and Chris Ball committed Oct 31, 2013
1 parent 372c463 commit e002264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
omap_hsmmc_context_save(host);

/* This can be removed once we support PBIAS with DT */
if (host->dev->of_node && host->mapbase == 0x4809c000)
if (host->dev->of_node && res->start == 0x4809c000)
host->pbias_disable = 1;

host->dbclk = clk_get(&pdev->dev, "mmchsdb_fck");
Expand Down

0 comments on commit e002264

Please sign in to comment.