Skip to content

Commit

Permalink
rtlwifi: rtl8723ae: rtl8723-common: Create new driver for common code
Browse files Browse the repository at this point in the history
The drivers for RTL8723AE and RTL8723BE have some code in common.
This commit creates a driver for this code that will be shared, and
copies those common routines from rtl8723ae's phy code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Larry Finger authored and John W. Linville committed Mar 4, 2014
1 parent 2cddad3 commit 0a168b4
Show file tree
Hide file tree
Showing 10 changed files with 555 additions and 469 deletions.
6 changes: 6 additions & 0 deletions drivers/net/wireless/rtlwifi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ config RTL8723AE
depends on PCI
select RTLWIFI
select RTLWIFI_PCI
select RTL8723_COMMON
select RTLBTCOEXIST
---help---
This is the driver for Realtek RTL8723AE 802.11n PCIe
Expand Down Expand Up @@ -102,6 +103,11 @@ config RTL8192C_COMMON
depends on RTL8192CE || RTL8192CU
default y

config RTL8723_COMMON
tristate
depends on RTL8723AE
default y

config RTLBTCOEXIST
tristate
depends on RTL8723AE
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/rtlwifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ obj-$(CONFIG_RTL8192DE) += rtl8192de/
obj-$(CONFIG_RTL8723AE) += rtl8723ae/
obj-$(CONFIG_RTL8188EE) += rtl8188ee/
obj-$(CONFIG_RTLBTCOEXIST) += btcoexist/
obj-$(CONFIG_RTL8723_COMMON) += rtl8723com/

ccflags-y += -D__CHECK_ENDIAN__
7 changes: 4 additions & 3 deletions drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "hal_btc.h"
#include "../pci.h"
#include "phy.h"
#include "../rtl8723com/phy_common.h"
#include "fw.h"
#include "reg.h"
#include "def.h"
Expand Down Expand Up @@ -391,13 +392,13 @@ static void rtl8723ae_dm_bt_set_sw_full_time_dac_swing(struct ieee80211_hw *hw,
if (sw_dac_swing_on) {
RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_TRACE,
"[BTCoex], SwDacSwing = 0x%x\n", sw_dac_swing_lvl);
rtl8723ae_phy_set_bb_reg(hw, 0x880, 0xff000000,
sw_dac_swing_lvl);
rtl8723_phy_set_bb_reg(hw, 0x880, 0xff000000,
sw_dac_swing_lvl);
rtlpcipriv->bt_coexist.sw_coexist_all_off = false;
} else {
RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_TRACE,
"[BTCoex], SwDacSwing Off!\n");
rtl8723ae_phy_set_bb_reg(hw, 0x880, 0xff000000, 0xc0);
rtl8723_phy_set_bb_reg(hw, 0x880, 0xff000000, 0xc0);
}
}

Expand Down
Loading

0 comments on commit 0a168b4

Please sign in to comment.