* [PATCH] ARM: shmobile: r8a7778: remove r8a7778_init_irq()
@ 2013-07-09 8:48 Kuninori Morimoto
2013-07-09 9:25 ` Magnus Damm
2013-07-10 1:10 ` Simon Horman
0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2013-07-09 8:48 UTC (permalink / raw)
To: linux-sh
This patch removes r8a7778_init_irq(), since no-one is using it.
And now, there is no reason to have r8a7778_init_irq_common().
r8a7778_init_irq_dt() includes it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
>> Simon
This patch is based on renesas-next-20130704v2 tag
arch/arm/mach-shmobile/include/mach/r8a7778.h | 1 -
arch/arm/mach-shmobile/setup-r8a7778.c | 37 ++++++-------------------
2 files changed, 9 insertions(+), 29 deletions(-)
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h
index 2e36264..5d0e120 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7778.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h
@@ -33,7 +33,6 @@ extern void r8a7778_add_mmc_device(struct sh_mmcif_plat_data *info);
extern void r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata);
extern void r8a7778_init_late(void);
extern void r8a7778_init_delay(void);
-extern void r8a7778_init_irq(void);
extern void r8a7778_init_irq_dt(void);
extern void r8a7778_clock_init(void);
extern void r8a7778_init_irq_extpin(int irlm);
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index 2a101eb..a3a2e37 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -408,17 +408,25 @@ void __init r8a7778_init_irq_extpin(int irlm)
&irqpin_platform_data, sizeof(irqpin_platform_data));
}
+void __init r8a7778_init_delay(void)
+{
+ shmobile_setup_delay(800, 1, 3); /* Cortex-A9 @ 800MHz */
+}
+
+#ifdef CONFIG_USE_OF
#define INT2SMSKCR0 0x82288 /* 0xfe782288 */
#define INT2SMSKCR1 0x8228c /* 0xfe78228c */
#define INT2NTSR0 0x00018 /* 0xfe700018 */
#define INT2NTSR1 0x0002c /* 0xfe70002c */
-static void __init r8a7778_init_irq_common(void)
+void __init r8a7778_init_irq_dt(void)
{
void __iomem *base = ioremap_nocache(0xfe700000, 0x00100000);
BUG_ON(!base);
+ irqchip_init();
+
/* route all interrupts to ARM */
__raw_writel(0x73ffffff, base + INT2NTSR0);
__raw_writel(0xffffffff, base + INT2NTSR1);
@@ -430,33 +438,6 @@ static void __init r8a7778_init_irq_common(void)
iounmap(base);
}
-void __init r8a7778_init_irq(void)
-{
- void __iomem *gic_dist_base;
- void __iomem *gic_cpu_base;
-
- gic_dist_base = ioremap_nocache(0xfe438000, PAGE_SIZE);
- gic_cpu_base = ioremap_nocache(0xfe430000, PAGE_SIZE);
- BUG_ON(!gic_dist_base || !gic_cpu_base);
-
- /* use GIC to handle interrupts */
- gic_init(0, 29, gic_dist_base, gic_cpu_base);
-
- r8a7778_init_irq_common();
-}
-
-void __init r8a7778_init_delay(void)
-{
- shmobile_setup_delay(800, 1, 3); /* Cortex-A9 @ 800MHz */
-}
-
-#ifdef CONFIG_USE_OF
-void __init r8a7778_init_irq_dt(void)
-{
- irqchip_init();
- r8a7778_init_irq_common();
-}
-
static const char *r8a7778_compat_dt[] __initdata = {
"renesas,r8a7778",
NULL,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: shmobile: r8a7778: remove r8a7778_init_irq()
2013-07-09 8:48 [PATCH] ARM: shmobile: r8a7778: remove r8a7778_init_irq() Kuninori Morimoto
@ 2013-07-09 9:25 ` Magnus Damm
2013-07-10 1:10 ` Simon Horman
1 sibling, 0 replies; 3+ messages in thread
From: Magnus Damm @ 2013-07-09 9:25 UTC (permalink / raw)
To: linux-sh
On Tue, Jul 9, 2013 at 5:48 PM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> This patch removes r8a7778_init_irq(), since no-one is using it.
> And now, there is no reason to have r8a7778_init_irq_common().
> r8a7778_init_irq_dt() includes it.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>>> Simon
>
> This patch is based on renesas-next-20130704v2 tag
Looks good to me, thanks for cleaning up things.
Acked-by: Magnus Damm <damm@opensource.se>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: shmobile: r8a7778: remove r8a7778_init_irq()
2013-07-09 8:48 [PATCH] ARM: shmobile: r8a7778: remove r8a7778_init_irq() Kuninori Morimoto
2013-07-09 9:25 ` Magnus Damm
@ 2013-07-10 1:10 ` Simon Horman
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2013-07-10 1:10 UTC (permalink / raw)
To: linux-sh
On Tue, Jul 09, 2013 at 06:25:13PM +0900, Magnus Damm wrote:
> On Tue, Jul 9, 2013 at 5:48 PM, Kuninori Morimoto
> <kuninori.morimoto.gx@renesas.com> wrote:
> > This patch removes r8a7778_init_irq(), since no-one is using it.
> > And now, there is no reason to have r8a7778_init_irq_common().
> > r8a7778_init_irq_dt() includes it.
> >
> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > ---
> >>> Simon
> >
> > This patch is based on renesas-next-20130704v2 tag
>
> Looks good to me, thanks for cleaning up things.
>
> Acked-by: Magnus Damm <damm@opensource.se>
Thanks, I have queued this up for v3.12 in the cleanup branch.
It should appear in renesas-next-20130710
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-10 1:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-09 8:48 [PATCH] ARM: shmobile: r8a7778: remove r8a7778_init_irq() Kuninori Morimoto
2013-07-09 9:25 ` Magnus Damm
2013-07-10 1:10 ` Simon Horman
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).