From patchwork Wed Jul 7 09:44:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 110598 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o679iaBX027900 for ; Wed, 7 Jul 2010 09:44:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754593Ab0GGJof (ORCPT ); Wed, 7 Jul 2010 05:44:35 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:59899 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754595Ab0GGJoe (ORCPT ); Wed, 7 Jul 2010 05:44:34 -0400 Received: from muru.com ([72.249.23.125] helo=baageli.muru.com) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1OWRBB-000JpC-SU; Wed, 07 Jul 2010 09:44:34 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 72.249.23.125 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+HvB93dW01SAw14AK/ZVGf Subject: [PATCH 09/13] tsl2563 ALS support for Nokia N900 To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: linux-omap@vger.kernel.org, Ameya Palande Date: Wed, 07 Jul 2010 12:44:32 +0300 Message-ID: <20100707094432.2562.30773.stgit@baageli.muru.com> In-Reply-To: <20100707094308.2562.91921.stgit@baageli.muru.com> References: <20100707094308.2562.91921.stgit@baageli.muru.com> User-Agent: StGit/0.15 MIME-Version: 1.0 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, 07 Jul 2010 09:44:36 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 3c3f975..3ae3591 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 @@ -68,6 +69,10 @@ static struct omap2_mcspi_device_config tsc2005_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", @@ -707,6 +712,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[] = {