From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/7] omap_hsmmc: update struct hsmmc to accommodate omap3 from DT
Date: Wed, 12 Apr 2017 07:38:40 -0500 [thread overview]
Message-ID: <1492000720-11743-1-git-send-email-aford173@gmail.com> (raw)
This patch fixes and issue where DM_MMC adds a 0x100 byte offset to the
base register. This is necessary for AM33xx, OMAP4+ and newer devices, but
it is not necessary for OMAP34XX boards.
This patch will now only apply the x100 byte offset correction if DM_MMC
is enabled and the device is not OMAP34XX.
Fixes 11e1582506c6 ("omap_hsmmc: update struct hsmmc to accomodate
base address from DT")
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/arch/arm/include/asm/omap_mmc.h b/arch/arm/include/asm/omap_mmc.h
index f2bf645..5b44c40 100644
--- a/arch/arm/include/asm/omap_mmc.h
+++ b/arch/arm/include/asm/omap_mmc.h
@@ -26,7 +26,7 @@
#define OMAP_MMC_H_
struct hsmmc {
-#ifdef CONFIG_DM_MMC
+#if defined(CONFIG_DM_MMC) && !defined(CONFIG_OMAP34XX)
unsigned char res0[0x100];
#endif
unsigned char res1[0x10];
--
2.7.4
next reply other threads:[~2017-04-12 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 12:38 Adam Ford [this message]
2017-04-12 19:18 ` [U-Boot] [PATCH 1/7] omap_hsmmc: update struct hsmmc to accommodate omap3 from DT Tom Rini
2017-04-13 4:24 ` Vignesh R
2017-04-14 22:33 ` Adam Ford
2017-04-15 12:31 ` Vignesh R
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=1492000720-11743-1-git-send-email-aford173@gmail.com \
--to=aford173@gmail.com \
--cc=u-boot@lists.denx.de \
/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