From patchwork Mon Jan 11 06:19:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 72101 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.2) with ESMTP id o0B6KDkm003004 for ; Mon, 11 Jan 2010 06:20:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751589Ab0AKGUN (ORCPT ); Mon, 11 Jan 2010 01:20:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751633Ab0AKGUL (ORCPT ); Mon, 11 Jan 2010 01:20:11 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:40124 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509Ab0AKGUJ (ORCPT ); Mon, 11 Jan 2010 01:20:09 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o0B6K4ca002572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jan 2010 00:20:07 -0600 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o0B6K2B5019429; Mon, 11 Jan 2010 11:50:04 +0530 (IST) From: hvaibhav@ti.com To: linux-omap@vger.kernel.org Cc: tony@atomide.com, khilman@deeprootsystems.com, Vaibhav Hiremath Subject: [PATCH 1/4-V1] AM3517: Enable basic I2C Support Date: Mon, 11 Jan 2010 11:49:59 +0530 Message-Id: <1263190802-1101-2-git-send-email-hvaibhav@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: References: Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 8cce7d1..300b165 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c @@ -33,6 +33,15 @@ #include "mux.h" +static int __init am3517_evm_i2c_init(void) +{ + omap_register_i2c_bus(1, 400, NULL, 0); + omap_register_i2c_bus(2, 400, NULL, 0); + omap_register_i2c_bus(3, 400, NULL, 0); + + return 0; +} + /* * Board initialization */ @@ -73,6 +82,8 @@ static struct omap_board_mux board_mux[] __initdata = { static void __init am3517_evm_init(void) { + am3517_evm_i2c_init(); + omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); platform_add_devices(am3517_evm_devices, ARRAY_SIZE(am3517_evm_devices));