63 if(priv->
chan == 3 || priv->
chan == 9)
76 RT_TRACE(
COMP_ERR,
"PHY_SetRF8256Bandwidth(): unknown Bandwidth: %#X\n",Bandwidth );
117 u32 RegOffSetToBeCheck = 0x3;
118 u32 RegValueToBeCheck = 0x7f1;
119 u32 RF3_Final_Value = 0;
120 u8 ConstRetryTimes = 5, RetryTimes = 5;
164 RT_TRACE(
COMP_ERR,
"PHY_RF8256_Config():Check Radio[%d] Fail!!\n", eRFPath);
165 goto phy_RF8256_Config_ParaFile_Fail;
168 RetryTimes = ConstRetryTimes;
174 while(RF3_Final_Value!=RegValueToBeCheck && RetryTimes!=0)
178 RT_TRACE(
COMP_RF,
"RF %d %d register final value: %x\n", eRFPath, RegOffSetToBeCheck, RF3_Final_Value);
183 while(RF3_Final_Value!=RegValueToBeCheck && RetryTimes!=0)
187 RT_TRACE(
COMP_RF,
"RF %d %d register final value: %x\n", eRFPath, RegOffSetToBeCheck, RF3_Final_Value);
192 while(RF3_Final_Value!=RegValueToBeCheck && RetryTimes!=0)
196 RT_TRACE(
COMP_RF,
"RF %d %d register final value: %x\n", eRFPath, RegOffSetToBeCheck, RF3_Final_Value);
201 while(RF3_Final_Value!=RegValueToBeCheck && RetryTimes!=0)
205 RT_TRACE(
COMP_RF,
"RF %d %d register final value: %x\n", eRFPath, RegOffSetToBeCheck, RF3_Final_Value);
225 RT_TRACE(
COMP_ERR,
"phy_RF8256_Config_ParaFile():Radio[%d] Fail!!", eRFPath);
226 goto phy_RF8256_Config_ParaFile_Fail;
234 phy_RF8256_Config_ParaFile_Fail:
265 u32 writeVal, powerBase0, powerBase1, writeVal_tmp;
267 u16 RegOffset[6] = {0xe00, 0xe04, 0xe10, 0xe14, 0xe18, 0xe1c};
268 u8 byte0, byte1, byte2, byte3;
271 powerBase0 = (powerBase0<<24) | (powerBase0<<16) |(powerBase0<<8) |powerBase0;
272 powerBase1 = powerlevel;
273 powerBase1 = (powerBase1<<24) | (powerBase1<<16) |(powerBase1<<8) |powerBase1;
275 for(index=0; index<6; index++)
278 byte0 = (
u8)(writeVal & 0x7f);
279 byte1 = (
u8)((writeVal & 0x7f00)>>8);
280 byte2 = (
u8)((writeVal & 0x7f0000)>>16);
281 byte3 = (
u8)((writeVal & 0x7f000000)>>24);
294 writeVal_tmp = (byte3<<24) | (byte2<<16) |(byte1<<8) |byte0;
301 writeVal = 0x03030303;
305 writeVal = (byte3<<24) | (byte2<<16) |(byte1<<8) |byte0;