[PATCH] Fix for the i2c initialiation error on 2430sdp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

The patch below fixes the i2c initialization error on 2430sdp.
Now lcd and keyboard is working fine on my 2430sdp board.

It was this commit abda15b1d2a48bb30dd79a7407d4ea8068975318
which introduced the new style i2c registration for 2430sdp(For other
omap boards also). The old style initialization was registering i2c bus 2
(High speed 2.6Mhz)first and bus 1(low speed 400Khz) next but the
commit changed the order in which registration is performed.
Out of my curiosity I just reordered and things started working.


I have attached the boot log also.

############################################################
>From 5cd28262527a268d0c7ee5f5054fc2c7d8f554fb Mon Sep 17 00:00:00 2001
From: arun <arunedarath@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Jun 2008 18:18:50 +0530
Subject: [PATCH] Fix for the i2c initialization error on 2430sdp


Signed-off-by: arun <arunedarath@xxxxxxxxxxxxxxxxxxxx>
---
 arch/arm/mach-omap2/board-2430sdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-2430sdp.c
b/arch/arm/mach-omap2/board-2430sdp.c
index e078a2a..97420f7 100644
--- a/arch/arm/mach-omap2/board-2430sdp.c
+++ b/arch/arm/mach-omap2/board-2430sdp.c
@@ -379,8 +379,8 @@ static struct omap_board_config_kernel
sdp2430_config[] __initdata = {

 static int __init omap2430_i2c_init(void)
 {
-	omap_register_i2c_bus(1, 400, NULL, 0);
 	omap_register_i2c_bus(2, 2600, NULL, 0);
+	omap_register_i2c_bus(1, 400, NULL, 0);
 	return 0;
 }

-- 
1.5.3.4


####################################################

Regards,
Arun C

Attachment: i2c_error_fix_boot_log
Description: Binary data


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux