From patchwork Wed May 19 16:11:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ameya Palande X-Patchwork-Id: 100916 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 o4JGCGr0030346 for ; Wed, 19 May 2010 16:12:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390Ab0ESQMP (ORCPT ); Wed, 19 May 2010 12:12:15 -0400 Received: from smtp.nokia.com ([192.100.105.134]:25639 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900Ab0ESQMO (ORCPT ); Wed, 19 May 2010 12:12:14 -0400 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o4JGBFB6005449 for ; Wed, 19 May 2010 11:12:13 -0500 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 19 May 2010 19:11:59 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 19 May 2010 19:11:58 +0300 Received: from localhost.localdomain (esdhcp04343.research.nokia.com [172.21.43.43]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o4JGBubj023027 for ; Wed, 19 May 2010 19:11:56 +0300 From: Ameya Palande To: linux-omap@vger.kernel.org Subject: [PATCH] tsl2563 ALS support for Nokia N900 Date: Wed, 19 May 2010 19:11:30 +0300 Message-Id: <63bae8d024cc56ac3ea380dee21ac9add900a7e0.1274285408.git.ameya.palande@nokia.com> X-Mailer: git-send-email 1.6.3.3 X-OriginalArrivalTime: 19 May 2010 16:11:59.0006 (UTC) FILETIME=[02459BE0:01CAF76E] 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]); Wed, 19 May 2010 16:12:16 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 966f5f8..82d5ac7 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -23,6 +23,7 @@ #include #include #include +#include <../drivers/staging/iio/light/tsl2563.h> #include #include @@ -54,6 +55,10 @@ static struct omap2_mcspi_device_config wl1251_mcspi_config = { .single_channel = 1, }; +static struct tsl2563_platform_data rx51_tsl2563_platform_data = { + .cover_comp_gain = 16, + }; + static struct spi_board_info rx51_peripherals_spi_board_info[] __initdata = { [RX51_SPI_WL1251] = { .modalias = "wl1251", @@ -686,6 +691,9 @@ static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_1[] = { .irq = INT_34XX_SYS_NIRQ, .platform_data = &rx51_twldata, }, + { I2C_BOARD_INFO("tsl2563", 0x29), + .platform_data = &rx51_tsl2563_platform_data, + }, }; static struct i2c_board_info __initdata rx51_peripherals_i2c_board_info_2[] = {