| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 Atheros Communications Inc. | 2 * Copyright (c) 2010 Atheros Communications Inc. |
| 3 * | 3 * |
| 4 * Permission to use, copy, modify, and/or distribute this software for any | 4 * Permission to use, copy, modify, and/or distribute this software for any |
| 5 * purpose with or without fee is hereby granted, provided that the above | 5 * purpose with or without fee is hereby granted, provided that the above |
| 6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
| 7 * | 7 * |
| 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 * may be modal (> 2 columns) or non-modal (2 columns). Determine if | 535 * may be modal (> 2 columns) or non-modal (2 columns). Determine if |
| 536 * the array is non-modal and force the column to 1. | 536 * the array is non-modal and force the column to 1. |
| 537 */ | 537 */ |
| 538 if (column >= iniArr->ia_columns) | 538 if (column >= iniArr->ia_columns) |
| 539 column = 1; | 539 column = 1; |
| 540 | 540 |
| 541 for (i = 0; i < iniArr->ia_rows; i++) { | 541 for (i = 0; i < iniArr->ia_rows; i++) { |
| 542 u32 reg = INI_RA(iniArr, i, 0); | 542 u32 reg = INI_RA(iniArr, i, 0); |
| 543 u32 val = INI_RA(iniArr, i, column); | 543 u32 val = INI_RA(iniArr, i, column); |
| 544 | 544 |
| 545 » » if (reg >= 0x16000 && reg < 0x17000) | 545 » » REG_WRITE(ah, reg, val); |
| 546 » » » ath9k_hw_analog_shift_regwrite(ah, reg, val); | |
| 547 » » else | |
| 548 » » » REG_WRITE(ah, reg, val); | |
| 549 | 546 |
| 550 DO_DELAY(regWrites); | 547 DO_DELAY(regWrites); |
| 551 } | 548 } |
| 552 } | 549 } |
| 553 | 550 |
| 554 static int ar9003_hw_process_ini(struct ath_hw *ah, | 551 static int ar9003_hw_process_ini(struct ath_hw *ah, |
| 555 struct ath9k_channel *chan) | 552 struct ath9k_channel *chan) |
| 556 { | 553 { |
| 557 struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah); | 554 struct ath_regulatory *regulatory = ath9k_hw_regulatory(ah); |
| 558 unsigned int regWrites = 0, i; | 555 unsigned int regWrites = 0, i; |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 if (ath9k_hw_GetMibCycleCountsPct(ah, &rxc_pcnt, &rxf_pcnt, &txf_pcnt)) | 1261 if (ath9k_hw_GetMibCycleCountsPct(ah, &rxc_pcnt, &rxf_pcnt, &txf_pcnt)) |
| 1265 ath_print(common, ATH_DBG_RESET, | 1262 ath_print(common, ATH_DBG_RESET, |
| 1266 "** BB busy times: rx_clear=%d%%, " | 1263 "** BB busy times: rx_clear=%d%%, " |
| 1267 "rx_frame=%d%%, tx_frame=%d%% **\n", | 1264 "rx_frame=%d%%, tx_frame=%d%% **\n", |
| 1268 rxc_pcnt, rxf_pcnt, txf_pcnt); | 1265 rxc_pcnt, rxf_pcnt, txf_pcnt); |
| 1269 | 1266 |
| 1270 ath_print(common, ATH_DBG_RESET, | 1267 ath_print(common, ATH_DBG_RESET, |
| 1271 "==== BB update: done ====\n\n"); | 1268 "==== BB update: done ====\n\n"); |
| 1272 } | 1269 } |
| 1273 EXPORT_SYMBOL(ar9003_hw_bb_watchdog_dbg_info); | 1270 EXPORT_SYMBOL(ar9003_hw_bb_watchdog_dbg_info); |
| OLD | NEW |