All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] r8a7779: Route all interrupts to ARM
@ 2012-06-19 12:31 Phil Edworthy
  2012-06-21 11:45 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Edworthy @ 2012-06-19 12:31 UTC (permalink / raw)
  To: linux-sh


Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
---
 arch/arm/mach-shmobile/intc-r8a7779.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-shmobile/intc-r8a7779.c b/arch/arm/mach-shmobile/intc-r8a7779.c
index 550b23d..f04fad4 100644
--- a/arch/arm/mach-shmobile/intc-r8a7779.c
+++ b/arch/arm/mach-shmobile/intc-r8a7779.c
@@ -35,6 +35,9 @@
 #define INT2SMSKCR3 0xfe7822ac
 #define INT2SMSKCR4 0xfe7822b0
 
+#define INT2NTSR0 0xfe700060
+#define INT2NTSR1 0xfe700064
+
 static int r8a7779_set_wake(struct irq_data *data, unsigned int on)
 {
 	return 0; /* always allow wakeup */
@@ -49,6 +52,10 @@ void __init r8a7779_init_irq(void)
 	gic_init(0, 29, gic_dist_base, gic_cpu_base);
 	gic_arch_extn.irq_set_wake = r8a7779_set_wake;
 
+	/* route all interrupts to ARM */
+	__raw_writel(0xffffffff, INT2NTSR0);
+	__raw_writel(0x3fffffff, INT2NTSR1);
+
 	/* unmask all known interrupts in INTCS2 */
 	__raw_writel(0xfffffff0, INT2SMSKCR0);
 	__raw_writel(0xfff7ffff, INT2SMSKCR1);
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] r8a7779: Route all interrupts to ARM
  2012-06-19 12:31 [PATCH] r8a7779: Route all interrupts to ARM Phil Edworthy
@ 2012-06-21 11:45 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2012-06-21 11:45 UTC (permalink / raw)
  To: linux-sh

Hi,

Can you please provide a changelog describing why the change is being made?

Rafael


On Tuesday, June 19, 2012, Phil Edworthy wrote:
> 
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> ---
>  arch/arm/mach-shmobile/intc-r8a7779.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/intc-r8a7779.c b/arch/arm/mach-shmobile/intc-r8a7779.c
> index 550b23d..f04fad4 100644
> --- a/arch/arm/mach-shmobile/intc-r8a7779.c
> +++ b/arch/arm/mach-shmobile/intc-r8a7779.c
> @@ -35,6 +35,9 @@
>  #define INT2SMSKCR3 0xfe7822ac
>  #define INT2SMSKCR4 0xfe7822b0
>  
> +#define INT2NTSR0 0xfe700060
> +#define INT2NTSR1 0xfe700064
> +
>  static int r8a7779_set_wake(struct irq_data *data, unsigned int on)
>  {
>  	return 0; /* always allow wakeup */
> @@ -49,6 +52,10 @@ void __init r8a7779_init_irq(void)
>  	gic_init(0, 29, gic_dist_base, gic_cpu_base);
>  	gic_arch_extn.irq_set_wake = r8a7779_set_wake;
>  
> +	/* route all interrupts to ARM */
> +	__raw_writel(0xffffffff, INT2NTSR0);
> +	__raw_writel(0x3fffffff, INT2NTSR1);
> +
>  	/* unmask all known interrupts in INTCS2 */
>  	__raw_writel(0xfffffff0, INT2SMSKCR0);
>  	__raw_writel(0xfff7ffff, INT2SMSKCR1);
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-21 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19 12:31 [PATCH] r8a7779: Route all interrupts to ARM Phil Edworthy
2012-06-21 11:45 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.