From: yrehan@gmail.com (Mian Yousaf Kaukab)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: vexpress: ignore MIDR[0] for uart detection
Date: Sun, 29 Sep 2013 12:17:49 +0200 [thread overview]
Message-ID: <1380449869-19911-1-git-send-email-yrehan@gmail.com> (raw)
Qemu vexpress-a9 target reports id of ARM Cortex-A9 core as r0p0
and uses legacy map. That is UART0 at address 0x10009000. Ignore
MIDR[0] during uart detection so that r0p0 as well as r0p1 use
legacy map.
Signed-off-by: Mian Yousaf Kaukab <yrehan@gmail.com>
---
arch/arm/include/debug/vexpress.S | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/arch/arm/include/debug/vexpress.S b/arch/arm/include/debug/vexpress.S
index 524acd5..932db8b 100644
--- a/arch/arm/include/debug/vexpress.S
+++ b/arch/arm/include/debug/vexpress.S
@@ -27,11 +27,16 @@
@ Make an educated guess regarding the memory map:
@ - the original A9 core tile (based on ARM Cortex-A9 r0p1)
- @ should use UART at 0x10009000
+ @ should use UART at 0x10009000. Moreover, qemu vexpress-a9
+ @ target reports id of ARM Cortex-A9 core as r0p0 and uses
+ @ legacy map.
@ - all other (RS1 complaint) tiles use UART mapped
@ at 0x1c090000
mrc p15, 0, \rp, c0, c0, 0
- movw \rv, #0xc091
+ mov \rv, #1
+ @ Ignore MIDR[0] during comparison
+ bic \rp, \rp, \rv
+ movw \rv, #0xc090
movt \rv, #0x410f
cmp \rp, \rv
--
1.8.1.2
next reply other threads:[~2013-09-29 10:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-29 10:17 Mian Yousaf Kaukab [this message]
2013-10-01 8:11 ` [PATCH] ARM: vexpress: ignore MIDR[0] for uart detection Mian Yousaf Kaukab
2013-10-01 16:39 ` Pawel Moll
2013-10-01 20:15 ` Mian Yousaf Kaukab
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=1380449869-19911-1-git-send-email-yrehan@gmail.com \
--to=yrehan@gmail.com \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).