From patchwork Thu Apr 8 12:21:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 91260 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 o38CM1Sb022144 for ; Thu, 8 Apr 2010 12:22:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758638Ab0DHMWC (ORCPT ); Thu, 8 Apr 2010 08:22:02 -0400 Received: from smtp.nokia.com ([192.100.105.134]:35600 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758628Ab0DHMWA (ORCPT ); Thu, 8 Apr 2010 08:22:00 -0400 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o38CLYTb029500; Thu, 8 Apr 2010 07:21:59 -0500 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 8 Apr 2010 15:21:33 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 8 Apr 2010 15:21:32 +0300 Received: from localhost.localdomain (esdhcp040165.research.nokia.com [172.21.40.165]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o38CLMdP006982; Thu, 8 Apr 2010 15:21:28 +0300 From: Roger Quadros To: Tomi.Valkeinen@nokia.com Cc: tony@atomide.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [PATCHv2 3/5] OMAP: RX51: Add Touch Controller in SPI board info Date: Thu, 8 Apr 2010 15:21:05 +0300 Message-Id: <1270729267-27553-4-git-send-email-roger.quadros@nokia.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1270729267-27553-3-git-send-email-roger.quadros@nokia.com> References: <1270729267-27553-1-git-send-email-roger.quadros@nokia.com> <1270729267-27553-2-git-send-email-roger.quadros@nokia.com> <1270729267-27553-3-git-send-email-roger.quadros@nokia.com> X-OriginalArrivalTime: 08 Apr 2010 12:21:33.0372 (UTC) FILETIME=[069D87C0:01CAD716] X-Nokia-AV: Clean 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]); Thu, 08 Apr 2010 12:22:22 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 3ef805e..020f354 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -46,6 +46,7 @@ enum { RX51_SPI_WL1251, RX51_SPI_MIPID, /* LCD panel */ + RX51_SPI_TSC2005, /* Touch Controller */ }; static struct wl12xx_platform_data wl1251_pdata; @@ -60,6 +61,11 @@ static struct omap2_mcspi_device_config mipid_mcspi_config = { .single_channel = 1, }; +static struct omap2_mcspi_device_config tsc2005_mcspi_config = { + .turbo_mode = 0, + .single_channel = 1, +}; + static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { [RX51_SPI_WL1251] = { .modalias = "wl1251", @@ -77,6 +83,15 @@ static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { .max_speed_hz = 6000000, .controller_data = &mipid_mcspi_config, }, + [RX51_SPI_TSC2005] = { + .modalias = "tsc2005", + .bus_num = 1, + .chip_select = 0, + /* .irq = OMAP_GPIO_IRQ(RX51_TSC2005_IRQ_GPIO),*/ + .max_speed_hz = 6000000, + .controller_data = &tsc2005_mcspi_config, + /* .platform_data = &tsc2005_config,*/ + }, }; #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)