Commit 6725e52d authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Eliminate ODM_SetBBReg()

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2635f19c
...@@ -909,13 +909,12 @@ void ODM_RF_Saving23a(struct dm_odm_t *pDM_Odm, u8 bForceInNormal) ...@@ -909,13 +909,12 @@ void ODM_RF_Saving23a(struct dm_odm_t *pDM_Odm, u8 bForceInNormal)
if (pDM_PSTable->initialize == 0) { if (pDM_PSTable->initialize == 0) {
pDM_PSTable->Reg874 = pDM_PSTable->Reg874 =
(rtl8723au_read32(adapter, 0x874) & 0x1CC000) >> 14; rtl8723au_read32(adapter, 0x874) & 0x1CC000;
pDM_PSTable->RegC70 = pDM_PSTable->RegC70 =
(rtl8723au_read32(adapter, 0xc70) & BIT(3)) >>3; rtl8723au_read32(adapter, 0xc70) & BIT(3);
pDM_PSTable->Reg85C = pDM_PSTable->Reg85C =
(rtl8723au_read32(adapter, 0x85c) & 0xFF000000) >> 24; rtl8723au_read32(adapter, 0x85c) & 0xFF000000;
pDM_PSTable->RegA74 = pDM_PSTable->RegA74 = rtl8723au_read32(adapter, 0xa74) & 0xF000;
(rtl8723au_read32(adapter, 0xa74) & 0xF000) >> 12;
pDM_PSTable->initialize = 1; pDM_PSTable->initialize = 1;
} }
...@@ -983,14 +982,22 @@ void ODM_RF_Saving23a(struct dm_odm_t *pDM_Odm, u8 bForceInNormal) ...@@ -983,14 +982,22 @@ void ODM_RF_Saving23a(struct dm_odm_t *pDM_Odm, u8 bForceInNormal)
val32 |= BIT(28); val32 |= BIT(28);
rtl8723au_write32(adapter, 0x818, val32); rtl8723au_write32(adapter, 0x818, val32);
} else { } else {
ODM_SetBBReg(pDM_Odm, 0x874, 0x1CC000, val32 = rtl8723au_read32(adapter, 0x874);
pDM_PSTable->Reg874); val32 |= pDM_PSTable->Reg874;
ODM_SetBBReg(pDM_Odm, 0xc70, BIT(3), rtl8723au_write32(adapter, 0x874, val32);
pDM_PSTable->RegC70);
ODM_SetBBReg(pDM_Odm, 0x85c, 0xFF000000, val32 = rtl8723au_read32(adapter, 0xc70);
pDM_PSTable->Reg85C); val32 |= pDM_PSTable->RegC70;
ODM_SetBBReg(pDM_Odm, 0xa74, 0xF000, rtl8723au_write32(adapter, 0xc70, val32);
pDM_PSTable->RegA74);
val32 = rtl8723au_read32(adapter, 0x85c);
val32 |= pDM_PSTable->Reg85C;
rtl8723au_write32(adapter, 0x85c, val32);
val32 = rtl8723au_read32(adapter, 0xa74);
val32 |= pDM_PSTable->RegA74;
rtl8723au_write32(adapter, 0xa74, val32);
val32 = rtl8723au_read32(adapter, 0x818); val32 = rtl8723au_read32(adapter, 0x818);
val32 &= ~BIT(28); val32 &= ~BIT(28);
rtl8723au_write32(adapter, 0x818, val32); rtl8723au_write32(adapter, 0x818, val32);
......
...@@ -23,18 +23,6 @@ ...@@ -23,18 +23,6 @@
/* */ /* */
#include <usb_ops_linux.h> #include <usb_ops_linux.h>
void ODM_SetBBReg(
struct dm_odm_t *pDM_Odm,
u32 RegAddr,
u32 BitMask,
u32 Data
)
{
struct rtw_adapter *Adapter = pDM_Odm->Adapter;
PHY_SetBBReg(Adapter, RegAddr, BitMask, Data);
}
void ODM_SetRFReg( void ODM_SetRFReg(
struct dm_odm_t *pDM_Odm, struct dm_odm_t *pDM_Odm,
enum RF_RADIO_PATH eRFPath, enum RF_RADIO_PATH eRFPath,
......
...@@ -54,7 +54,6 @@ typedef void (*RT_WORKITEM_CALL_BACK)(struct work_struct *pContext); ...@@ -54,7 +54,6 @@ typedef void (*RT_WORKITEM_CALL_BACK)(struct work_struct *pContext);
/* =========== EXtern Function Prototype */ /* =========== EXtern Function Prototype */
/* */ /* */
void ODM_SetBBReg(struct dm_odm_t *pDM_Odm, u32 RegAddr, u32 BitMask, u32 Data);
void ODM_SetRFReg(struct dm_odm_t *pDM_Odm, enum RF_RADIO_PATH eRFPath, void ODM_SetRFReg(struct dm_odm_t *pDM_Odm, enum RF_RADIO_PATH eRFPath,
u32 RegAddr, u32 BitMask, u32 Data); u32 RegAddr, u32 BitMask, u32 Data);
u32 ODM_GetRFReg(struct dm_odm_t *pDM_Odm, enum RF_RADIO_PATH eRFPath, u32 ODM_GetRFReg(struct dm_odm_t *pDM_Odm, enum RF_RADIO_PATH eRFPath,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment