Release 4.7 drivers/staging/rtl8723au/hal/odm_RegConfig8723A.c
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
******************************************************************************/
#include "odm_precomp.h"
#include "usb_ops_linux.h"
void
odm_ConfigRFReg_8723A(
struct dm_odm_t *pDM_Odm,
u32 Addr,
u32 Data,
enum RF_RADIO_PATH RF_PATH,
u32 RegAddr
)
{
if (Addr == 0xfe) {
msleep(50);
} else if (Addr == 0xfd) {
mdelay(5);
} else if (Addr == 0xfc) {
mdelay(1);
} else if (Addr == 0xfb) {
udelay(50);
} else if (Addr == 0xfa) {
udelay(5);
} else if (Addr == 0xf9) {
udelay(1);
} else {
ODM_SetRFReg(pDM_Odm, RF_PATH, RegAddr, bRFRegOffsetMask, Data);
/* Add 1us delay between BB/RF register setting. */
udelay(1);
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
larry finger | larry finger | 128 | 100.00% | 1 | 100.00% |
| Total | 128 | 100.00% | 1 | 100.00% |
void odm_ConfigMAC_8723A(struct dm_odm_t *pDM_Odm, u32 addr, u8 data)
{
rtl8723au_write8(pDM_Odm->Adapter, addr, data);
ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
("===> %s: [MAC_REG] %08X %08X\n", __func__, addr, data));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
larry finger | larry finger | 34 | 73.91% | 1 | 50.00% |
jes sorensen | jes sorensen | 12 | 26.09% | 1 | 50.00% |
| Total | 46 | 100.00% | 2 | 100.00% |
void odm_ConfigBB_AGC_8723A(struct dm_odm_t *pDM_Odm, u32 addr, u32 data)
{
rtl8723au_write32(pDM_Odm->Adapter, addr, data);
/* Add 1us delay between BB/RF register setting. */
udelay(1);
ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
("===> %s: [AGC_TAB] %08X %08X\n", __func__, addr, data));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
larry finger | larry finger | 39 | 75.00% | 1 | 50.00% |
jes sorensen | jes sorensen | 13 | 25.00% | 1 | 50.00% |
| Total | 52 | 100.00% | 2 | 100.00% |
void
odm_ConfigBB_PHY_8723A(struct dm_odm_t *pDM_Odm, u32 addr, u32 data)
{
if (addr == 0xfe)
msleep(50);
else if (addr == 0xfd)
mdelay(5);
else if (addr == 0xfc)
mdelay(1);
else if (addr == 0xfb)
udelay(50);
else if (addr == 0xfa)
udelay(5);
else if (addr == 0xf9)
udelay(1);
else if (addr == 0xa24)
pDM_Odm->RFCalibrateInfo.RegA24 = data;
rtl8723au_write32(pDM_Odm->Adapter, addr, data);
/* Add 1us delay between BB/RF register setting. */
udelay(1);
ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
("===> %s: [PHY_REG] %08X %08X\n", __func__, addr, data));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
larry finger | larry finger | 118 | 85.51% | 1 | 50.00% |
jes sorensen | jes sorensen | 20 | 14.49% | 1 | 50.00% |
| Total | 138 | 100.00% | 2 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
larry finger | larry finger | 323 | 87.06% | 1 | 25.00% |
jes sorensen | jes sorensen | 48 | 12.94% | 3 | 75.00% |
| Total | 371 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.