From: srinidhi.kasagar@stericsson.com (srinidhi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ux500: make gic_cpu_base_addr visible to entry-macro-gic.S
Date: Thu, 29 Jul 2010 18:26:16 +0530 [thread overview]
Message-ID: <1280408176.14531.14.camel@bnru03> (raw)
This makes the __iomem type gic_cpu_base_addr visible to the new
renamed file entry-macro-gic.S.
Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
---
arch/arm/mach-ux500/cpu.c | 7 ++++++-
arch/arm/mach-ux500/include/mach/setup.h | 1 +
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c
index e0fd747..0a007b8 100644
--- a/arch/arm/mach-ux500/cpu.c
+++ b/arch/arm/mach-ux500/cpu.c
@@ -58,10 +58,15 @@ void __init ux500_init_devices(void)
amba_add_devices(ux500_amba_devs, ARRAY_SIZE(ux500_amba_devs));
}
+/* used by entry-macro.S */
+void __iomem *gic_cpu_base_addr;
+
void __init ux500_init_irq(void)
{
+ gic_cpu_base_addr = __io_address(UX500_GIC_CPU_BASE);
+
gic_dist_init(0, __io_address(UX500_GIC_DIST_BASE), 29);
- gic_cpu_init(0, __io_address(UX500_GIC_CPU_BASE));
+ gic_cpu_init(0, gic_cpu_base_addr);
/*
* Init clocks here so that they are available for system timer
diff --git a/arch/arm/mach-ux500/include/mach/setup.h b/arch/arm/mach-ux500/include/mach/setup.h
index e978dbd..56f81bb 100644
--- a/arch/arm/mach-ux500/include/mach/setup.h
+++ b/arch/arm/mach-ux500/include/mach/setup.h
@@ -30,6 +30,7 @@ extern void __init amba_add_devices(struct amba_device *devs[], int num);
struct sys_timer;
extern struct sys_timer ux500_timer;
+extern void __iomem *gic_cpu_base_addr;
#define __IO_DEV_DESC(x, sz) { \
.virtual = IO_ADDRESS(x), \
--
1.6.3.3
reply other threads:[~2010-07-29 12:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1280408176.14531.14.camel@bnru03 \
--to=srinidhi.kasagar@stericsson.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