From patchwork Mon Apr 12 04:31:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viral Mehta X-Patchwork-Id: 91944 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 o3C4VoOv023860 for ; Mon, 12 Apr 2010 04:31:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750927Ab0DLEbh (ORCPT ); Mon, 12 Apr 2010 00:31:37 -0400 Received: from mail142.messagelabs.com ([216.82.249.99]:41578 "EHLO mail142.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846Ab0DLEbg convert rfc822-to-8bit (ORCPT ); Mon, 12 Apr 2010 00:31:36 -0400 X-VirusChecked: Checked X-Env-Sender: Viral.Mehta@lntinfotech.com X-Msg-Ref: server-2.tower-142.messagelabs.com!1271046691!55340096!1 X-StarScan-Version: 6.2.4; banners=lntinfotech.com,-,- X-Originating-IP: [203.199.118.205] Received: (qmail 11634 invoked from network); 12 Apr 2010 04:31:34 -0000 Received: from unknown (HELO VSHINMSHTCAS01.vshodc.lntinfotech.com) (203.199.118.205) by server-2.tower-142.messagelabs.com with AES128-SHA encrypted SMTP; 12 Apr 2010 04:31:34 -0000 Received: from localhost.localdomain (172.17.109.9) by VSHINMSHTCAS01.vshodc.lntinfotech.com (172.17.24.112) with Microsoft SMTP Server id 8.2.176.0; Mon, 12 Apr 2010 10:01:30 +0530 From: To: linux-omap@vger.kernel.org CC: linux-usb@vger.kernel.org, Viral Mehta Subject: [PATCH] omap: Add I2C bus 1 initialisation Date: Mon, 12 Apr 2010 10:01:44 +0530 Message-ID: <1271046704-10444-1-git-send-email-viral.mehta@lntinfotech.com> X-Mailer: git-send-email 1.6.6 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]); Mon, 12 Apr 2010 04:31:50 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 01d113f..346e1d2 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -174,9 +174,17 @@ static struct i2c_board_info __initdata sdp2430_i2c_boardinfo[] = { }, }; +static struct i2c_board_info __initdata sdp2430_i2c1_boardinfo[] = { + { + I2C_BOARD_INFO("isp1301_omap", 0x2D), + .flags = I2C_CLIENT_WAKE, + .irq = OMAP_GPIO_IRQ(78), + }, +} static int __init omap2430_i2c_init(void) { - omap_register_i2c_bus(1, 400, NULL, 0); + omap_register_i2c_bus(1, 100, sdp2430_i2c1_boardinfo, + ARRAY_SIZE(sdp2430_i2c1_boardinfo)); omap_register_i2c_bus(2, 2600, sdp2430_i2c_boardinfo, ARRAY_SIZE(sdp2430_i2c_boardinfo)); return 0;