mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2026-01-27 17:07:18 +01:00
initvals: add ath9k specific initvals for AR9330 1.1
The ar9330_1p1_initvals.h file submitted to ath9k has been generated manually from the ar9330_11.ini from the LSDK-WLAN-9.2.0.405.tgz tarball. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
This commit is contained in:
parent
6a319cf76f
commit
d78c388101
3 changed files with 1210 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -9,7 +9,8 @@ ATHEROS_DEPS += \
|
|||
ar9287.ini \
|
||||
ar9287_1_1.ini \
|
||||
ar9271.ini \
|
||||
ar9300_osprey22.ini
|
||||
ar9300_osprey22.ini \
|
||||
ar9330_11.ini
|
||||
endif
|
||||
|
||||
ATH9K_DEPS += \
|
||||
|
|
@ -17,6 +18,7 @@ ATH9K_DEPS += \
|
|||
ar9001_initvals.h \
|
||||
ar9002_initvals.h \
|
||||
ar9003_2p2_initvals.h \
|
||||
ar9330_1p1_initvals.h \
|
||||
ar9580_1p0_initvals.h
|
||||
|
||||
initvals: $(ATH9K_DEPS) $(ATHEROS_DEPS) initvals.c
|
||||
|
|
|
|||
1147
ar9330_1p1_initvals.h
Normal file
1147
ar9330_1p1_initvals.h
Normal file
File diff suppressed because it is too large
Load diff
61
initvals.c
61
initvals.c
|
|
@ -21,6 +21,7 @@ typedef long long unsigned int u64;
|
|||
#include "ar9001_initvals.h"
|
||||
#include "ar9002_initvals.h"
|
||||
#include "ar9003_2p2_initvals.h"
|
||||
#include "ar9330_1p1_initvals.h"
|
||||
#include "ar9485_initvals.h"
|
||||
#include "ar9580_1p0_initvals.h"
|
||||
|
||||
|
|
@ -159,6 +160,28 @@ typedef long long unsigned int u64;
|
|||
|
||||
#include "ar9300_osprey22.ini"
|
||||
|
||||
#define ar9331_modes_lowest_ob_db_tx_gain_hornet1_1 ar9331_modes_lowest_ob_db_tx_gain_1p1
|
||||
#define ar9331_hornet1_1_baseband_postamble ar9331_1p1_baseband_postamble
|
||||
#define ar9331_modes_high_ob_db_tx_gain_hornet1_1 ar9331_modes_high_ob_db_tx_gain_1p1
|
||||
#define ar9331_modes_low_ob_db_tx_gain_hornet1_1 ar9331_modes_low_ob_db_tx_gain_1p1
|
||||
#define ar9331_hornet1_1_baseband_core_txfir_coeff_japan_2484 ar9331_1p1_baseband_core_txfir_coeff_japan_2484
|
||||
#define ar9331_hornet1_1_xtal_25M ar9331_1p1_xtal_25M
|
||||
#define ar9331_hornet1_1_radio_core ar9331_1p1_radio_core
|
||||
#define ar9331_hornet1_1_soc_postamble ar9331_1p1_soc_postamble
|
||||
#define ar9331_common_wo_xlna_rx_gain_hornet1_1 ar9331_common_wo_xlna_rx_gain_1p1
|
||||
#define ar9331_hornet1_1_baseband_core ar9331_1p1_baseband_core
|
||||
#define ar9331_modes_high_power_tx_gain_hornet1_1 ar9331_modes_high_power_tx_gain_1p1
|
||||
#define ar9331_hornet1_1_mac_postamble ar9331_1p1_mac_postamble
|
||||
#define ar9331_hornet1_1_soc_preamble ar9331_1p1_soc_preamble
|
||||
#define ar9331_hornet1_1_xtal_40M ar9331_1p1_xtal_40M
|
||||
#define ar9331_hornet1_1_mac_core ar9331_1p1_mac_core
|
||||
#define ar9331_common_rx_gain_hornet1_1 ar9331_common_rx_gain_1p1
|
||||
#define ar9331_common_tx_gain_offset1_1 ar9331_common_tx_gain_offset1_1
|
||||
#define ar9331_hornet1_1_chansel_xtal_25M ar9331_1p1_chansel_xtal_25M
|
||||
#define ar9331_hornet1_1_chansel_xtal_40M ar9331_1p1_chansel_xtal_40M
|
||||
|
||||
#include "ar9330_11.ini"
|
||||
|
||||
#define ar9485Common_poseidon1_0 ar9485Common_1_0
|
||||
#define ar9485_poseidon1_0_mac_postamble ar9485_1_0_mac_postamble
|
||||
#define ar9485_poseidon1_0_pcie_phy_pll_on_clkreq_disable_L1 ar9485_1_0_pcie_phy_pll_on_clkreq_disable_L1
|
||||
|
|
@ -456,6 +479,31 @@ static void ar9003_2p2_hw_print_initvals(bool check)
|
|||
INI_PRINT(ar9300PciePhy_clkreq_disable_L1_2p2);
|
||||
}
|
||||
|
||||
static void ar9330_1p1_hw_print_initvals(bool check)
|
||||
{
|
||||
u64 chksum;
|
||||
|
||||
INI_PRINT(ar9331_1p1_baseband_postamble);
|
||||
INI_PRINT(ar9331_modes_lowest_ob_db_tx_gain_1p1);
|
||||
INI_PRINT(ar9331_modes_high_ob_db_tx_gain_1p1);
|
||||
INI_PRINT(ar9331_modes_low_ob_db_tx_gain_1p1);
|
||||
INI_PRINT(ar9331_1p1_baseband_core_txfir_coeff_japan_2484);
|
||||
INI_PRINT(ar9331_1p1_xtal_25M);
|
||||
INI_PRINT(ar9331_1p1_radio_core);
|
||||
INI_PRINT(ar9331_1p1_soc_postamble);
|
||||
INI_PRINT(ar9331_common_wo_xlna_rx_gain_1p1);
|
||||
INI_PRINT(ar9331_1p1_baseband_core);
|
||||
INI_PRINT(ar9331_modes_high_power_tx_gain_1p1);
|
||||
INI_PRINT(ar9331_1p1_mac_postamble);
|
||||
INI_PRINT(ar9331_1p1_soc_preamble);
|
||||
INI_PRINT(ar9331_1p1_xtal_40M);
|
||||
INI_PRINT(ar9331_1p1_mac_core);
|
||||
INI_PRINT(ar9331_common_rx_gain_1p1);
|
||||
INI_PRINT(ar9331_common_tx_gain_offset1_1);
|
||||
INI_PRINT_ONEDIM(ar9331_1p1_chansel_xtal_25M);
|
||||
INI_PRINT_ONEDIM(ar9331_1p1_chansel_xtal_40M);
|
||||
}
|
||||
|
||||
static void ar9485_hw_print_initvals(bool check)
|
||||
{
|
||||
u64 chksum;
|
||||
|
|
@ -510,7 +558,7 @@ static void ar9580_1p0_hw_print_initvals(bool check)
|
|||
|
||||
static void usage()
|
||||
{
|
||||
printf("Usage: initvals [-w] [-f ar5008 | ar9001 | ar9002 | ar9003-2p2 | ar9485 | ar9580-1p0 ]\n");
|
||||
printf("Usage: initvals [-w] [-f ar5008 | ar9001 | ar9002 | ar9003-2p2 | ar9300-1p1 | ar9485 | ar9580-1p0 ]\n");
|
||||
}
|
||||
|
||||
print_initvals_family(char *family, bool check)
|
||||
|
|
@ -535,6 +583,15 @@ print_initvals_family(char *family, bool check)
|
|||
ar9003_2p2_hw_print_initvals(check);
|
||||
if (!check)
|
||||
printf("#endif /* INITVALS_9003_2P2_H */\n");
|
||||
} else if (strncmp(family, "ar9330-1p1", 10) == 0) {
|
||||
if (!check) {
|
||||
printf("#ifndef INITVALS_9330_1P1_H\n");
|
||||
printf("#define INITVALS_9330_1P1_H\n");
|
||||
printf("\n");
|
||||
}
|
||||
ar9330_1p1_hw_print_initvals(check);
|
||||
if (!check)
|
||||
printf("#endif /* INITVALS_9330_1P1_H */\n");
|
||||
} else if (strncmp(family, "ar9485", 6) == 0) {
|
||||
if (!check) {
|
||||
printf("#ifndef INITVALS_9485_H\n");
|
||||
|
|
@ -572,6 +629,7 @@ int main(int argc, void *argv[])
|
|||
ar9001_hw_print_initvals(false);
|
||||
ar9002_hw_print_initvals(false);
|
||||
ar9003_2p2_hw_print_initvals(false);
|
||||
ar9330_1p1_hw_print_initvals(false);
|
||||
ar9485_hw_print_initvals(false);
|
||||
ar9580_1p0_hw_print_initvals(false);
|
||||
|
||||
|
|
@ -600,6 +658,7 @@ int main(int argc, void *argv[])
|
|||
ar9001_hw_print_initvals(true);
|
||||
ar9002_hw_print_initvals(true);
|
||||
ar9003_2p2_hw_print_initvals(true);
|
||||
ar9330_1p1_hw_print_initvals(true);
|
||||
ar9485_hw_print_initvals(true);
|
||||
ar9580_1p0_hw_print_initvals(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue