51 "unknown hardware version\n");
70 "unknown hardware version\n");
77 "Bandwidth: %#X\n", Bandwidth);
102 u32 RegOffSetToBeCheck = 0x3;
103 u32 RegValueToBeCheck = 0x7f1;
104 u32 RF3_Final_Value = 0;
105 u8 ConstRetryTimes = 5, RetryTimes = 5;
143 if (rtStatus !=
true) {
145 "Radio[%d] Fail!!\n", eRFPath);
146 goto phy_RF8256_Config_ParaFile_Fail;
149 RetryTimes = ConstRetryTimes;
153 while (RF3_Final_Value != RegValueToBeCheck &&
162 "value: %x\n", eRFPath,
163 RegOffSetToBeCheck, RF3_Final_Value);
168 while (RF3_Final_Value != RegValueToBeCheck &&
177 "value: %x\n", eRFPath,
178 RegOffSetToBeCheck, RF3_Final_Value);
183 while (RF3_Final_Value != RegValueToBeCheck &&
192 "value: %x\n", eRFPath,
193 RegOffSetToBeCheck, RF3_Final_Value);
198 while (RF3_Final_Value != RegValueToBeCheck &&
206 "value: %x\n", eRFPath,
207 RegOffSetToBeCheck, RF3_Final_Value);
228 "Radio[%d] Fail!!", eRFPath);
229 goto phy_RF8256_Config_ParaFile_Fail;
237 phy_RF8256_Config_ParaFile_Fail:
263 u32 writeVal, powerBase0, powerBase1, writeVal_tmp;
265 u16 RegOffset[6] = {0xe00, 0xe04, 0xe10, 0xe14, 0xe18, 0xe1c};
266 u8 byte0, byte1, byte2, byte3;
269 powerBase0 = (powerBase0 << 24) | (powerBase0 << 16) |
270 (powerBase0 << 8) | powerBase0;
271 powerBase1 = powerlevel;
272 powerBase1 = (powerBase1 << 24) | (powerBase1 << 16) |
273 (powerBase1 << 8) | powerBase1;
275 for (index = 0; index < 6; index++) {
277 ((index < 2) ? powerBase0 : powerBase1));
278 byte0 = (
u8)(writeVal & 0x7f);
279 byte1 = (
u8)((writeVal & 0x7f00)>>8);
280 byte2 = (
u8)((writeVal & 0x7f0000)>>16);
281 byte3 = (
u8)((writeVal & 0x7f000000)>>24);
292 writeVal_tmp = (byte3 << 24) | (byte2 << 16) |
293 (byte1 << 8) | byte0;
298 writeVal = 0x03030303;
300 writeVal = (byte3 << 24) | (byte2 << 16) |
301 (byte1 << 8) | byte0;