From: hwg Date: Tue, 11 Sep 2012 10:42:27 +0000 (+0800) Subject: wifi: add usb wifi power control X-Git-Tag: firefly_0821_release~8652 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3007ce0c88743b1b378c18a35b1049391cef01c8;p=firefly-linux-kernel-4.4.55.git wifi: add usb wifi power control --- diff --git a/drivers/net/wireless/rkusbwifi/wifi_power.c b/drivers/net/wireless/rkusbwifi/wifi_power.c old mode 100644 new mode 100755 index 1b342364acc7..68a9abd981a5 --- a/drivers/net/wireless/rkusbwifi/wifi_power.c +++ b/drivers/net/wireless/rkusbwifi/wifi_power.c @@ -11,9 +11,11 @@ #include #include #include - +#include +#include #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 }; /*