mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM omap hsmmc: Fix adding iobase for OMAP3
@ 2013-01-04 16:13 Juergen Kilb
  2013-01-07  9:23 ` Sascha Hauer
  2013-01-09 11:00 ` Sascha Hauer
  0 siblings, 2 replies; 5+ messages in thread
From: Juergen Kilb @ 2013-01-04 16:13 UTC (permalink / raw)
  To: barebox

Only the OMAP4 hsmmc module has an offset of 0x100 from its register
base address. With commit 416a991 the offset was added for all SOCs
which use the omap_hsmmc driver.
This has broken the driver for OMAP3/AM33xx platforms.

Signed-off-by: Juergen Kilb <J.Kilb@phytec.de>
---
 drivers/mci/omap_hsmmc.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c
index 6471ea6..68fb3e1 100644
--- a/drivers/mci/omap_hsmmc.c
+++ b/drivers/mci/omap_hsmmc.c
@@ -577,8 +577,12 @@ static int omap_mmc_probe(struct device_d *dev)
 	hsmmc->mci.hw_dev = dev;
 
 	hsmmc->iobase = dev_request_mem_region(dev, 0);
-	hsmmc->base = hsmmc->iobase + 0x100;
 
+#if defined(CONFIG_ARCH_OMAP4)
+	hsmmc->base = hsmmc->iobase + 0x100;
+#else
+	hsmmc->base = hsmmc->iobase;
+#endif
 	hsmmc->mci.voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
 
 	hsmmc->mci.f_min = 400000;
-- 
1.7.0.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-09 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-04 16:13 [PATCH] ARM omap hsmmc: Fix adding iobase for OMAP3 Juergen Kilb
2013-01-07  9:23 ` Sascha Hauer
2013-01-07 15:02   ` Jürgen Kilb
2013-01-09 11:00 ` Sascha Hauer
2013-01-09 12:42   ` Jürgen Kilb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox