SDMMC: to To shield some debugging code
authorxbw <xbw@rock-chips.com>
Sun, 9 Dec 2012 11:35:32 +0000 (19:35 +0800)
committerxbw <xbw@rock-chips.com>
Sun, 9 Dec 2012 11:35:32 +0000 (19:35 +0800)
arch/arm/mach-rk30/board-rk30-sdk.c
arch/arm/mach-rk30/board-rk3066b-m701.c
arch/arm/mach-rk30/board-rk3066b-sdk.c

index 3020c12edb4636086f9035e3169ca4319262783e..126f4e9f151f32f5f7fb7b0219218c54e0c5a7ab 100755 (executable)
@@ -1043,15 +1043,13 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
     #endif
 
     .det_pin_info = {    
-#if !defined(CONFIG_USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD)
+#if defined(CONFIG_USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD)
      #if defined(RK29SDK_SD_CARD_DETECT_N) || (INVALID_GPIO != RK29SDK_SD_CARD_DETECT_N)  
         .io             = RK29SDK_SD_CARD_DETECT_N,
      #else
          .io             = INVALID_GPIO,
      #endif   
-#else
-        .io             = INVALID_GPIO,
-#endif
+
         .enable         = RK29SDK_SD_CARD_INSERT_LEVEL,
         #ifdef RK29SDK_SD_CARD_DETECT_PIN_NAME
         .iomux          = {
@@ -1064,8 +1062,12 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
             #endif
         },
         #endif
-    }, 
-    
+ #else
+        .io             = INVALID_GPIO,
+        .enable         = GPIO_LOW,
+#endif
+    },
+   
        .enable_sd_wakeup = 0,
 };
 #endif //endif--#ifdef CONFIG_SDMMC1_RK29
index 62a65d671200a83335356621b37eae8879f407e3..a07470feb28be7b502e5a386aad08ae60bbe273f 100755 (executable)
@@ -1126,15 +1126,13 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
     #endif
 
     .det_pin_info = {    
-#if !defined(CONFIG_USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD)
+#if defined(CONFIG_USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD)
      #if defined(RK29SDK_SD_CARD_DETECT_N) || (INVALID_GPIO != RK29SDK_SD_CARD_DETECT_N)  
         .io             = RK29SDK_SD_CARD_DETECT_N,
      #else
          .io             = INVALID_GPIO,
      #endif   
-#else
-        .io             = INVALID_GPIO,
-#endif
+
         .enable         = RK29SDK_SD_CARD_INSERT_LEVEL,
         #ifdef RK29SDK_SD_CARD_DETECT_PIN_NAME
         .iomux          = {
@@ -1147,8 +1145,12 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
             #endif
         },
         #endif
-    }, 
-    
+ #else
+        .io             = INVALID_GPIO,
+        .enable         = GPIO_LOW,
+#endif
+    },
+   
        .enable_sd_wakeup = 0,
 };
 #endif //endif--#ifdef CONFIG_SDMMC1_RK29
index 4d7f31b6f4bd57031c37b1fc8e5a1b37a34d6481..e63803a73468fc447627aa923eaecdf15a967f43 100755 (executable)
@@ -969,15 +969,13 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
     #endif
 
     .det_pin_info = {    
-#if !defined(CONFIG_USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD)
+#if defined(CONFIG_USE_SDMMC1_FOR_WIFI_DEVELOP_BOARD)
      #if defined(RK29SDK_SD_CARD_DETECT_N) || (INVALID_GPIO != RK29SDK_SD_CARD_DETECT_N)  
         .io             = RK29SDK_SD_CARD_DETECT_N,
      #else
          .io             = INVALID_GPIO,
      #endif   
-#else
-        .io             = INVALID_GPIO,
-#endif
+
         .enable         = RK29SDK_SD_CARD_INSERT_LEVEL,
         #ifdef RK29SDK_SD_CARD_DETECT_PIN_NAME
         .iomux          = {
@@ -990,8 +988,12 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
             #endif
         },
         #endif
-    }, 
-    
+ #else
+        .io             = INVALID_GPIO,
+        .enable         = GPIO_LOW,
+#endif
+    },
+   
        .enable_sd_wakeup = 0,
 };
 #endif //endif--#ifdef CONFIG_SDMMC1_RK29