From: jszhang@marvell.com (Jisheng Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 1/4] arm: highbank: make use of common scu_a9_get_base() interface
Date: Thu, 7 Nov 2013 11:16:41 +0800 [thread overview]
Message-ID: <1383794204-4714-2-git-send-email-jszhang@marvell.com> (raw)
In-Reply-To: <1383794204-4714-1-git-send-email-jszhang@marvell.com>
Make use of common scu_a9_get_base() and delete the comment since the
interface is self commented.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
arch/arm/mach-highbank/highbank.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 8e63ccd..7df007b 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -29,6 +29,7 @@
#include <asm/cacheflush.h>
#include <asm/cputype.h>
#include <asm/smp_plat.h>
+#include <asm/smp_scu.h>
#include <asm/hardware/cache-l2x0.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
@@ -43,8 +44,7 @@ static void __init highbank_scu_map_io(void)
{
unsigned long base;
- /* Get SCU base */
- asm("mrc p15, 4, %0, c15, c0, 0" : "=r" (base));
+ base = scu_a9_get_base();
scu_base_addr = ioremap(base, SZ_4K);
}
--
1.8.4.2
next prev parent reply other threads:[~2013-11-07 3:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 3:16 [PATCH V2 0/4] arm: make use of common scu_a9_get_base() interface Jisheng Zhang
2013-11-07 3:16 ` Jisheng Zhang [this message]
2013-11-07 3:16 ` [PATCH V2 2/4] arm: imx: " Jisheng Zhang
2013-11-07 3:16 ` [PATCH V2 3/4] arm: prima2: " Jisheng Zhang
2013-11-07 3:16 ` [PATCH V2 4/4] arm: socfgpa: " Jisheng Zhang
2013-11-11 23:24 ` Dinh Nguyen
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=1383794204-4714-2-git-send-email-jszhang@marvell.com \
--to=jszhang@marvell.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).