wifi: add usb wifi power control
authorhwg <hwg@rock-chips.com>
Tue, 11 Sep 2012 10:42:27 +0000 (18:42 +0800)
committerhwg <hwg@rock-chips.com>
Tue, 11 Sep 2012 10:42:27 +0000 (18:42 +0800)
drivers/net/wireless/rkusbwifi/wifi_power.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 1b34236..68a9abd
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/jiffies.h>
-
+#include <mach/gpio.h>
+#include <mach/iomux.h>
 #include "wifi_power.h"
 
+
 /*
  * rtw_channel_plan : The initialization parameter of wifi channel,
  *                                       Allow number is "0" "2" and "5".
@@ -43,14 +45,13 @@ struct wifi_power power_gpio =
        //POWER_USE_GPIO, POWER_GPIO_IOMUX, 
        //GPIO5D6_SDMMC1PWREN_NAME, GPIO5H_GPIO5D6, RK29_PIN5_PD6, GPIO_HIGH 
 
-#define GPIO_WIFI_POWER       RK29_PIN6_PC0
-
-       // YIFANG M803
-       //POWER_USE_GPIO, 0, 
-       //0, 0, GPIO_WIFI_POWER, GPIO_HIGH
-       
-       //SDK
-               POWER_NOT_USE_GPIO, 0, 0, 0, 0, 0 
+#if defined(CONFIG_ARCH_RK3066B)
+  //RK3066B M701
+       POWER_USE_GPIO, 0, 
+       0, 0, RK30_PIN3_PD0, GPIO_HIGH
+#else
+       POWER_NOT_USE_GPIO, 0, 0, 0, 0, 0 
+#endif 
 };
 
 /*