From patchwork Tue Jun 15 15:05:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: charu@ti.com X-Patchwork-Id: 106233 X-Patchwork-Delegate: khilman@deeprootsystems.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 o5FF2b9X029081 for ; Tue, 15 Jun 2010 15:02:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758035Ab0FOPCe (ORCPT ); Tue, 15 Jun 2010 11:02:34 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:40989 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758020Ab0FOPCc (ORCPT ); Tue, 15 Jun 2010 11:02:32 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o5FF1nCN014794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Jun 2010 10:01:52 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o5FF1fX5011202; Tue, 15 Jun 2010 20:31:47 +0530 (IST) From: "Varadarajan, Charulatha" To: david-b@pacbell.net, broonie@opensource.wolfsonmicro.com, akpm@linux-foundation.org, linux-omap@vger.kernel.org Cc: paul@pwsan.com, rnayak@ti.com, b-cousson@ti.com, khilman@deeprootsystems.com, tony@atomide.com, Charulatha V Subject: [PATCH 03/13 v3] OMAP: GPIO: Include platform_data structure for GPIO Date: Tue, 15 Jun 2010 20:35:38 +0530 Message-Id: <1276614348-5201-4-git-send-email-charu@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1276614348-5201-3-git-send-email-charu@ti.com> References: <1276614348-5201-1-git-send-email-charu@ti.com> <1276614348-5201-2-git-send-email-charu@ti.com> <1276614348-5201-3-git-send-email-charu@ti.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]); Tue, 15 Jun 2010 15:02:41 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/gpio.h b/arch/arm/plat-omap/include/plat/gpio.h index de1c604..fa5c05f 100644 --- a/arch/arm/plat-omap/include/plat/gpio.h +++ b/arch/arm/plat-omap/include/plat/gpio.h @@ -28,6 +28,7 @@ #include #include +#include #define OMAP1_MPUIO_BASE 0xfffb5000 @@ -71,6 +72,26 @@ IH_MPUIO_BASE + ((nr) & 0x0f) : \ IH_GPIO_BASE + (nr)) +#define METHOD_MPUIO 0 +#define METHOD_GPIO_1510 1 +#define METHOD_GPIO_1610 2 +#define METHOD_GPIO_7XX 3 +#define METHOD_GPIO_24XX 5 +#define METHOD_GPIO_44XX 6 + +struct omap_gpio_dev_attr { + int gpio_bank_count; /* No of GPIO banks - SoC specific */ + int gpio_bank_bits; /* GPIO bank width */ + bool dbck_flag; /* dbck validity - True only for OMAP3&4 */ + bool omap1_ick_flag; /* OMAP1 ick - True only for OMAP15xx */ +}; + +struct omap_gpio_platform_data { + u16 virtual_irq_start; + int method; + struct omap_gpio_dev_attr *gpio_attr; +}; + extern int omap_gpio_init(void); /* Call from board init only */ extern void omap2_gpio_prepare_for_idle(int power_state); extern void omap2_gpio_resume_after_idle(void);