From 92bcba8e2bc543510fdcd2eb56dd6dae7886c2b6 Mon Sep 17 00:00:00 2001 From: hwg Date: Fri, 7 Dec 2012 11:33:37 +0800 Subject: [PATCH] add standard wifi power control --- arch/arm/mach-rk2928/board-rk2928-sdk-sdmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1