From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755882Ab2GJNgZ (ORCPT ); Tue, 10 Jul 2012 09:36:25 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:43153 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755812Ab2GJNgV (ORCPT ); Tue, 10 Jul 2012 09:36:21 -0400 From: Chandrabhanu Mahapatra To: , , CC: , , , Chandrabhanu Mahapatra Subject: [PATCH 3/4] OMAP: Define TCA6424 max number of possible IRQs Date: Tue, 10 Jul 2012 19:06:08 +0530 Message-ID: X-Mailer: git-send-email 1.7.10 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leed Aguilar 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 Signed-off-by: Chandrabhanu Mahapatra --- 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