diff mbox

[1/4-V1] AM3517: Enable basic I2C Support

Message ID 1263190802-1101-2-git-send-email-hvaibhav@ti.com (mailing list archive)
State Accepted
Commit a9eb689a1f53707456bb9d0c867b80088f165058
Delegated to: Tony Lindgren
Headers show

Commit Message

Vaibhav Hiremath Jan. 11, 2010, 6:19 a.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 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));