From: Derald D. Woods <woods.technical@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: omap: Fix 'get_device_type()' for OMAP34XX
Date: Sun, 30 Jul 2017 18:51:11 -0500 [thread overview]
Message-ID: <20170730235111.6256-1-woods.technical@gmail.com> (raw)
Fixes 00bbe96ebabb (arm: omap: Unify get_device_type() function) where
the control status register value is embedded in a structure somewhere
in SRAM. This patch allows OMAP3 EVM (TMDSEVM3530) to boot again using
a known global constant and offset for 'readl'.
---
arch/arm/mach-omap2/sysinfo-common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/mach-omap2/sysinfo-common.c b/arch/arm/mach-omap2/sysinfo-common.c
index 1dc7051ab3..3955e803ad 100644
--- a/arch/arm/mach-omap2/sysinfo-common.c
+++ b/arch/arm/mach-omap2/sysinfo-common.c
@@ -16,6 +16,10 @@
*/
u32 get_device_type(void)
{
+#if defined(CONFIG_OMAP34XX)
+ return (readl(OMAP34XX_CTRL_BASE + 0x2f0) & DEVICE_TYPE_MASK) >>
+ DEVICE_TYPE_SHIFT;
+#endif
return (readl((*ctrl)->control_status) & DEVICE_TYPE_MASK) >>
DEVICE_TYPE_SHIFT;
}
--
2.13.3
next reply other threads:[~2017-07-30 23:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 23:51 Derald D. Woods [this message]
2017-07-31 12:41 ` [U-Boot] [PATCH v2] arm: omap: Fix 'get_device_type()' for OMAP34XX Derald D. Woods
2017-08-07 12:35 ` Derald Woods
2017-08-07 12:41 ` Tom Rini
2017-08-07 22:19 ` Derald Woods
2017-08-10 12:25 ` Derald Woods
2017-08-10 12:50 ` Derald Woods
2017-08-12 14:14 ` Derald Woods
2017-08-12 22:21 ` Tom Rini
2017-08-12 22:57 ` [U-Boot] [U-Boot, " Tom Rini
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=20170730235111.6256-1-woods.technical@gmail.com \
--to=woods.technical@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.