From patchwork Tue May 18 14:50:51 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: 100509 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 o4IEoAhP012522 for ; Tue, 18 May 2010 14:50:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757896Ab0EROt5 (ORCPT ); Tue, 18 May 2010 10:49:57 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:35801 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757882Ab0EROty (ORCPT ); Tue, 18 May 2010 10:49:54 -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 o4IEnk4c003464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 May 2010 09:49:49 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4IEngiI019456; Tue, 18 May 2010 20:19:45 +0530 (IST) From: Charulatha V To: linux-omap@vger.kernel.org Cc: rnayak@ti.com, paul@pwsan.com, tony@atomide.com, khilman@deeprootsystems.com, Charulatha V Subject: [PATCH 02/11] OMAP: GPIO: Include platform_data structure for GPIO Date: Tue, 18 May 2010 20:20:51 +0530 Message-Id: <1274194260-16401-3-git-send-email-charu@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1274194260-16401-2-git-send-email-charu@ti.com> References: <1274194260-16401-1-git-send-email-charu@ti.com> <1274194260-16401-2-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, 18 May 2010 14:50:11 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/gpio.h b/arch/arm/plat-omap/include/plat/gpio.h index a06acb6..d2d310b 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 #define OMAP1_MPUIO_VBASE OMAP1_MPUIO_BASE @@ -137,6 +138,20 @@ IH_MPUIO_BASE + ((nr) & 0x0f) : \ IH_GPIO_BASE + (nr)) +struct omap_gpio_dev_attr { + int gpio_bank_count; + int gpio_bank_bits; + bool dbck_flag; + bool fck_flag; + bool arm_gpio_ck_flag; +}; + +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_retention(void); extern void omap2_gpio_resume_after_retention(void);