Commit graph

177 commits

Author SHA1 Message Date
Gabor Juhos
05d5a09ff6 qca-swiss-army-knife: fix comment in ar9340_initvals.h
The comment at the end of the 'ar9340_initvals.h'
header does not match with defined constant. Fix it.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-06 14:18:35 -08:00
Gabor Juhos
a1d9a3df73 qca-swiss-army-knife: print AR9565 initvals
The initvals tool contain support for the
AR9565 chip, however the sha1sum values and
the actual initval arrays are not printend
when 'initvals' is called without a family
parameter.

Add the missing 'ar9565_1p0_hw_print_initvals()'
calls to fix this. Also refresh checksums.txt.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-06 14:18:35 -08:00
Gabor Juhos
de75518feb qca-swiss-army-knife: fix ar9330_1p2_initvals.h
The 'ar9331_common_rx_gain_1p2' array was a dupe
of 'ar9485_common_rx_gain_1_1'. Since commit
8a72181377 (Update
AR9485 initvals) this is no longer the case.

Because the SHA1 values of the two arrays are
different now, verify_checksum.sh complains:

  $./verify_checksums.sh
  ar5008         7340125997ffffe26a3bfc854c5b9dce74b86152 pass
  ar9001         8a4557f6a4e5ad2b01a40ca0519940ab775572aa pass
  ar9002         67813ac6decf14f5221dd3c41126f23f4d333fc4 pass
  ar9003-2p2     fdcc27a4327c6bb5e82bc7ded7387e06a2c82bb0 pass
  ar9330-1p1     e01b965b87c98d865b43e5febf37cb067644e56b pass
  ar9330-1p2     ab7e2aa014d2a9bd5cefad261999868888fc570e fail
  +1d9e632b3fdcb2db52f95dd75ff2eac31fcac0d6	ar9331_common_rx_gain_1p2
  ar9485         bbe34977a5de7a913333149ff322e767b53ec9e3 pass
  ar9580-1p0     cbdf2a5efad22be6694b586f8bd9c6605697cb9f pass
  $

Use the INI_PRINT macro for the 'ar9331_common_rx_gain_1p2'
array and refresh the 'ar9330_1p2_initvals.h' header.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-06 14:18:35 -08:00
Gabor Juhos
44bd447796 qca-swiss-army-knife: refresh checksums.txt
The initvals of the AR9462 and AR9485 chips
has been updated recently, but checksums.txt
does not reflects that. Refresh it in order to
contain the actual sha1sum values.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-06 14:18:35 -08:00
Rajkumar Manoharan
4f5fcc81e5 qca-swiss-army-knife: Add support to dump AR9003 chips EEPROM
Add support to dump base and modal eeprom header of AR9003 family
chips.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-05 10:38:17 -08:00
Rajkumar Manoharan
5fbd4b3d4d qca-swiss-army-knife: refresh 9565 initvals
Enable hw PLL power save to reduce power consumption in sleep state

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-11-19 17:28:41 -08:00
Rajkumar Manoharan
a92c5d80aa qca-swiss-army-knife: refresh 9462 initvals
* update dac_async_fifo
* use peak detection for 5GHz
* Fix wrong peak detector DC offset

Signed-off-by: Rajkumar Manoharan &lt;rmanohar@qca.qualcomm.com&gt;
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-11-19 17:28:37 -08:00
Sujith Manoharan
f84ee4b447 qca-swiss-army-knife: Add macro for TXFIR array
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-11-19 17:24:14 -08:00
Sujith Manoharan
8a72181377 qca-swiss-army-knife: Update AR9485 initvals
Sync with the latest INI from systems and fix the version.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-11-19 17:24:06 -08:00
Sujith Manoharan
638f1a715a qca-swiss-army-knife: Update AR9565 initvals
* Set BB_tpc_1.enable_pd_calibrate to 0

* Set BB_cl_cal_ctrl.enable_parallel_cal to 1

* Enable "enable_dac_async_fifo" and "enable_adc_async_fifo"
  to fix some dac/adc timing issue,
  e.g. EVM won't degrade when setting core voltage to 1.15V.

  Set BB_gen_controls.enable_dac_async_fifo=1
  Set BB_gen_controls.enable_adc_async_fifo=1

