From: hwg Date: Fri, 7 Dec 2012 03:33:37 +0000 (+0800) Subject: add standard wifi power control X-Git-Tag: firefly_0821_release~8129 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=92bcba8e2bc543510fdcd2eb56dd6dae7886c2b6;p=firefly-linux-kernel-4.4.55.git add standard wifi power control --- diff --git a/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c b/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c index 5faf67660da5..f362e7688f52 100755 --- a/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c +++ b/arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c @@ -1513,7 +1513,7 @@ int rk29sdk_wifi_power(int on) pr_info("%s: %d\n", __func__, on); if (on){ #if defined(CONFIG_USB_WIFI_POWER_CONTROLED_BY_GPIO) - gpio_set_value(RK30SDK_WIFI_GPIO_POWER_N, RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE); + gpio_set_value(rk_platform_wifi_gpio.power_n.io, rk_platform_wifi_gpio.power_n.enable); mdelay(100); #else if(usbwifi_power_status == 1) { @@ -1526,7 +1526,7 @@ int rk29sdk_wifi_power(int on) pr_info("wifi turn on power\n"); }else{ #if defined(CONFIG_USB_WIFI_POWER_CONTROLED_BY_GPIO) - gpio_set_value(RK30SDK_WIFI_GPIO_POWER_N, !RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE); + gpio_set_value(rk_platform_wifi_gpio.power_n.io, !(rk_platform_wifi_gpio.power_n.enable)); mdelay(100); #else rkusb_wifi_power(0);