From patchwork Tue Oct 26 20:18:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Chemparathy X-Patchwork-Id: 297472 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA2E0LYu013843 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Nov 2010 14:00:42 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id oA2Dwuw1010687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Nov 2010 08:58:56 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id oA2DwsUJ001845; Tue, 2 Nov 2010 08:58:55 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 3295C8063C; Tue, 2 Nov 2010 07:58:52 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dlep36.itg.ti.com (dlep36.itg.ti.com [157.170.170.91]) by linux.omap.com (Postfix) with ESMTP id 235AE80628 for ; Tue, 26 Oct 2010 15:18:43 -0500 (CDT) Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o9QKIghx010093; Tue, 26 Oct 2010 15:18:42 -0500 (CDT) Received: from gtrgwdeb (gtrgwdeb.telogy.design.ti.com [158.218.102.24]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o9QKIff11227; Tue, 26 Oct 2010 15:18:41 -0500 (CDT) Received: by gtrgwdeb (Postfix, from userid 39959) id D77F21E29DC; Tue, 26 Oct 2010 16:18:40 -0400 (EDT) From: Cyril Chemparathy To: davinci-linux-open-source@linux.davincidsp.com, spi-devel-general@lists.sourceforge.net, broonie@opensource.wolfsonmicro.com, lrg@slimlogic.co.uk, dbrownell@users.sourceforge.net, grant.likely@secretlab.ca, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rpurdie@rpsys.net Subject: [PATCH v4 09/12] davinci: add tnetv107x evm ti-ssp gpio device Date: Tue, 26 Oct 2010 16:18:25 -0400 Message-Id: <1288124308-14999-10-git-send-email-cyril@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1288124308-14999-1-git-send-email-cyril@ti.com> References: <1288124308-14999-1-git-send-email-cyril@ti.com> X-Mailman-Approved-At: Tue, 02 Nov 2010 07:57:07 -0600 X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 02 Nov 2010 14:00:42 +0000 (UTC) diff --git a/arch/arm/mach-davinci/board-tnetv107x-evm.c b/arch/arm/mach-davinci/board-tnetv107x-evm.c index 42ae20f..e0acc13 100644 --- a/arch/arm/mach-davinci/board-tnetv107x-evm.c +++ b/arch/arm/mach-davinci/board-tnetv107x-evm.c @@ -40,6 +40,8 @@ #include #include +#define SSP_GPIO_START 128 + #define EVM_MMC_WP_GPIO 21 #define EVM_MMC_CD_GPIO 24 #define EVM_SPI_CS_GPIO 54 @@ -236,9 +238,22 @@ static const struct ti_ssp_spi_data spi_master_data = { .select = spi_select_device, }; +static const struct ti_ssp_gpio_data ssp_gpio_data = { + .start = SSP_GPIO_START, +}; + static struct ti_ssp_data ssp_config = { .out_clock = 250 * 1000, .dev_data = { + [0] = { + .dev_name = "ti-ssp-gpio", + .iosel = SSP_PIN_SEL(0, SSP_IN) | + SSP_PIN_SEL(1, SSP_IN) | + SSP_PIN_SEL(2, SSP_IN) | + SSP_PIN_SEL(3, SSP_IN), + .pdata = &ssp_gpio_data, + .pdata_size = sizeof(ssp_gpio_data), + }, [1] = { .dev_name = "ti-ssp-spi", .iosel = SSP_PIN_SEL(0, SSP_CLOCK) |