mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 15:44:18 +00:00
remove unused PGs
This commit is contained in:
parent
24ba6068a9
commit
479a4cb546
@ -3948,7 +3948,7 @@ odm_read_and_config_mp_8814a_phy_reg_pg(
|
||||
/******************************************************************************
|
||||
* PHY_REG_PG_Type2.TXT
|
||||
******************************************************************************/
|
||||
|
||||
/*
|
||||
u32 Array_MP_8814A_PHY_REG_PG_Type2[] = {
|
||||
0, 0, 0, 0x00000c20, 0xffffffff, 0x36363636,
|
||||
0, 0, 0, 0x00000c24, 0xffffffff, 0x36363636,
|
||||
@ -4129,7 +4129,8 @@ _odm_read_and_config_mp_8814a_phy_reg_pg_type2(
|
||||
* PHY_REG_PG_Type3.TXT
|
||||
******************************************************************************/
|
||||
|
||||
u32 Array_MP_8814A_PHY_REG_PG_Type3[] = {
|
||||
/*
|
||||
u32 Array_MP_8814A_PHY_REG_PG_Type3[] = {
|
||||
0, 0, 0, 0x00000c20, 0xffffffff, 0x48484848,
|
||||
0, 0, 0, 0x00000c24, 0xffffffff, 0x46464646,
|
||||
0, 0, 0, 0x00000c28, 0xffffffff, 0x44464646,
|
||||
@ -4302,187 +4303,7 @@ _odm_read_and_config_mp_8814a_phy_reg_pg_type3(
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* PHY_REG_PG_Type5.TXT
|
||||
******************************************************************************/
|
||||
|
||||
u32 Array_MP_8814A_PHY_REG_PG_Type5[] = {
|
||||
0, 0, 0, 0x00000c20, 0xffffffff, 0x48484848,
|
||||
0, 0, 0, 0x00000c24, 0xffffffff, 0x46464646,
|
||||
0, 0, 0, 0x00000c28, 0xffffffff, 0x44464646,
|
||||
0, 0, 0, 0x00000c2c, 0xffffffff, 0x46464646,
|
||||
0, 0, 0, 0x00000c30, 0xffffffff, 0x42444646,
|
||||
0, 0, 1, 0x00000c34, 0xffffffff, 0x44444444,
|
||||
0, 0, 1, 0x00000c38, 0xffffffff, 0x40424444,
|
||||
0, 0, 2, 0x00000cd8, 0xffffffff, 0x42424242,
|
||||
0, 0, 2, 0x00000cdc, 0xffffffff, 0x38404242,
|
||||
0, 0, 0, 0x00000c3c, 0xffffffff, 0x46464646,
|
||||
0, 0, 0, 0x00000c40, 0xffffffff, 0x42444646,
|
||||
0, 0, 0, 0x00000c44, 0xffffffff, 0x44444040,
|
||||
0, 0, 1, 0x00000c48, 0xffffffff, 0x44444444,
|
||||
0, 0, 1, 0x00000c4c, 0xffffffff, 0x38384042,
|
||||
0, 0, 2, 0x00000ce0, 0xffffffff, 0x42424242,
|
||||
0, 0, 2, 0x00000ce4, 0xffffffff, 0x38404242,
|
||||
0, 0, 2, 0x00000ce8, 0x0000ffff, 0x20203636,
|
||||
0, 1, 0, 0x00000e20, 0xffffffff, 0x48484848,
|
||||
0, 1, 0, 0x00000e24, 0xffffffff, 0x46464646,
|
||||
0, 1, 0, 0x00000e28, 0xffffffff, 0x44464646,
|
||||
0, 1, 0, 0x00000e2c, 0xffffffff, 0x46464646,
|
||||
0, 1, 0, 0x00000e30, 0xffffffff, 0x42444646,
|
||||
0, 1, 1, 0x00000e34, 0xffffffff, 0x44444444,
|
||||
0, 1, 1, 0x00000e38, 0xffffffff, 0x40424444,
|
||||
0, 1, 2, 0x00000ed8, 0xffffffff, 0x42424242,
|
||||
0, 1, 2, 0x00000edc, 0xffffffff, 0x38404242,
|
||||
0, 1, 0, 0x00000e3c, 0xffffffff, 0x46464646,
|
||||
0, 1, 0, 0x00000e40, 0xffffffff, 0x42444646,
|
||||
0, 1, 0, 0x00000e44, 0xffffffff, 0x44444040,
|
||||
0, 1, 1, 0x00000e48, 0xffffffff, 0x44444444,
|
||||
0, 1, 1, 0x00000e4c, 0xffffffff, 0x38384042,
|
||||
0, 1, 2, 0x00000ee0, 0xffffffff, 0x42424242,
|
||||
0, 1, 2, 0x00000ee4, 0xffffffff, 0x38404242,
|
||||
0, 1, 2, 0x00000ee8, 0x0000ffff, 0x20203636,
|
||||
0, 2, 0, 0x00001820, 0xffffffff, 0x48484848,
|
||||
0, 2, 0, 0x00001824, 0xffffffff, 0x46464646,
|
||||
0, 2, 0, 0x00001828, 0xffffffff, 0x44464646,
|
||||
0, 2, 0, 0x0000182c, 0xffffffff, 0x46464646,
|
||||
0, 2, 0, 0x00001830, 0xffffffff, 0x42444646,
|
||||
0, 2, 1, 0x00001834, 0xffffffff, 0x44444444,
|
||||
0, 2, 1, 0x00001838, 0xffffffff, 0x40424444,
|
||||
0, 2, 2, 0x000018d8, 0xffffffff, 0x42424242,
|
||||
0, 2, 2, 0x000018dc, 0xffffffff, 0x38404242,
|
||||
0, 2, 0, 0x0000183c, 0xffffffff, 0x46464646,
|
||||
0, 2, 0, 0x00001840, 0xffffffff, 0x42444646,
|
||||
0, 2, 0, 0x00001844, 0xffffffff, 0x44444040,
|
||||
0, 2, 1, 0x00001848, 0xffffffff, 0x44444444,
|
||||
0, 2, 1, 0x0000184c, 0xffffffff, 0x38384042,
|
||||
0, 2, 2, 0x000018e0, 0xffffffff, 0x42424242,
|
||||
0, 2, 2, 0x000018e4, 0xffffffff, 0x38404242,
|
||||
0, 2, 2, 0x000018e8, 0x0000ffff, 0x20203636,
|
||||
0, 3, 0, 0x00001a20, 0xffffffff, 0x48484848,
|
||||
0, 3, 0, 0x00001a24, 0xffffffff, 0x46464646,
|
||||
0, 3, 0, 0x00001a28, 0xffffffff, 0x44464646,
|
||||
0, 3, 0, 0x00001a2c, 0xffffffff, 0x46464646,
|
||||
0, 3, 0, 0x00001a30, 0xffffffff, 0x42444646,
|
||||
0, 3, 1, 0x00001a34, 0xffffffff, 0x44444444,
|
||||
0, 3, 1, 0x00001a38, 0xffffffff, 0x40424444,
|
||||
0, 3, 2, 0x00001ad8, 0xffffffff, 0x42424242,
|
||||
0, 3, 2, 0x00001adc, 0xffffffff, 0x38404242,
|
||||
0, 3, 0, 0x00001a3c, 0xffffffff, 0x46464646,
|
||||
0, 3, 0, 0x00001a40, 0xffffffff, 0x42444646,
|
||||
0, 3, 0, 0x00001a44, 0xffffffff, 0x44444040,
|
||||
0, 3, 1, 0x00001a48, 0xffffffff, 0x44444444,
|
||||
0, 3, 1, 0x00001a4c, 0xffffffff, 0x38384042,
|
||||
0, 3, 2, 0x00001ae0, 0xffffffff, 0x42424242,
|
||||
0, 3, 2, 0x00001ae4, 0xffffffff, 0x38404242,
|
||||
0, 3, 2, 0x00001ae8, 0x0000ffff, 0x20203636,
|
||||
1, 0, 0, 0x00000c24, 0xffffffff, 0x46464646,
|
||||
1, 0, 0, 0x00000c28, 0xffffffff, 0x44464646,
|
||||
1, 0, 0, 0x00000c2c, 0xffffffff, 0x46464646,
|
||||
1, 0, 0, 0x00000c30, 0xffffffff, 0x42444646,
|
||||
1, 0, 1, 0x00000c34, 0xffffffff, 0x44444444,
|
||||
1, 0, 1, 0x00000c38, 0xffffffff, 0x40424444,
|
||||
1, 0, 2, 0x00000cd8, 0xffffffff, 0x42424242,
|
||||
1, 0, 2, 0x00000cdc, 0xffffffff, 0x38404242,
|
||||
1, 0, 0, 0x00000c3c, 0xffffffff, 0x46464646,
|
||||
1, 0, 0, 0x00000c40, 0xffffffff, 0x42444646,
|
||||
1, 0, 0, 0x00000c44, 0xffffffff, 0x44443840,
|
||||
1, 0, 1, 0x00000c48, 0xffffffff, 0x44444444,
|
||||
1, 0, 1, 0x00000c4c, 0xffffffff, 0x36384042,
|
||||
1, 0, 2, 0x00000ce0, 0xffffffff, 0x42424242,
|
||||
1, 0, 2, 0x00000ce4, 0xffffffff, 0x38404242,
|
||||
1, 0, 2, 0x00000ce8, 0x0000ffff, 0x20203436,
|
||||
1, 1, 0, 0x00000e24, 0xffffffff, 0x46464646,
|
||||
1, 1, 0, 0x00000e28, 0xffffffff, 0x44464646,
|
||||
1, 1, 0, 0x00000e2c, 0xffffffff, 0x46464646,
|
||||
1, 1, 0, 0x00000e30, 0xffffffff, 0x42444646,
|
||||
1, 1, 1, 0x00000e34, 0xffffffff, 0x44444444,
|
||||
1, 1, 1, 0x00000e38, 0xffffffff, 0x40424444,
|
||||
1, 1, 2, 0x00000ed8, 0xffffffff, 0x42424242,
|
||||
1, 1, 2, 0x00000edc, 0xffffffff, 0x38404242,
|
||||
1, 1, 0, 0x00000e3c, 0xffffffff, 0x46464646,
|
||||
1, 1, 0, 0x00000e40, 0xffffffff, 0x42444646,
|
||||
1, 1, 0, 0x00000e44, 0xffffffff, 0x44443840,
|
||||
1, 1, 1, 0x00000e48, 0xffffffff, 0x44444444,
|
||||
1, 1, 1, 0x00000e4c, 0xffffffff, 0x36384042,
|
||||
1, 1, 2, 0x00000ee0, 0xffffffff, 0x42424242,
|
||||
1, 1, 2, 0x00000ee4, 0xffffffff, 0x38404242,
|
||||
1, 1, 2, 0x00000ee8, 0x0000ffff, 0x20203436,
|
||||
1, 2, 0, 0x00001824, 0xffffffff, 0x46464646,
|
||||
1, 2, 0, 0x00001828, 0xffffffff, 0x44464646,
|
||||
1, 2, 0, 0x0000182c, 0xffffffff, 0x46464646,
|
||||
1, 2, 0, 0x00001830, 0xffffffff, 0x42444646,
|
||||
1, 2, 1, 0x00001834, 0xffffffff, 0x44444444,
|
||||
1, 2, 1, 0x00001838, 0xffffffff, 0x40424444,
|
||||
1, 2, 2, 0x000018d8, 0xffffffff, 0x42424242,
|
||||
1, 2, 2, 0x000018dc, 0xffffffff, 0x38404242,
|
||||
1, 2, 0, 0x0000183c, 0xffffffff, 0x46464646,
|
||||
1, 2, 0, 0x00001840, 0xffffffff, 0x42444646,
|
||||
1, 2, 0, 0x00001844, 0xffffffff, 0x44443840,
|
||||
1, 2, 1, 0x00001848, 0xffffffff, 0x44444444,
|
||||
1, 2, 1, 0x0000184c, 0xffffffff, 0x36384042,
|
||||
1, 2, 2, 0x000018e0, 0xffffffff, 0x42424242,
|
||||
1, 2, 2, 0x000018e4, 0xffffffff, 0x38404242,
|
||||
1, 2, 2, 0x000018e8, 0x0000ffff, 0x20203436,
|
||||
1, 3, 0, 0x00001a24, 0xffffffff, 0x46464646,
|
||||
1, 3, 0, 0x00001a28, 0xffffffff, 0x44464646,
|
||||
1, 3, 0, 0x00001a2c, 0xffffffff, 0x46464646,
|
||||
1, 3, 0, 0x00001a30, 0xffffffff, 0x42444646,
|
||||
1, 3, 1, 0x00001a34, 0xffffffff, 0x44444444,
|
||||
1, 3, 1, 0x00001a38, 0xffffffff, 0x40424444,
|
||||
1, 3, 2, 0x00001ad8, 0xffffffff, 0x42424242,
|
||||
1, 3, 2, 0x00001adc, 0xffffffff, 0x38404242,
|
||||
1, 3, 0, 0x00001a3c, 0xffffffff, 0x46464646,
|
||||
1, 3, 0, 0x00001a40, 0xffffffff, 0x42444646,
|
||||
1, 3, 0, 0x00001a44, 0xffffffff, 0x44443840,
|
||||
1, 3, 1, 0x00001a48, 0xffffffff, 0x44444444,
|
||||
1, 3, 1, 0x00001a4c, 0xffffffff, 0x36384042,
|
||||
1, 3, 2, 0x00001ae0, 0xffffffff, 0x42424242,
|
||||
1, 3, 2, 0x00001ae4, 0xffffffff, 0x38404242,
|
||||
1, 3, 2, 0x00001ae8, 0x0000ffff, 0x20203436
|
||||
};
|
||||
|
||||
void
|
||||
_odm_read_and_config_mp_8814a_phy_reg_pg_type5(
|
||||
struct dm_struct* pDM_Odm
|
||||
)
|
||||
{
|
||||
u32 i = 0;
|
||||
u32 ArrayLen = sizeof(Array_MP_8814A_PHY_REG_PG_Type5)/sizeof(u32);
|
||||
u32* Array = Array_MP_8814A_PHY_REG_PG_Type5;
|
||||
|
||||
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
|
||||
PADAPTER Adapter = pDM_Odm->Adapter;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||
|
||||
PlatformZeroMemory(pHalData->BufOfLinesPwrByRate, MAX_LINES_HWCONFIG_TXT*MAX_BYTES_LINE_HWCONFIG_TXT);
|
||||
pHalData->nLinesReadPwrByRate = ArrayLen/6;
|
||||
#endif
|
||||
|
||||
PHYDM_DBG(pDM_Odm, ODM_COMP_INIT, "===> ODM_ReadAndConfig_MP_8814A_PHY_REG_PG_Type5\n");
|
||||
|
||||
pDM_Odm->phy_reg_pg_version = 1;
|
||||
pDM_Odm->phy_reg_pg_value_type = PHY_REG_PG_RELATIVE_VALUE;
|
||||
|
||||
for (i = 0; i < ArrayLen; i += 6) {
|
||||
u32 v1 = Array[i];
|
||||
u32 v2 = Array[i+1];
|
||||
u32 v3 = Array[i+2];
|
||||
u32 v4 = Array[i+3];
|
||||
u32 v5 = Array[i+4];
|
||||
u32 v6 = Array[i+5];
|
||||
|
||||
odm_ConfigBB_PHY_REG_PG_8814A(pDM_Odm, v1, v2, v3, v4, v5, v6);
|
||||
|
||||
#if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
|
||||
rsprintf((char *)pHalData->BufOfLinesPwrByRate[i/6], 100, "%s, %s, %s, 0x%X, 0x%08X, 0x%08X,",
|
||||
(v1 == 0?"2.4G":" 5G"), (v2 == 0?"A":"B"), (v3 == 0?"1Tx":"2Tx"), v4, v5, v6);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#endif /* end of HWIMG_SUPPORT*/
|
||||
|
Loading…
Reference in New Issue
Block a user