From patchwork Sat Sep 25 00:27:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 208052 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8P0RJUu015505 for ; Sat, 25 Sep 2010 00:27:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754865Ab0IYA1N (ORCPT ); Fri, 24 Sep 2010 20:27:13 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:61212 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752518Ab0IYA1M (ORCPT ); Fri, 24 Sep 2010 20:27:12 -0400 Received: from c-67-188-36-105.hsd1.ca.comcast.net ([67.188.36.105] helo=baageli.muru.com) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1OzIbg-000076-1m; Sat, 25 Sep 2010 00:27:12 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.188.36.105 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/9cU7EG/7QZ573WE6ceswy Subject: [PATCH 5/7] Adding i2c eeprom driver to read EDID To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: Mathieu Poirier , linux-omap@vger.kernel.org Date: Fri, 24 Sep 2010 17:27:15 -0700 Message-ID: <20100925002715.24551.94749.stgit@baageli.muru.com> In-Reply-To: <20100925002608.24551.67183.stgit@baageli.muru.com> References: <20100925002608.24551.67183.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 (demeter1.kernel.org [140.211.167.41]); Sat, 25 Sep 2010 00:27:21 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 5534841..e27f3bf 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -412,13 +412,19 @@ static struct i2c_board_info __initdata beagle_i2c_boardinfo[] = { }, }; +static struct i2c_board_info __initdata beagle_i2c_eeprom[] = { + { + I2C_BOARD_INFO("eeprom", 0x50), + }, +}; + static int __init omap3_beagle_i2c_init(void) { omap_register_i2c_bus(1, 2600, beagle_i2c_boardinfo, ARRAY_SIZE(beagle_i2c_boardinfo)); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don't work reliably with 400kHz */ - omap_register_i2c_bus(3, 100, NULL, 0); + omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom)); return 0; }