checkout gpio for phonesdk board
authorlyx <lyx@rock-chips.com>
Fri, 25 Feb 2011 02:35:42 +0000 (18:35 -0800)
committerlyx <lyx@rock-chips.com>
Fri, 25 Feb 2011 02:36:10 +0000 (18:36 -0800)
arch/arm/configs/rk29_phonesdk_defconfig
arch/arm/mach-rk29/board-rk29-phonesdk.c

index 8e7a1eb7dd887185d2989239fda66f8ed2152236..845152b37a8eb898c968667dab68bc2428c56eed 100755 (executable)
@@ -692,7 +692,7 @@ CONFIG_PHYLIB=y
 CONFIG_NET_ETHERNET=y
 CONFIG_MII=y
 # CONFIG_AX88796 is not set
-CONFIG_RK29_VMAC=y
+# CONFIG_RK29_VMAC is not set
 # CONFIG_SMC91X is not set
 # CONFIG_DM9000 is not set
 # CONFIG_ETHOC is not set
index 6533da71ed2c0500bcf469b94ffbfe11a7529c4b..cab099ae14c53710ae0a4e0b988037a0f341b1d7 100755 (executable)
@@ -311,7 +311,7 @@ static struct platform_device rk29_v4l2_output_devce = {
 /*HANNSTAR_P1003 touch*/
 #if defined (CONFIG_HANNSTAR_P1003)
 #define TOUCH_RESET_PIN RK29_PIN6_PC3
-#define TOUCH_INT_PIN   RK29_PIN0_PA2
+#define TOUCH_INT_PIN   RK29_PIN4_PD5
 
 int p1003_init_platform_hw(void)
 {
@@ -345,7 +345,7 @@ struct p1003_platform_data p1003_info = {
 #endif
 #if defined (CONFIG_EETI_EGALAX)
 #define TOUCH_RESET_PIN RK29_PIN6_PC3
-#define TOUCH_INT_PIN   RK29_PIN0_PA2
+#define TOUCH_INT_PIN   RK29_PIN4_PD5
 
 static int EETI_EGALAX_init_platform_hw(void)
 {
@@ -379,7 +379,7 @@ static struct eeti_egalax_platform_data eeti_egalax_info = {
 #endif
 /*MMA8452 gsensor*/
 #if defined (CONFIG_GS_MMA8452)
-#define MMA8452_INT_PIN   RK29_PIN0_PA3
+#define MMA8452_INT_PIN   RK29_PIN6_PC4
 
 static int mma8452_init_platform_hw(void)
 {
@@ -549,6 +549,14 @@ static struct i2c_board_info __initdata board_i2c0_devices[] = {
                .irq            = RK29_PIN4_PD3,
        },
 #endif
+#if defined (CONFIG_ANX7150)
+    {
+               .type           = "anx7150",
+        .addr           = 0x39,             //0x39, 0x3d
+        .flags          = 0,
+        .irq            = RK29_PIN2_PA3,
+    },
+#endif
 };
 #endif
 
@@ -561,14 +569,6 @@ static struct i2c_board_info __initdata board_i2c1_devices[] = {
                .flags                  = 0,
        },
 #endif
-#if defined (CONFIG_ANX7150)
-    {
-               .type           = "anx7150",
-        .addr           = 0x39,             //0x39, 0x3d
-        .flags          = 0,
-        .irq            = RK29_PIN1_PD7,
-    },
-#endif
 
 };
 #endif
@@ -589,7 +589,7 @@ static struct i2c_board_info __initdata board_i2c2_devices[] = {
       .type           = "egalax_i2c",
       .addr           = 0x04,
       .flags          = 0,
-      .irq            = RK29_PIN0_PA2,
+      .irq            = RK29_PIN4_PD5,
       .platform_data  = &eeti_egalax_info,
     },
 #endif
@@ -1184,7 +1184,7 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
 #ifdef CONFIG_WIFI_CONTROL_FUNC
 #define RK29SDK_WIFI_BT_GPIO_POWER_N       RK29_PIN5_PD6
 #define RK29SDK_WIFI_GPIO_RESET_N          RK29_PIN6_PC0
-#define RK29SDK_BT_GPIO_RESET_N            RK29_PIN6_PC4
+#define RK29SDK_BT_GPIO_RESET_N            RK29_PIN6_PC7
 
 static int rk29sdk_wifi_cd = 0;   /* wifi virtual 'card detect' status */
 static void (*wifi_status_cb)(int card_present, void *dev_id);
@@ -1573,9 +1573,10 @@ static struct platform_device *devices[] __initdata = {
 #endif
 };
 
+#ifdef CONFIG_RK29_VMAC
 /*****************************************************************************************
- * spi devices
- * author: cmc@rock-chips.com
+ * vmac devices
+ * author: lyx@rock-chips.com
  *****************************************************************************************/
 static int rk29_vmac_register_set(void)
 {
@@ -1634,6 +1635,7 @@ struct rk29_vmac_platform_data rk29_vmac_pdata = {
        .rmii_io_deinit = rk29_rmii_io_deinit,
        .rmii_power_control = rk29_rmii_power_control,
 };
+#endif
 
 /*****************************************************************************************
  * spi devices