}
}
}
-
-/******************************************************************************
-* PHY_REG_PG.TXT
-******************************************************************************/
-
-static u32 Array_PHY_REG_PG_8723A[] = {
- 0xE00, 0xFFFFFFFF, 0x0A0C0C0C,
- 0xE04, 0xFFFFFFFF, 0x02040608,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x0A0C0D0E,
- 0xE14, 0xFFFFFFFF, 0x02040608,
- 0xE18, 0xFFFFFFFF, 0x0A0C0D0E,
- 0xE1C, 0xFFFFFFFF, 0x02040608,
- 0x830, 0xFFFFFFFF, 0x0A0C0C0C,
- 0x834, 0xFFFFFFFF, 0x02040608,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x0A0C0D0E,
- 0x848, 0xFFFFFFFF, 0x02040608,
- 0x84C, 0xFFFFFFFF, 0x0A0C0D0E,
- 0x868, 0xFFFFFFFF, 0x02040608,
- 0xE00, 0xFFFFFFFF, 0x00000000,
- 0xE04, 0xFFFFFFFF, 0x00000000,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x00000000,
- 0xE14, 0xFFFFFFFF, 0x00000000,
- 0xE18, 0xFFFFFFFF, 0x00000000,
- 0xE1C, 0xFFFFFFFF, 0x00000000,
- 0x830, 0xFFFFFFFF, 0x00000000,
- 0x834, 0xFFFFFFFF, 0x00000000,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x00000000,
- 0x848, 0xFFFFFFFF, 0x00000000,
- 0x84C, 0xFFFFFFFF, 0x00000000,
- 0x868, 0xFFFFFFFF, 0x00000000,
- 0xE00, 0xFFFFFFFF, 0x04040404,
- 0xE04, 0xFFFFFFFF, 0x00020204,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x06060606,
- 0xE14, 0xFFFFFFFF, 0x00020406,
- 0xE18, 0xFFFFFFFF, 0x00000000,
- 0xE1C, 0xFFFFFFFF, 0x00000000,
- 0x830, 0xFFFFFFFF, 0x04040404,
- 0x834, 0xFFFFFFFF, 0x00020204,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x06060606,
- 0x848, 0xFFFFFFFF, 0x00020406,
- 0x84C, 0xFFFFFFFF, 0x00000000,
- 0x868, 0xFFFFFFFF, 0x00000000,
- 0xE00, 0xFFFFFFFF, 0x00000000,
- 0xE04, 0xFFFFFFFF, 0x00000000,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x00000000,
- 0xE14, 0xFFFFFFFF, 0x00000000,
- 0xE18, 0xFFFFFFFF, 0x00000000,
- 0xE1C, 0xFFFFFFFF, 0x00000000,
- 0x830, 0xFFFFFFFF, 0x00000000,
- 0x834, 0xFFFFFFFF, 0x00000000,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x00000000,
- 0x848, 0xFFFFFFFF, 0x00000000,
- 0x84C, 0xFFFFFFFF, 0x00000000,
- 0x868, 0xFFFFFFFF, 0x00000000,
- 0xE00, 0xFFFFFFFF, 0x00000000,
- 0xE04, 0xFFFFFFFF, 0x00000000,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x00000000,
- 0xE14, 0xFFFFFFFF, 0x00000000,
- 0xE18, 0xFFFFFFFF, 0x00000000,
- 0xE1C, 0xFFFFFFFF, 0x00000000,
- 0x830, 0xFFFFFFFF, 0x00000000,
- 0x834, 0xFFFFFFFF, 0x00000000,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x00000000,
- 0x848, 0xFFFFFFFF, 0x00000000,
- 0x84C, 0xFFFFFFFF, 0x00000000,
- 0x868, 0xFFFFFFFF, 0x00000000,
- 0xE00, 0xFFFFFFFF, 0x04040404,
- 0xE04, 0xFFFFFFFF, 0x00020204,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x00000000,
- 0xE14, 0xFFFFFFFF, 0x00000000,
- 0xE18, 0xFFFFFFFF, 0x00000000,
- 0xE1C, 0xFFFFFFFF, 0x00000000,
- 0x830, 0xFFFFFFFF, 0x04040404,
- 0x834, 0xFFFFFFFF, 0x00020204,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x00000000,
- 0x848, 0xFFFFFFFF, 0x00000000,
- 0x84C, 0xFFFFFFFF, 0x00000000,
- 0x868, 0xFFFFFFFF, 0x00000000,
- 0xE00, 0xFFFFFFFF, 0x00000000,
- 0xE04, 0xFFFFFFFF, 0x00000000,
- 0xE08, 0x0000FF00, 0x00000000,
- 0x86C, 0xFFFFFF00, 0x00000000,
- 0xE10, 0xFFFFFFFF, 0x00000000,
- 0xE14, 0xFFFFFFFF, 0x00000000,
- 0xE18, 0xFFFFFFFF, 0x00000000,
- 0xE1C, 0xFFFFFFFF, 0x00000000,
- 0x830, 0xFFFFFFFF, 0x00000000,
- 0x834, 0xFFFFFFFF, 0x00000000,
- 0x838, 0xFFFFFF00, 0x00000000,
- 0x86C, 0x000000FF, 0x00000000,
- 0x83C, 0xFFFFFFFF, 0x00000000,
- 0x848, 0xFFFFFFFF, 0x00000000,
- 0x84C, 0xFFFFFFFF, 0x00000000,
- 0x868, 0xFFFFFFFF, 0x00000000,
-};
-
-void ODM_ReadAndConfig_PHY_REG_PG_8723A(struct dm_odm_t *pDM_Odm)
-{
- u32 hex = 0;
- u32 i = 0;
- u8 platform = 0x04;
- u8 interfaceValue = pDM_Odm->SupportInterface;
- u8 board = pDM_Odm->BoardType;
- u32 ArrayLen = sizeof(Array_PHY_REG_PG_8723A)/sizeof(u32);
- u32 *Array = Array_PHY_REG_PG_8723A;
-
- hex += board;
- hex += interfaceValue << 8;
- hex += platform << 16;
- hex += 0xFF000000;
- for (i = 0; i < ArrayLen; i += 3) {
- u32 v1 = Array[i];
- u32 v2 = Array[i+1];
- u32 v3 = Array[i+2];
-
- /* this line is a line of pure_body */
- if (v1 < 0xCDCDCDCD) {
- odm_ConfigBB_PHY_REG_PG_8723A(pDM_Odm, v1, v2, v3);
- continue;
- } else { /* this line is the start of branch */
- if (!CheckCondition(Array[i], hex)) {
- /* don't need the hw_body */
- i += 2; /* skip the pair of expression */
- v1 = Array[i];
- v2 = Array[i+1];
- v3 = Array[i+2];
- while (v2 != 0xDEAD) {
- i += 3;
- v1 = Array[i];
- v2 = Array[i+1];
- v3 = Array[i+1];
- }
- }
- }
- }
-}