From patchwork Sat May 29 05:28:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cory Maccarrone X-Patchwork-Id: 103016 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4T5YjoK013500 for ; Sat, 29 May 2010 05:34:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751300Ab0E2Feo (ORCPT ); Sat, 29 May 2010 01:34:44 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:55618 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960Ab0E2Fen (ORCPT ); Sat, 29 May 2010 01:34:43 -0400 Received: by gwaa12 with SMTP id a12so1566772gwa.19 for ; Fri, 28 May 2010 22:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=IOq0ODiDwtY9TRLDoNqLod7IguhmaiuQXfcORgHTqU8=; b=HVAbo6REuehKML6ozt7Hx7yaPPGn7CSqCQ4K64pWdZDtNHnHNcnDg7a3p9DTm+vyRJ 4q0yTNK/cX8a/JNgCY91bwDDsO0ul8OE9nub6vQswl7HI9y7MXTaND0jfc8pxsPY6QKU otMM6EJSK5c6mXDjbeeue3jdrlZTQjOXm4ENk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=eYhvjXKaIwjHc5or3Dwgr2fNBtnq13/I0ztE8aDGZoADan5HRLM6Es6E5Q9MLuyQab 6yZKLp0RRDy816av8CRGeAVjiv8eXwhK3/p7Q0ppoiNIcIxm3/sgBOu2C4mONqSFBain zLejfUJ+Yonh7dYncZ+x+MSw3QYR6V959L4IU= Received: by 10.231.158.203 with SMTP id g11mr1667741ibx.24.1275110936761; Fri, 28 May 2010 22:28:56 -0700 (PDT) Received: from localhost (97-126-104-191.tukw.qwest.net [97.126.104.191]) by mx.google.com with ESMTPS id d9sm14338695ibl.22.2010.05.28.22.28.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 28 May 2010 22:28:56 -0700 (PDT) From: Cory Maccarrone To: linux-omap@vger.kernel.org Cc: linwizard-devel@lists.sf.net, Cory Maccarrone Subject: [PATCH 3/4] [OMAP] Add allowance for extra IRQ space Date: Fri, 28 May 2010 22:28:06 -0700 Message-Id: <1275110887-2918-4-git-send-email-darkstar6262@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1275110887-2918-1-git-send-email-darkstar6262@gmail.com> References: <1275110887-2918-1-git-send-email-darkstar6262@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 29 May 2010 05:34:45 +0000 (UTC) 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))