From: gwl Date: Sat, 4 May 2013 09:16:21 +0000 (+0800) Subject: add rtl8189es wifi support. X-Git-Tag: firefly_0821_release~7168 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eedc054921af47562af2df135c1cd247f313add0;p=firefly-linux-kernel-4.4.55.git add rtl8189es wifi support. --- diff --git a/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c b/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c index 7a68fc61e579..e99918c8e635 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c +++ b/arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c @@ -138,7 +138,7 @@ #define RK30SDK_WIFI_GPIO_POWER_PIN_NAME "wifi_power" #define RK30SDK_WIFI_GPIO_POWER_IOMUX_FGPIO GPIO3_D0 - #elif defined(CONFIG_BCM4329) || defined(CONFIG_BCM4319) || defined(CONFIG_RKWIFI) + #elif defined(CONFIG_BCM4329) || defined(CONFIG_BCM4319) || defined(CONFIG_RKWIFI) || defined(CONFIG_RTL8189ES) #define RK30SDK_WIFI_GPIO_POWER_N RK30_PIN3_PD0 #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_HIGH #define RK30SDK_WIFI_GPIO_POWER_PIN_NAME "wifi_power" @@ -178,7 +178,7 @@ #elif defined(CONFIG_ARCH_RK2928) //refer to file ./arch/arm/mach-rk2928/include/mach/iomux.h #define WIFI_HOST_WAKE RK2928_PIN3_PC0 - #if defined(CONFIG_RKWIFI) || defined(CONFIG_BCM4329) || defined(CONFIG_BCM4319) + #if defined(CONFIG_RKWIFI) || defined(CONFIG_BCM4329) || defined(CONFIG_BCM4319) || defined(CONFIG_RTL8189ES) #define RK30SDK_WIFI_GPIO_POWER_N RK2928_PIN0_PD6 #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_HIGH #define RK30SDK_WIFI_GPIO_POWER_PIN_NAME GPIO0D6_MMC1_PWREN_NAME @@ -214,7 +214,8 @@ // refer to file /arch/arm/mach-rk30/include/mach/Iomux.h #define WIFI_HOST_WAKE RK30_PIN3_PD2 - #if defined(CONFIG_RKWIFI) || defined(CONFIG_RTL8192CU) || defined(CONFIG_RTL8188EU) || defined(CONFIG_RTL8723AU) + #if defined(CONFIG_RKWIFI) || defined(CONFIG_RTL8192CU) || defined(CONFIG_RTL8188EU) || defined(CONFIG_RTL8723AU) \ + || defined(CONFIG_RTL8189ES) //power #define RK30SDK_WIFI_GPIO_POWER_N RK30_PIN3_PD0 #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_HIGH diff --git a/arch/arm/mach-rk3188/board-rk3188-ds1006h-sdmmc-config.c b/arch/arm/mach-rk3188/board-rk3188-ds1006h-sdmmc-config.c index ddb94090de73..c4ff14dd26a2 100644 --- a/arch/arm/mach-rk3188/board-rk3188-ds1006h-sdmmc-config.c +++ b/arch/arm/mach-rk3188/board-rk3188-ds1006h-sdmmc-config.c @@ -74,7 +74,9 @@ int rk31sdk_get_sdmmc0_pin_io_voltage(void) #define RK30SDK_WIFI_GPIO_POWER_N RK30_PIN3_PD0 #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_LOW//GPIO_HIGH -#elif defined(CONFIG_BCM4329) || defined(CONFIG_BCM4319) || defined(CONFIG_RKWIFI) +#elif defined(CONFIG_BCM4329) || defined(CONFIG_BCM4319) || defined(CONFIG_RKWIFI) \ + || defined(CONFIG_RTL8189ES) + #define RK30SDK_WIFI_GPIO_POWER_N RK30_PIN3_PD0 #define RK30SDK_WIFI_GPIO_POWER_ENABLE_VALUE GPIO_HIGH @@ -153,7 +155,7 @@ int rk31sdk_get_sdio_wifi_voltage(void) voltage = 2800 ; //power 1800V #elif defined(CONFIG_MT6620) voltage = 2800 ; //power 2800V -#elif defined(CONFIG_RDA5990)||defined(CONFIG_RTL8723AS) +#elif defined(CONFIG_RDA5990)||defined(CONFIG_RTL8723AS) || defined(CONFIG_RTL8189ES) voltage = 3300 ; //power 3300V #else //default, sdio use 3.0V diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index 80035535f87f..704934e26c87 100755 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig @@ -93,6 +93,16 @@ choice (3) USI WM-G-MR-09 (4) Murata SP-8HEP-P + config RTL8189ES + tristate "Realtek 8189ES SDIO WiFi Support" + depends on WLAN_80211 && MMC + select WIRELESS_EXT + select WEXT_PRIV + select IEEE80211 + select CFG80211 + select MAC80211 + ---help--- + source "drivers/net/wireless/mt5931/Kconfig" source "drivers/net/wireless/rkusbwifi/rtl8192cu/Kconfig" source "drivers/net/wireless/rkusbwifi/rtl8188eu/Kconfig" diff --git a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c index e3c9832fc847..28678124061d 100755 --- a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c +++ b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c @@ -37,6 +37,11 @@ static ssize_t wifi_chip_read(struct class *cls, char *_buf) printk("Current WiFi chip is RTL8723AU.\n"); #endif +#ifdef CONFIG_RTL8189ES + count = sprintf(_buf, "%s", "RTL8189ES"); + printk("Current WiFi chip is RTL8189ES.\n"); +#endif + #ifdef CONFIG_BCM4330 count = sprintf(_buf, "%s", "BCM4330"); printk("Current WiFi chip is BCM4330.\n");