From patchwork Thu Oct 29 18:52:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aggarwal, Anuj" X-Patchwork-Id: 56501 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9TIr2nk028879 for ; Thu, 29 Oct 2009 18:53:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755812AbZJ2Swz (ORCPT ); Thu, 29 Oct 2009 14:52:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755856AbZJ2Swz (ORCPT ); Thu, 29 Oct 2009 14:52:55 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:36049 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755805AbZJ2Swz (ORCPT ); Thu, 29 Oct 2009 14:52:55 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n9TIqqtu014717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Oct 2009 13:52:55 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n9TIqpco010725; Fri, 30 Oct 2009 00:22:51 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id n9TIqppT030479; Fri, 30 Oct 2009 00:22:51 +0530 Received: (from a0393534@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id n9TIqpmh030476; Fri, 30 Oct 2009 00:22:51 +0530 From: Anuj Aggarwal To: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org Cc: broonie@opensource.wolfsonmicro.com, tony@atomide.com, Anuj Aggarwal Subject: [PATCH 3/4] Audio: Modifying board-evm file for audio codec Date: Fri, 30 Oct 2009 00:22:51 +0530 Message-Id: <1256842371-30447-1-git-send-email-anuj.aggarwal@ti.com> X-Mailer: git-send-email 1.6.2.4 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 23cf949..5f5f3ee 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c @@ -30,6 +30,25 @@ #include /* + * I2C + */ +static struct i2c_board_info __initdata am3517evm_i2c_boardinfo[] = { + { + I2C_BOARD_INFO("tlv320aic23", 0x1A), + }, +}; + +static int __init am3517_evm_i2c_init(void) +{ + omap_register_i2c_bus(1, 400, NULL, 0); + omap_register_i2c_bus(2, 400, am3517evm_i2c_boardinfo, + ARRAY_SIZE(am3517evm_i2c_boardinfo)); + omap_register_i2c_bus(3, 400, NULL, 0); + + return 0; +} + +/* * Board initialization */ static struct omap_board_config_kernel am3517_evm_config[] __initdata = { @@ -50,6 +69,8 @@ static void __init am3517_evm_init_irq(void) static void __init am3517_evm_init(void) { + am3517_evm_i2c_init(); + platform_add_devices(am3517_evm_devices, ARRAY_SIZE(am3517_evm_devices));