diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-12 00:33:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:39:32 -0400 |
commit | ab33449895a6690a3e5fcfa8391fdeb1be65c320 (patch) | |
tree | ed1144eec833ef118cbf49967b26527588b9a812 | |
parent | 96d159d03c5b849fa39dc7305e04ebf374085e4a (diff) |
ath9k_hw: add register definitions related to PA predistortion
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.h | 224 |
1 files changed, 207 insertions, 17 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.h b/drivers/net/wireless/ath/ath9k/ar9003_phy.h index 265f59f029d..3394dfe52b4 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.h +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.h | |||
@@ -459,7 +459,11 @@ | |||
459 | #define AR_PHY_TSTDAC (AR_SM_BASE + 0x168) | 459 | #define AR_PHY_TSTDAC (AR_SM_BASE + 0x168) |
460 | 460 | ||
461 | #define AR_PHY_CHAN_STATUS (AR_SM_BASE + 0x16c) | 461 | #define AR_PHY_CHAN_STATUS (AR_SM_BASE + 0x16c) |
462 | #define AR_PHY_CHAN_INFO_MEMORY (AR_SM_BASE + 0x170) | 462 | |
463 | #define AR_PHY_CHAN_INFO_MEMORY (AR_SM_BASE + 0x170) | ||
464 | #define AR_PHY_CHAN_INFO_MEMORY_CHANINFOMEM_S2_READ 0x00000008 | ||
465 | #define AR_PHY_CHAN_INFO_MEMORY_CHANINFOMEM_S2_READ_S 3 | ||
466 | |||
463 | #define AR_PHY_CHNINFO_NOISEPWR (AR_SM_BASE + 0x174) | 467 | #define AR_PHY_CHNINFO_NOISEPWR (AR_SM_BASE + 0x174) |
464 | #define AR_PHY_CHNINFO_GAINDIFF (AR_SM_BASE + 0x178) | 468 | #define AR_PHY_CHNINFO_GAINDIFF (AR_SM_BASE + 0x178) |
465 | #define AR_PHY_CHNINFO_FINETIM (AR_SM_BASE + 0x17c) | 469 | #define AR_PHY_CHNINFO_FINETIM (AR_SM_BASE + 0x17c) |
@@ -475,17 +479,63 @@ | |||
475 | #define AR_PHY_PWRTX_MAX (AR_SM_BASE + 0x1f0) | 479 | #define AR_PHY_PWRTX_MAX (AR_SM_BASE + 0x1f0) |
476 | #define AR_PHY_POWER_TX_SUB (AR_SM_BASE + 0x1f4) | 480 | #define AR_PHY_POWER_TX_SUB (AR_SM_BASE + 0x1f4) |
477 | 481 | ||
478 | #define AR_PHY_TPC_4_B0 (AR_SM_BASE + 0x204) | 482 | #define AR_PHY_TPC_1 (AR_SM_BASE + 0x1f8) |
479 | #define AR_PHY_TPC_5_B0 (AR_SM_BASE + 0x208) | 483 | #define AR_PHY_TPC_1_FORCED_DAC_GAIN 0x0000003e |
480 | #define AR_PHY_TPC_6_B0 (AR_SM_BASE + 0x20c) | 484 | #define AR_PHY_TPC_1_FORCED_DAC_GAIN_S 1 |
481 | #define AR_PHY_TPC_11_B0 (AR_SM_BASE + 0x220) | 485 | #define AR_PHY_TPC_1_FORCE_DAC_GAIN 0x00000001 |
482 | #define AR_PHY_TPC_18 (AR_SM_BASE + 0x23c) | 486 | #define AR_PHY_TPC_1_FORCE_DAC_GAIN_S 0 |
483 | #define AR_PHY_TPC_19 (AR_SM_BASE + 0x240) | 487 | |
488 | #define AR_PHY_TPC_4_B0 (AR_SM_BASE + 0x204) | ||
489 | #define AR_PHY_TPC_5_B0 (AR_SM_BASE + 0x208) | ||
490 | #define AR_PHY_TPC_6_B0 (AR_SM_BASE + 0x20c) | ||
491 | |||
492 | #define AR_PHY_TPC_11_B0 (AR_SM_BASE + 0x220) | ||
493 | #define AR_PHY_TPC_11_B1 (AR_SM1_BASE + 0x220) | ||
494 | #define AR_PHY_TPC_11_B2 (AR_SM2_BASE + 0x220) | ||
495 | #define AR_PHY_TPC_11_OLPC_GAIN_DELTA 0x00ff0000 | ||
496 | #define AR_PHY_TPC_11_OLPC_GAIN_DELTA_S 16 | ||
497 | |||
498 | #define AR_PHY_TPC_12 (AR_SM_BASE + 0x224) | ||
499 | #define AR_PHY_TPC_12_DESIRED_SCALE_HT40_5 0x3e000000 | ||
500 | #define AR_PHY_TPC_12_DESIRED_SCALE_HT40_5_S 25 | ||
501 | |||
502 | #define AR_PHY_TPC_18 (AR_SM_BASE + 0x23c) | ||
503 | #define AR_PHY_TPC_18_THERM_CAL_VALUE 0x000000ff | ||
504 | #define AR_PHY_TPC_18_THERM_CAL_VALUE_S 0 | ||
505 | #define AR_PHY_TPC_18_VOLT_CAL_VALUE 0x0000ff00 | ||
506 | #define AR_PHY_TPC_18_VOLT_CAL_VALUE_S 8 | ||
507 | |||
508 | #define AR_PHY_TPC_19 (AR_SM_BASE + 0x240) | ||
509 | #define AR_PHY_TPC_19_ALPHA_VOLT 0x001f0000 | ||
510 | #define AR_PHY_TPC_19_ALPHA_VOLT_S 16 | ||
511 | #define AR_PHY_TPC_19_ALPHA_THERM 0xff | ||
512 | #define AR_PHY_TPC_19_ALPHA_THERM_S 0 | ||
513 | |||
514 | #define AR_PHY_TX_FORCED_GAIN (AR_SM_BASE + 0x258) | ||
515 | #define AR_PHY_TX_FORCED_GAIN_FORCE_TX_GAIN 0x00000001 | ||
516 | #define AR_PHY_TX_FORCED_GAIN_FORCE_TX_GAIN_S 0 | ||
517 | #define AR_PHY_TX_FORCED_GAIN_FORCED_TXBB1DBGAIN 0x0000000e | ||
518 | #define AR_PHY_TX_FORCED_GAIN_FORCED_TXBB1DBGAIN_S 1 | ||
519 | #define AR_PHY_TX_FORCED_GAIN_FORCED_TXBB6DBGAIN 0x00000030 | ||
520 | #define AR_PHY_TX_FORCED_GAIN_FORCED_TXBB6DBGAIN_S 4 | ||
521 | #define AR_PHY_TX_FORCED_GAIN_FORCED_TXMXRGAIN 0x000003c0 | ||
522 | #define AR_PHY_TX_FORCED_GAIN_FORCED_TXMXRGAIN_S 6 | ||
523 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGNA 0x00003c00 | ||
524 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGNA_S 10 | ||
525 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGNB 0x0003c000 | ||
526 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGNB_S 14 | ||
527 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGNC 0x003c0000 | ||
528 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGNC_S 18 | ||
529 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGND 0x00c00000 | ||
530 | #define AR_PHY_TX_FORCED_GAIN_FORCED_PADRVGND_S 22 | ||
531 | #define AR_PHY_TX_FORCED_GAIN_FORCED_ENABLE_PAL 0x01000000 | ||
532 | #define AR_PHY_TX_FORCED_GAIN_FORCED_ENABLE_PAL_S 24 | ||
484 | 533 | ||
485 | #define AR_PHY_TX_FORCED_GAIN (AR_SM_BASE + 0x258) | ||
486 | 534 | ||
487 | #define AR_PHY_PDADC_TAB_0 (AR_SM_BASE + 0x280) | 535 | #define AR_PHY_PDADC_TAB_0 (AR_SM_BASE + 0x280) |
488 | 536 | ||
537 | #define AR_PHY_TXGAIN_TABLE (AR_SM_BASE + 0x300) | ||
538 | |||
489 | #define AR_PHY_TX_IQCAL_CONTROL_1 (AR_SM_BASE + 0x448) | 539 | #define AR_PHY_TX_IQCAL_CONTROL_1 (AR_SM_BASE + 0x448) |
490 | #define AR_PHY_TX_IQCAL_START (AR_SM_BASE + 0x440) | 540 | #define AR_PHY_TX_IQCAL_START (AR_SM_BASE + 0x440) |
491 | #define AR_PHY_TX_IQCAL_STATUS_B0 (AR_SM_BASE + 0x48c) | 541 | #define AR_PHY_TX_IQCAL_STATUS_B0 (AR_SM_BASE + 0x48c) |
@@ -498,7 +548,17 @@ | |||
498 | #define AR_PHY_ONLY_WARMRESET (AR_SM_BASE + 0x5d0) | 548 | #define AR_PHY_ONLY_WARMRESET (AR_SM_BASE + 0x5d0) |
499 | #define AR_PHY_ONLY_CTL (AR_SM_BASE + 0x5d4) | 549 | #define AR_PHY_ONLY_CTL (AR_SM_BASE + 0x5d4) |
500 | #define AR_PHY_ECO_CTRL (AR_SM_BASE + 0x5dc) | 550 | #define AR_PHY_ECO_CTRL (AR_SM_BASE + 0x5dc) |
501 | #define AR_PHY_BB_THERM_ADC_1 (AR_SM_BASE + 0x248) | 551 | |
552 | #define AR_PHY_BB_THERM_ADC_1 (AR_SM_BASE + 0x248) | ||
553 | #define AR_PHY_BB_THERM_ADC_1_INIT_THERM 0x000000ff | ||
554 | #define AR_PHY_BB_THERM_ADC_1_INIT_THERM_S 0 | ||
555 | |||
556 | #define AR_PHY_BB_THERM_ADC_4 (AR_SM_BASE + 0x254) | ||
557 | #define AR_PHY_BB_THERM_ADC_4_LATEST_THERM_VALUE 0x000000ff | ||
558 | #define AR_PHY_BB_THERM_ADC_4_LATEST_THERM_VALUE_S 0 | ||
559 | #define AR_PHY_BB_THERM_ADC_4_LATEST_VOLT_VALUE 0x0000ff00 | ||
560 | #define AR_PHY_BB_THERM_ADC_4_LATEST_VOLT_VALUE_S 8 | ||
561 | |||
502 | 562 | ||
503 | #define AR_PHY_65NM_CH0_SYNTH4 0x1608c | 563 | #define AR_PHY_65NM_CH0_SYNTH4 0x1608c |
504 | #define AR_PHY_SYNTH4_LONG_SHIFT_SELECT 0x00000002 | 564 | #define AR_PHY_SYNTH4_LONG_SHIFT_SELECT 0x00000002 |
@@ -668,17 +728,9 @@ | |||
668 | #define AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE 0x00003fff | 728 | #define AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE 0x00003fff |
669 | #define AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE_S 0 | 729 | #define AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE_S 0 |
670 | 730 | ||
671 | #define AR_PHY_TPC_18_THERM_CAL_VALUE 0xff | ||
672 | #define AR_PHY_TPC_18_THERM_CAL_VALUE_S 0 | ||
673 | #define AR_PHY_TPC_19_ALPHA_THERM 0xff | ||
674 | #define AR_PHY_TPC_19_ALPHA_THERM_S 0 | ||
675 | |||
676 | #define AR_PHY_65NM_CH0_RXTX4_THERM_ON 0x10000000 | 731 | #define AR_PHY_65NM_CH0_RXTX4_THERM_ON 0x10000000 |
677 | #define AR_PHY_65NM_CH0_RXTX4_THERM_ON_S 28 | 732 | #define AR_PHY_65NM_CH0_RXTX4_THERM_ON_S 28 |
678 | 733 | ||
679 | #define AR_PHY_BB_THERM_ADC_1_INIT_THERM 0x000000ff | ||
680 | #define AR_PHY_BB_THERM_ADC_1_INIT_THERM_S 0 | ||
681 | |||
682 | /* | 734 | /* |
683 | * Channel 1 Register Map | 735 | * Channel 1 Register Map |
684 | */ | 736 | */ |
@@ -850,6 +902,144 @@ | |||
850 | 902 | ||
851 | #define AR_PHY_WATCHDOG_STATUS_CLR 0x00000008 | 903 | #define AR_PHY_WATCHDOG_STATUS_CLR 0x00000008 |
852 | 904 | ||
905 | /* | ||
906 | * PAPRD registers | ||
907 | */ | ||
908 | #define AR_PHY_XPA_TIMING_CTL (AR_SM_BASE + 0x64) | ||
909 | |||
910 | #define AR_PHY_PAPRD_AM2AM (AR_CHAN_BASE + 0xe4) | ||
911 | #define AR_PHY_PAPRD_AM2AM_MASK 0x01ffffff | ||
912 | #define AR_PHY_PAPRD_AM2AM_MASK_S 0 | ||
913 | |||
914 | #define AR_PHY_PAPRD_AM2PM (AR_CHAN_BASE + 0xe8) | ||
915 | #define AR_PHY_PAPRD_AM2PM_MASK 0x01ffffff | ||
916 | #define AR_PHY_PAPRD_AM2PM_MASK_S 0 | ||
917 | |||
918 | #define AR_PHY_PAPRD_HT40 (AR_CHAN_BASE + 0xec) | ||
919 | #define AR_PHY_PAPRD_HT40_MASK 0x01ffffff | ||
920 | #define AR_PHY_PAPRD_HT40_MASK_S 0 | ||
921 | |||
922 | #define AR_PHY_PAPRD_CTRL0_B0 (AR_CHAN_BASE + 0xf0) | ||
923 | #define AR_PHY_PAPRD_CTRL0_B1 (AR_CHAN1_BASE + 0xf0) | ||
924 | #define AR_PHY_PAPRD_CTRL0_B2 (AR_CHAN2_BASE + 0xf0) | ||
925 | #define AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE 0x00000001 | ||
926 | #define AR_PHY_PAPRD_CTRL0_PAPRD_ENABLE_S 0 | ||
927 | #define AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK 0x00000002 | ||
928 | #define AR_PHY_PAPRD_CTRL0_USE_SINGLE_TABLE_MASK_S 1 | ||
929 | #define AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH 0xf8000000 | ||
930 | #define AR_PHY_PAPRD_CTRL0_PAPRD_MAG_THRSH_S 27 | ||
931 | |||
932 | #define AR_PHY_PAPRD_CTRL1_B0 (AR_CHAN_BASE + 0xf4) | ||
933 | #define AR_PHY_PAPRD_CTRL1_B1 (AR_CHAN1_BASE + 0xf4) | ||
934 | #define AR_PHY_PAPRD_CTRL1_B2 (AR_CHAN2_BASE + 0xf4) | ||
935 | #define AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA 0x00000001 | ||
936 | #define AR_PHY_PAPRD_CTRL1_ADAPTIVE_SCALING_ENA_S 0 | ||
937 | #define AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE 0x00000002 | ||
938 | #define AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2AM_ENABLE_S 1 | ||
939 | #define AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE 0x00000004 | ||
940 | #define AR_PHY_PAPRD_CTRL1_ADAPTIVE_AM2PM_ENABLE_S 2 | ||
941 | #define AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL 0x000001f8 | ||
942 | #define AR_PHY_PAPRD_CTRL1_PAPRD_POWER_AT_AM2AM_CAL_S 3 | ||
943 | #define AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK 0x0001fe00 | ||
944 | #define AR_PHY_PAPRD_CTRL1_PA_GAIN_SCALE_FACT_MASK_S 9 | ||
945 | #define AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT 0x0ffe0000 | ||
946 | #define AR_PHY_PAPRD_CTRL1_PAPRD_MAG_SCALE_FACT_S 17 | ||
947 | |||
948 | #define AR_PHY_PAPRD_TRAINER_CNTL1 (AR_SM_BASE + 0x490) | ||
949 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE 0x00000001 | ||
950 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_CF_PAPRD_TRAIN_ENABLE_S 0 | ||
951 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING 0x0000007e | ||
952 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_AGC2_SETTLING_S 1 | ||
953 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE 0x00000100 | ||
954 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_IQCORR_ENABLE_S 8 | ||
955 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE 0x00000200 | ||
956 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_RX_BB_GAIN_FORCE_S 9 | ||
957 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE 0x00000400 | ||
958 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_TX_GAIN_FORCE_S 10 | ||
959 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE 0x00000800 | ||
960 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_ENABLE_S 11 | ||
961 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP 0x0003f000 | ||
962 | #define AR_PHY_PAPRD_TRAINER_CNTL1_CF_PAPRD_LB_SKIP_S 12 | ||
963 | |||
964 | #define AR_PHY_PAPRD_TRAINER_CNTL2 (AR_SM_BASE + 0x494) | ||
965 | #define AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN 0xFFFFFFFF | ||
966 | #define AR_PHY_PAPRD_TRAINER_CNTL2_CF_PAPRD_INIT_RX_BB_GAIN_S 0 | ||
967 | |||
968 | #define AR_PHY_PAPRD_TRAINER_CNTL3 (AR_SM_BASE + 0x498) | ||
969 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE 0x0000003f | ||
970 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_ADC_DESIRED_SIZE_S 0 | ||
971 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP 0x00000fc0 | ||
972 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_QUICK_DROP_S 6 | ||
973 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL 0x0001f000 | ||
974 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_MIN_LOOPBACK_DEL_S 12 | ||
975 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES 0x000e0000 | ||
976 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_NUM_CORR_STAGES_S 17 | ||
977 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN 0x00f00000 | ||
978 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_COARSE_CORR_LEN_S 20 | ||
979 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN 0x0f000000 | ||
980 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_FINE_CORR_LEN_S 24 | ||
981 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE 0x20000000 | ||
982 | #define AR_PHY_PAPRD_TRAINER_CNTL3_CF_PAPRD_BBTXMIX_DISABLE_S 29 | ||
983 | |||
984 | #define AR_PHY_PAPRD_TRAINER_CNTL4 (AR_SM_BASE + 0x49c) | ||
985 | #define AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES 0x03ff0000 | ||
986 | #define AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_NUM_TRAIN_SAMPLES_S 16 | ||
987 | #define AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA 0x0000f000 | ||
988 | #define AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_SAFETY_DELTA_S 12 | ||
989 | #define AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR 0x00000fff | ||
990 | #define AR_PHY_PAPRD_TRAINER_CNTL4_CF_PAPRD_MIN_CORR_S 0 | ||
991 | |||
992 | #define AR_PHY_PAPRD_PRE_POST_SCALE_0_B0 (AR_CHAN_BASE + 0x100) | ||
993 | #define AR_PHY_PAPRD_PRE_POST_SCALE_1_B0 (AR_CHAN_BASE + 0x104) | ||
994 | #define AR_PHY_PAPRD_PRE_POST_SCALE_2_B0 (AR_CHAN_BASE + 0x108) | ||
995 | #define AR_PHY_PAPRD_PRE_POST_SCALE_3_B0 (AR_CHAN_BASE + 0x10c) | ||
996 | #define AR_PHY_PAPRD_PRE_POST_SCALE_4_B0 (AR_CHAN_BASE + 0x110) | ||
997 | #define AR_PHY_PAPRD_PRE_POST_SCALE_5_B0 (AR_CHAN_BASE + 0x114) | ||
998 | #define AR_PHY_PAPRD_PRE_POST_SCALE_6_B0 (AR_CHAN_BASE + 0x118) | ||
999 | #define AR_PHY_PAPRD_PRE_POST_SCALE_7_B0 (AR_CHAN_BASE + 0x11c) | ||
1000 | #define AR_PHY_PAPRD_PRE_POST_SCALING 0x3FFFF | ||
1001 | #define AR_PHY_PAPRD_PRE_POST_SCALING_S 0 | ||
1002 | |||
1003 | #define AR_PHY_PAPRD_TRAINER_STAT1 (AR_SM_BASE + 0x4a0) | ||
1004 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE 0x00000001 | ||
1005 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE_S 0 | ||
1006 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_INCOMPLETE 0x00000002 | ||
1007 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_INCOMPLETE_S 1 | ||
1008 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_CORR_ERR 0x00000004 | ||
1009 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_CORR_ERR_S 2 | ||
1010 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_ACTIVE 0x00000008 | ||
1011 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_ACTIVE_S 3 | ||
1012 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_RX_GAIN_IDX 0x000001f0 | ||
1013 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_RX_GAIN_IDX_S 4 | ||
1014 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR 0x0001fe00 | ||
1015 | #define AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR_S 9 | ||
1016 | |||
1017 | #define AR_PHY_PAPRD_TRAINER_STAT2 (AR_SM_BASE + 0x4a4) | ||
1018 | #define AR_PHY_PAPRD_TRAINER_STAT2_PAPRD_FINE_VAL 0x0000ffff | ||
1019 | #define AR_PHY_PAPRD_TRAINER_STAT2_PAPRD_FINE_VAL_S 0 | ||
1020 | #define AR_PHY_PAPRD_TRAINER_STAT2_PAPRD_COARSE_IDX 0x001f0000 | ||
1021 | #define AR_PHY_PAPRD_TRAINER_STAT2_PAPRD_COARSE_IDX_S 16 | ||
1022 | #define AR_PHY_PAPRD_TRAINER_STAT2_PAPRD_FINE_IDX 0x00600000 | ||
1023 | #define AR_PHY_PAPRD_TRAINER_STAT2_PAPRD_FINE_IDX_S 21 | ||
1024 | |||
1025 | #define AR_PHY_PAPRD_TRAINER_STAT3 (AR_SM_BASE + 0x4a8) | ||
1026 | #define AR_PHY_PAPRD_TRAINER_STAT3_PAPRD_TRAIN_SAMPLES_CNT 0x000fffff | ||
1027 | #define AR_PHY_PAPRD_TRAINER_STAT3_PAPRD_TRAIN_SAMPLES_CNT_S 0 | ||
1028 | |||
1029 | #define AR_PHY_PAPRD_MEM_TAB_B0 (AR_CHAN_BASE + 0x120) | ||
1030 | #define AR_PHY_PAPRD_MEM_TAB_B1 (AR_CHAN1_BASE + 0x120) | ||
1031 | #define AR_PHY_PAPRD_MEM_TAB_B2 (AR_CHAN2_BASE + 0x120) | ||
1032 | |||
1033 | #define AR_PHY_PA_GAIN123_B0 (AR_CHAN_BASE + 0xf8) | ||
1034 | #define AR_PHY_PA_GAIN123_B1 (AR_CHAN1_BASE + 0xf8) | ||
1035 | #define AR_PHY_PA_GAIN123_B2 (AR_CHAN2_BASE + 0xf8) | ||
1036 | #define AR_PHY_PA_GAIN123_PA_GAIN1 0x3FF | ||
1037 | #define AR_PHY_PA_GAIN123_PA_GAIN1_S 0 | ||
1038 | |||
1039 | #define AR_PHY_POWERTX_RATE5 (AR_SM_BASE + 0x1d0) | ||
1040 | #define AR_PHY_POWERTX_RATE5_POWERTXHT20_0 0x3F | ||
1041 | #define AR_PHY_POWERTX_RATE5_POWERTXHT20_0_S 0 | ||
1042 | |||
853 | void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx); | 1043 | void ar9003_hw_set_chain_masks(struct ath_hw *ah, u8 rx, u8 tx); |
854 | 1044 | ||
855 | #endif /* AR9003_PHY_H */ | 1045 | #endif /* AR9003_PHY_H */ |