linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tixy@linaro.org (Jon Medhurst (Tixy))
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: vexpress: Enable SPARSE_IRQ
Date: Thu, 14 Jun 2012 12:43:31 +0100	[thread overview]
Message-ID: <1339674211.3044.14.camel@linaro1.home> (raw)
In-Reply-To: <1339673581.3044.10.camel@linaro1.home>

To enable vexpress to be included in multiplatform kernels containing
boards which require SPARSE_IRQ, we need to also support this option.
This turns out to be very simple...

We remove NR_IRQS from mach/irq.h as that is unused with SPARSE_IRQ
and include this header directly in ct-ca9x4.c as it will no longer
be included via asm/irq.h.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
---
 arch/arm/mach-vexpress/include/mach/irqs.h |    2 --
 arch/arm/mach-vexpress/ct-ca9x4.c          |    1 +
 arch/arm/Kconfig                           |    1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-vexpress/include/mach/irqs.h b/arch/arm/mach-vexpress/include/mach/irqs.h
index 4b10ee7..b64611d 100644
--- a/arch/arm/mach-vexpress/include/mach/irqs.h
+++ b/arch/arm/mach-vexpress/include/mach/irqs.h
@@ -1,4 +1,2 @@
 #define IRQ_LOCALTIMER		29
 #define IRQ_LOCALWDOG		30
-
-#define NR_IRQS	256
diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c
index 3ef3fda..0f477a5 100644
--- a/arch/arm/mach-vexpress/ct-ca9x4.c
+++ b/arch/arm/mach-vexpress/ct-ca9x4.c
@@ -26,6 +26,7 @@
 
 #include "core.h"
 
+#include <mach/irqs.h>
 #include <mach/motherboard.h>
 
 #include <plat/clcd.h>
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 6f3370e..9dd9701 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -314,6 +314,7 @@ config ARCH_VEXPRESS
 	select NO_IOPORT
 	select PLAT_VERSATILE
 	select PLAT_VERSATILE_CLCD
+	select SPARSE_IRQ
 	help
 	  This enables support for the ARM Ltd Versatile Express boards.
 
-- 
1.7.10

      reply	other threads:[~2012-06-14 11:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 17:13 [PATCH 0/2] ARM: vexpress: Enable SPARSE_IRQ selection Jon Medhurst (Tixy)
2012-06-13 17:13 ` [PATCH 1/2] ARM: vexpress: Remove IRQ defines from mach/irq.h Jon Medhurst (Tixy)
2012-06-13 17:13 ` [PATCH 2/2] ARM: vexpress: Enable selection of SPARSE_IRQ Jon Medhurst (Tixy)
2012-06-13 19:23   ` Rob Herring
2012-06-14  7:32     ` Jon Medhurst (Tixy)
2012-06-14  8:55 ` [PATCH 0/2] ARM: vexpress: Enable SPARSE_IRQ selection Russell King - ARM Linux
2012-06-14 11:33   ` Jon Medhurst (Tixy)
2012-06-14 11:43     ` Jon Medhurst (Tixy) [this message]

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=1339674211.3044.14.camel@linaro1.home \
    --to=tixy@linaro.org \
    --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).