switch ctp touchpannel to i2c0
authorroot <root@nzy.(none)>
Thu, 2 Sep 2010 03:03:25 +0000 (11:03 +0800)
committerroot <root@nzy.(none)>
Thu, 2 Sep 2010 03:03:25 +0000 (11:03 +0800)
arch/arm/mach-rk2818/board-raho.c

index 06719e7c2e7395bdfc987644a5d3a01505130274..e2bbc9e20a4d1ef72ab23a74893016743fd63b08 100755 (executable)
@@ -652,7 +652,15 @@ static struct i2c_board_info __initdata board_i2c0_devices[] = {
                .addr           = 0x1a,
                .flags                  = 0,
        }
-#endif 
+#endif
+#if defined (CONFIG_TOUCHSCREEN_IT7250)  //add by robert for ctp_it7250
+    {
+        .type           = "Ctp_it7250",
+        .addr           = 0x46,
+        .flags          = 0,
+        .irq            = RK2818_PIN_PE1,
+    },
+#endif  //end add      
 };
 static struct i2c_board_info __initdata board_i2c1_devices[] = {
 #if defined (CONFIG_RTC_HYM8563)
@@ -701,15 +709,7 @@ static struct i2c_board_info __initdata board_i2c1_devices[] = {
                .platform_data = &rk2818_gs_platdata,
     },
 #endif
-#if defined (CONFIG_TOUCHSCREEN_IT7250)  //add by robert for ctp_it7250
-    {
-        .type           = "Ctp_it7250",
-        .addr           = 0x46,
-        .flags          = 0,
-        .irq            = RK2818_PIN_PE1,
-    },
-#endif  //end add
-       {},
+
 };
 
 static struct i2c_board_info __initdata board_i2c2_devices[] = {