* Improve LNA2 Sensitivity ~1dB
  Set ch0_PLLCLKMODA2WLAN.inv_clk320_adc_ch0 = 1

* Correct alternate chain RSSI when doing diversity
  Set BB_bbb_sig_detect.ant_switch_time to 63

* Refer to RACK RX gain report and modify RF gain table for LNA2

* Invert the phase of the root of both clocks
  (setting flip_pllclk320 = 1) and set inv_clk320_adc back = 0.

  Set ch0_PLLCLKMODA2WLAN.flip_pllclk320 to 1
  Set ch0_PLLCLKMODA2WLAN.inv_clk320_adc_ch0 to 0

* Remove MAC PCU registers MAC_PCU_TSF_L32/MAC_PCU_TSF_U32.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-09-12 10:53:06 -07:00
Sujith Manoharan
0aa76572fe qca-swiss-army-knife: Add AR9565 support
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-09-12 10:52:47 -07:00
Sujith Manoharan
b2faf3e50d qca-swiss-army-knife: Add a tool to dump EEPROM
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-07-23 11:03:12 -07:00
Luis R. Rodriguez
171aa7197b qca-swiss-army-knife: move ath9k scripts to its own directory
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-06-28 17:05:31 -07:00
Felix Fietkau
61fc756511 qca-swiss-army-knife: refresh initvals
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:06 -07:00
Felix Fietkau
2f0eaa490e qca-swiss-army-knife: de-duplicate ar9340 initvals
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:06 -07:00
Felix Fietkau
d502b57776 qca-swiss-army-knife: de-duplicate ar9580 initvals
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:06 -07:00
Felix Fietkau
cfe37b03d9 qca-swiss-army-knife: de-duplicate ar9485 initvals
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:06 -07:00
Felix Fietkau
d1a30cad56 qca-swiss-army-knife: sync initvals with ath9k and refresh
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:05 -07:00
Felix Fietkau
d9f61df792 qca-swiss-army-knife: de-duplicate ar933x initvals
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:05 -07:00
Felix Fietkau
d4468f110c qca-swiss-army-knife: add a macro for de-duplicating initval tables
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:05 -07:00
Felix Fietkau
0905f07d46 qca-swiss-army-knife: remove chansel tables from initvals
Unused in ath9k, replaced by dynamic calculation

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:05 -07:00
Felix Fietkau
b134891b04 qca-swiss-army-knife: only depend on ath9k header files if ATHEROS is unset
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:05 -07:00
Felix Fietkau
1430882157 qca-swiss-army-knife: add ar9340 initvals
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-06-27 17:54:05 -07:00
Luis R. Rodriguez
b14f751cfd qca-swiss-army-knife: halregdump: add original HAL -> CRDA dump code
This adds the code used to do the final work for the Atheros HAL regulatory
dump to a CRDA db.txt. The Atheros HAL regulatory code was the only source
of information we had at that time for regulatory information.

This code is the final resulting work of the changes made to Atheros
HAL code to extract regulatory information using a new format for CRDA.
The hal-reg-dump tool was used to scrape the Atheros HAL for regulatory
informationa and extract it in a legible form.

Putting this on a public tree for historical purposes, the code itself
diverges quite a bit from what was merged on ath9k on 2.6.27 since this
code was written prior that merge effort.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2012-05-25 12:46:40 -07:00
Luis R. Rodriguez
e23417edf7 qca-swiss-army-knife: add read-powers support
This python script can be used to read and interpret the power
rate registers for AR9003 using ath9k through debugfs. To use this you
will need applied:

0001-ath9k-Add-debugfs-interface-to-dump-registers.patch

from the crap/ directory of compat-wireless

Usage: cat /sys/kernel/debug/ath9k/phy0/regdump | read-powers

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2012-05-25 12:43:42 -07:00
Luis R. Rodriguez
e1aae2b82b qca-swiss-army-knife: scripts: add irq-watch
This adds an IRQ watch for the ath9k debugfs interrupt file.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
2012-05-25 12:43:37 -07:00
Luis R. Rodriguez
fc4d32e21b qca-swiss-army-knife: add tools directory for initvals
We are going to rename this git tree to qca-swiss-army-knife.git
and add more tools, as such lets throw the initvals work into
its own directory and allow for other tools to be thrown in here.
Lets add our own top level copyright license, and a simple README.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
2012-05-25 12:37:52 -07:00