diff mbox

[3/4] Audio: Modifying board-evm file for audio codec

Message ID 1256842371-30447-1-git-send-email-anuj.aggarwal@ti.com (mailing list archive)
State Changes Requested, archived
Delegated to: Tony Lindgren
Headers show

Commit Message

Aggarwal, Anuj Oct. 29, 2009, 6:52 p.m. UTC
None
diff mbox

Patch

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 <plat/common.h>
 
 /*
+ * 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));