From: Cory Maccarrone <darkstar6262@gmail.com>
To: linux-omap@vger.kernel.org
Cc: linwizard-devel@lists.sf.net, Cory Maccarrone <darkstar6262@gmail.com>
Subject: [PATCH 3/4] [OMAP] Add allowance for extra IRQ space
Date: Fri, 28 May 2010 22:28:06 -0700 [thread overview]
Message-ID: <1275110887-2918-4-git-send-email-darkstar6262@gmail.com> (raw)
In-Reply-To: <1275110887-2918-1-git-send-email-darkstar6262@gmail.com>
This change adds a configuration option that boards can specify that
gives them an additional 64 or 128 IRQ lines to play with. This is
most useful if there are external interrupt-producing devices connected
to the board.
Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
---
arch/arm/plat-omap/Kconfig | 18 ++++++++++++++++++
arch/arm/plat-omap/include/plat/irqs.h | 6 +++++-
2 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index 52f61f6..a225622 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -20,6 +20,24 @@ config OMAP_GPIO_EXTRA128
Add an extra 128 gpio numbers to the available GPIO pool. This is
available for boards that need extra gpios for external devices.
+config OMAP_IRQ_EXTRA
+ int
+ default 128 if OMAP_IRQ_EXTRA128
+ default 64 if OMAP_IRQ_EXTRA64
+ default 0
+
+config OMAP_IRQ_EXTRA64
+ bool
+ help
+ Add an extra 64 irq numbers to the available IRQ pool. This is
+ available for boards that need extra interrupts for external devices.
+
+config OMAP_IRQ_EXTRA128
+ bool
+ help
+ Add an extra 128 irq numbers to the available IRQ pool. This is
+ available for boards that need extra interrupts for external devices.
+
config ARCH_OMAP_OTG
bool
diff --git a/arch/arm/plat-omap/include/plat/irqs.h b/arch/arm/plat-omap/include/plat/irqs.h
index c01d9f0..2f14c78 100644
--- a/arch/arm/plat-omap/include/plat/irqs.h
+++ b/arch/arm/plat-omap/include/plat/irqs.h
@@ -409,7 +409,11 @@
#define TWL_IRQ_END TWL6030_IRQ_END
#endif
-#define NR_IRQS TWL_IRQ_END
+/*
+ * Some boards require extra irq capacity to support external
+ * devices that generate interrupts.
+ */
+#define NR_IRQS (TWL_IRQ_END + CONFIG_OMAP_IRQ_EXTRA)
#define OMAP_IRQ_BIT(irq) (1 << ((irq) % 32))
--
1.7.0.4
next prev parent reply other threads:[~2010-05-29 5:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-29 5:28 [PATCH 0/4] MMC, I2C, HTCPLD for HTC Herald Cory Maccarrone
2010-05-29 5:28 ` [PATCH 1/4] [OMAP1] Add MMC board code common to HTC devices Cory Maccarrone
2010-06-01 10:19 ` Ladislav Michl
2010-06-01 15:33 ` Cory Maccarrone
2010-05-29 5:28 ` [PATCH 2/4] [OMAP] gpio: Allow for extended GPIO space Cory Maccarrone
2010-05-29 5:28 ` Cory Maccarrone [this message]
2010-05-29 5:28 ` [PATCH 4/4] [OMAP] HTCHERALD: MMC, I2C, HTCPLD and related devices Cory Maccarrone
2010-06-01 15:37 ` Cory Maccarrone
2010-06-01 15:41 ` [PATCHv2 " Cory Maccarrone
2010-06-01 15:50 ` Cory Maccarrone
2010-06-01 15:54 ` [PATCHv3 " Cory Maccarrone
2010-07-06 8:44 ` Tony Lindgren
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=1275110887-2918-4-git-send-email-darkstar6262@gmail.com \
--to=darkstar6262@gmail.com \
--cc=linux-omap@vger.kernel.org \
--cc=linwizard-devel@lists.sf.net \
/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).