From: Derald D. Woods <woods.technical@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] arm: omap: Fix 'get_device_type()' for OMAP34XX
Date: Mon, 31 Jul 2017 07:41:40 -0500 [thread overview]
Message-ID: <20170731124140.17748-1-woods.technical@gmail.com> (raw)
In-Reply-To: <20170730235111.6256-1-woods.technical@gmail.com>
Fixes: 00bbe96ebabb ("arm: omap: Unify get_device_type() function")
The control status register value is embedded in a structure somewhere
in SRAM, with the last refactoring effort. This patch allows OMAP3 EVM
(TMDSEVM3530) to boot again using the known control register base and
offset for 'readl', for the OMAP34XX case.
Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
---
Changes in v2:
- Added 'signed-off-by'
- Updated description
---
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 prev parent reply other threads:[~2017-07-31 12:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 23:51 [U-Boot] [PATCH] arm: omap: Fix 'get_device_type()' for OMAP34XX Derald D. Woods
2017-07-31 12:41 ` Derald D. Woods [this message]
2017-08-07 12:35 ` [U-Boot] [PATCH v2] " 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=20170731124140.17748-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox