From patchwork Tue Sep 11 05:31:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 1435111 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 49F4CE00A6 for ; Tue, 11 Sep 2012 05:31:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754692Ab2IKFbQ (ORCPT ); Tue, 11 Sep 2012 01:31:16 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:48090 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754605Ab2IKFbL (ORCPT ); Tue, 11 Sep 2012 01:31:11 -0400 Received: from c-98-234-237-12.hsd1.ca.comcast.net ([98.234.237.12] helo=muffinssi.local) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1TBJ41-000CVf-Vr; Tue, 11 Sep 2012 05:31:10 +0000 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 98.234.237.12 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19QjUDf9u6OERtOICl9ZqQs Subject: [PATCH 11/17] ARM: OMAP2+: Prepare for irqs.h removal To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: Paul Walmsley , linux-omap@vger.kernel.org Date: Mon, 10 Sep 2012 22:31:09 -0700 Message-ID: <20120911053108.29637.8738.stgit@muffinssi.local> In-Reply-To: <20120911052934.29637.9190.stgit@muffinssi.local> References: <20120911052934.29637.9190.stgit@muffinssi.local> User-Agent: StGit/0.16-2-g0d85 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org As the interrupts should only be defined in the platform_data, and eventually coming from device tree, there's no need to define them in header files. Let's remove the hardcoded references to irqs.h and fix up the includes so we don't rely on headers included in irqs.h. Note that we're defining OMAP_INTC_START as 0 to the interrupts. This will be needed when we enable SPARSE_IRQ. For some drivers we need to add #include for now until these drivers are fixed to remove cpu_is_omapxxxx() usage. While at it, sort som of the includes the standard way, and add the trailing commas where they are missing in the related data structures. Note that for drivers/staging/tidspbridge we just define things locally. Cc: Paul Walmsley Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-2430sdp.c | 2 arch/arm/mach-omap2/board-4430sdp.c | 2 arch/arm/mach-omap2/board-am3517evm.c | 3 arch/arm/mach-omap2/board-cm-t3517.c | 4 - arch/arm/mach-omap2/board-flash.c | 2 arch/arm/mach-omap2/board-igep0020.c | 2 arch/arm/mach-omap2/board-n8x0.c | 3 arch/arm/mach-omap2/board-omap4panda.c | 2 arch/arm/mach-omap2/board-rm680.c | 3 arch/arm/mach-omap2/board-rx51-peripherals.c | 2 arch/arm/mach-omap2/board-ti8168evm.c | 1 arch/arm/mach-omap2/board-zoom-debugboard.c | 1 arch/arm/mach-omap2/board-zoom-peripherals.c | 3 arch/arm/mach-omap2/common-board-devices.c | 1 arch/arm/mach-omap2/common.h | 2 arch/arm/mach-omap2/cpuidle34xx.c | 1 arch/arm/mach-omap2/devices.c | 17 +- arch/arm/mach-omap2/gpmc-smc91x.c | 1 arch/arm/mach-omap2/gpmc.c | 11 + arch/arm/mach-omap2/io.c | 2 arch/arm/mach-omap2/mailbox.c | 3 arch/arm/mach-omap2/mcbsp.c | 1 arch/arm/mach-omap2/omap-iommu.c | 12 +- arch/arm/mach-omap2/omap-wakeupgen.c | 1 arch/arm/mach-omap2/omap4-common.c | 7 - arch/arm/mach-omap2/omap_hwmod_2420_data.c | 23 +-- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 71 +++++----- .../mach-omap2/omap_hwmod_2xxx_3xxx_ipblock_data.c | 108 +++++++------- arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 6 - arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 149 ++++++++++---------- arch/arm/mach-omap2/omap_hwmod_common_data.h | 1 arch/arm/mach-omap2/omap_l3_noc.c | 6 + arch/arm/mach-omap2/omap_phy_internal.c | 2 arch/arm/mach-omap2/pm24xx.c | 2 arch/arm/mach-omap2/prcm.c | 1 arch/arm/mach-omap2/prm2xxx_3xxx.c | 3 arch/arm/mach-omap2/prm44xx.c | 4 - arch/arm/mach-omap2/prm_common.c | 1 arch/arm/mach-omap2/serial.c | 1 arch/arm/mach-omap2/soc.h | 1 arch/arm/mach-omap2/timer.c | 10 + arch/arm/mach-omap2/twl-common.c | 3 arch/arm/mach-omap2/twl-common.h | 6 - arch/arm/mach-omap2/usb-host.c | 1 arch/arm/mach-omap2/usb-musb.c | 1 arch/arm/plat-omap/include/plat/omap44xx.h | 1 drivers/dma/omap-dma.c | 2 drivers/mfd/twl-core.c | 2 drivers/mtd/onenand/omap2.c | 1 drivers/video/omap2/dss/dispc.c | 1 drivers/video/omap2/omapfb/omapfb-main.c | 1 sound/soc/omap/mcbsp.c | 2 sound/soc/omap/omap-mcbsp.c | 1 sound/soc/omap/omap-pcm.c | 1 54 files changed, 263 insertions(+), 238 deletions(-) create mode 100644 arch/arm/mach-omap2/soc.h -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index cacc498..0900eac 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -231,7 +231,7 @@ static int __init omap2430_i2c_init(void) sdp2430_i2c1_boardinfo[0].irq = gpio_to_irq(78); omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, ARRAY_SIZE(sdp2430_i2c1_boardinfo)); - omap_pmic_init(2, 100, "twl4030", INT_24XX_SYS_NIRQ, + omap_pmic_init(2, 100, "twl4030", 7 + OMAP_INTC_START, &sdp2430_twldata); return 0; } diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index ee82604..31456ea 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -579,7 +579,7 @@ static int __init omap4_i2c_init(void) TWL_COMMON_REGULATOR_V1V8 | TWL_COMMON_REGULATOR_V2V1); omap4_pmic_init("twl6030", &sdp4430_twldata, - &twl6040_data, OMAP44XX_IRQ_SYS_2N); + &twl6040_data, 119 + OMAP44XX_IRQ_GIC_START); omap_register_i2c_bus(2, 400, NULL, 0); omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo, ARRAY_SIZE(sdp4430_i2c_3_boardinfo)); diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 029ebdf..f8bc860 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c @@ -296,8 +296,7 @@ static struct resource am3517_hecc_resources[] = { .flags = IORESOURCE_MEM, }, { - .start = INT_35XX_HECC0_IRQ, - .end = INT_35XX_HECC0_IRQ, + .start = 24 + OMAP_INTC_START, .flags = IORESOURCE_IRQ, }, }; diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 57204f8..20fe233 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c @@ -42,6 +42,7 @@ #include #include #include +#include #include @@ -89,8 +90,7 @@ static struct resource cm_t3517_hecc_resources[] = { .flags = IORESOURCE_MEM, }, { - .start = INT_35XX_HECC0_IRQ, - .end = INT_35XX_HECC0_IRQ, + .start = 24 + OMAP_INTC_START, .flags = IORESOURCE_IRQ, }, }; diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach-omap2/board-flash.c index 9ceec38..901fa1f 100644 --- a/arch/arm/mach-omap2/board-flash.c +++ b/arch/arm/mach-omap2/board-flash.c @@ -16,8 +16,8 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 5775549..bacb917 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -32,6 +32,8 @@ #include "common.h" #include #include +#include + #include