From: Chandrabhanu Mahapatra <cmahapatra@ti.com>
To: <grant.likely@secretlab.ca>, <linus.walleij@stericsson.com>,
<rob.herring@calxeda.com>
Cc: <linux-kernel@vger.kernel.org>,
<devicetree-discuss@lists.ozlabs.org>, <leed.aguilar@ti.com>,
Chandrabhanu Mahapatra <cmahapatra@ti.com>
Subject: [PATCH 3/4] OMAP: Define TCA6424 max number of possible IRQs
Date: Tue, 10 Jul 2012 19:06:08 +0530 [thread overview]
Message-ID: <f77496c24aa05320ad8cdc81759dd16d7bbb9d65.1341925681.git.cmahapatra@ti.com> (raw)
In-Reply-To: <cover.1341925681.git.cmahapatra@ti.com>
From: Leed Aguilar <leed.aguilar@ti.com>
TCA6424 being a 24 bit I2C and SMBus I/O expander has 24 available GPIO lines
that can be used as IRQs lines. So, the support for 24 more IRQ lines has been
added to the kernel.
Change-Id: I22e4fbb3a1e4c4b53ae698a9b22cdb0f4ad7f4e6
Signed-off-by: Leed Aguilar <leed.aguilar@ti.com>
Signed-off-by: Chandrabhanu Mahapatra <cmahapatra@ti.com>
---
arch/arm/plat-omap/include/plat/irqs.h | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/arch/arm/plat-omap/include/plat/irqs.h b/arch/arm/plat-omap/include/plat/irqs.h
index 37bbbbb..97c71ba 100644
--- a/arch/arm/plat-omap/include/plat/irqs.h
+++ b/arch/arm/plat-omap/include/plat/irqs.h
@@ -378,8 +378,17 @@
#endif
#define OMAP_FPGA_IRQ_END (OMAP_FPGA_IRQ_BASE + OMAP_FPGA_NR_IRQS)
+/* TCA6424A I2C and SMBus I/O expander */
+#define OMAP_TCA6424_IRQ_BASE (OMAP_FPGA_IRQ_END)
+#ifdef CONFIG_GPIO_PCA953X
+#define OMAP_TCA6424_NR_IRQS 24
+#else
+#define OMAP_TCA6424_NR_IRQS 0
+#endif
+#define OMAP_TCA6424_IRQ_END (OMAP_TCA6424_IRQ_BASE + OMAP_TCA6424_NR_IRQS)
+
/* External TWL4030 can handle interrupts on 2430 and 34xx boards */
-#define TWL4030_IRQ_BASE (OMAP_FPGA_IRQ_END)
+#define TWL4030_IRQ_BASE (OMAP_TCA6424_IRQ_END)
#ifdef CONFIG_TWL4030_CORE
#define TWL4030_BASE_NR_IRQS 8
#define TWL4030_PWR_NR_IRQS 8
--
1.7.10
next prev parent reply other threads:[~2012-07-10 13:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-10 13:31 [PATCH 0/4] Extend TCA6424 support Chandrabhanu Mahapatra
2012-07-10 13:35 ` [PATCH 1/4] GPIO: PCA953X: Increase size of invert variable to support 24 bit Chandrabhanu Mahapatra
2012-07-11 22:02 ` Linus Walleij
2012-07-10 13:35 ` [PATCH 2/4] gpio/pca953x: increase variables size to support 24 bit of data Chandrabhanu Mahapatra
2012-07-11 22:04 ` Linus Walleij
2012-07-10 13:36 ` Chandrabhanu Mahapatra [this message]
2012-07-11 22:08 ` [PATCH 3/4] OMAP: Define TCA6424 max number of possible IRQs Linus Walleij
[not found] ` <CAF0AtAs8euY79y-JmD8Bk4oX-8+gwPKsr_JJin+853EesrUTcg@mail.gmail.com>
2012-07-14 20:44 ` Linus Walleij
2012-07-10 13:36 ` [PATCH 4/4] gpio/pca953x: register the device irq using appropriate api's Chandrabhanu Mahapatra
2012-07-11 22:11 ` Linus Walleij
2012-07-23 6:52 ` Mahapatra, Chandrabhanu
2012-07-28 6:05 ` [PATCH V1 0/3] Extend TCA6424 support Chandrabhanu Mahapatra
2012-07-28 6:07 ` [PATCH V1 1/3] GPIO: PCA953X: Increase size of invert variable to support 24 bit Chandrabhanu Mahapatra
2012-08-04 23:38 ` Linus Walleij
2012-07-28 6:07 ` [PATCH V1 2/3] gpio/pca953x: increase variables size to support 24 bit of data Chandrabhanu Mahapatra
2012-07-28 6:10 ` [PATCH V1 3/3] OMAP: Define TCA6424 max number of possible IRQs Chandrabhanu Mahapatra
2012-07-29 15:49 ` Linus Walleij
2012-08-04 23:39 ` [PATCH V1 0/3] Extend TCA6424 support Linus Walleij
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=f77496c24aa05320ad8cdc81759dd16d7bbb9d65.1341925681.git.cmahapatra@ti.com \
--to=cmahapatra@ti.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=leed.aguilar@ti.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rob.herring@calxeda.com \
/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
all inboxes | Powered by JetHome®