From: Jisheng Zhang <jszhang@marvell.com>
To: <rob.herring@calxeda.com>, <linux@arm.linux.org.uk>,
<kernel@pengutronix.de>, <baohua@kernel.org>,
<dinguyen@altera.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
Jisheng Zhang <jszhang@marvell.com>
Subject: [PATCH V2 4/4] arm: socfgpa: make use of common scu_a9_get_base() interface
Date: Thu, 7 Nov 2013 11:16:44 +0800 [thread overview]
Message-ID: <1383794204-4714-5-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-socfpga/socfpga.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c
index bfce964..b695887 100644
--- a/arch/arm/mach-socfpga/socfpga.c
+++ b/arch/arm/mach-socfpga/socfpga.c
@@ -24,6 +24,7 @@
#include <asm/hardware/cache-l2x0.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
+#include <asm/smp_scu.h>
#include "core.h"
@@ -51,8 +52,7 @@ static void __init socfpga_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_io_desc.pfn = __phys_to_pfn(base);
iotable_init(&scu_io_desc, 1);
--
1.8.4.2
next prev parent reply other threads:[~2013-11-07 3:19 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 ` [PATCH V2 1/4] arm: highbank: " Jisheng Zhang
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 ` Jisheng Zhang [this message]
2013-11-11 23:24 ` [PATCH V2 4/4] arm: socfgpa: " 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-5-git-send-email-jszhang@marvell.com \
--to=jszhang@marvell.com \
--cc=baohua@kernel.org \
--cc=dinguyen@altera.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rob.herring@calxeda.com \
/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).