From: Juergen Kilb <J.Kilb@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM omap hsmmc: Fix adding iobase for OMAP3
Date: Fri, 4 Jan 2013 17:13:12 +0100 [thread overview]
Message-ID: <1357315992-18896-1-git-send-email-J.Kilb@phytec.de> (raw)
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
next reply other threads:[~2013-01-04 16:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 16:13 Juergen Kilb [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357315992-18896-1-git-send-email-J.Kilb@phytec.de \
--to=j.kilb@phytec.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox