Commit graph

177 commits

Author SHA1 Message Date
Kalle Valo
26f9460b33 Update ath10k-fwencoder
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
f371c26cea Update ath10k-check
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-07-03 21:16:33 +03:00
Kalle Valo
3ead7a23e8 Update ath10k-fw-repo
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
e92ab4b9b9 Update ath10k-bdencoder
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
a208017c60 Update ath10k-fwencoder
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
30da9160b8 Update ath10k-check
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-10-31 13:27:10 +02:00
Kalle Valo
d9c3d5857a tools: ath10k-check: enable SYMBOLIC_PERMS checkpatch check
The issues in ath10k have been fixed now.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-05-05 10:46:58 +03:00
Kalle Valo
e23fbd3c96 tools: ath10k-check: enable BLOCK_COMMENT_STYLE checkpatch warning
Since ath10k commit 37ff1b0df37a ("ath10k: clean header files from bad block
comments", going to 4.12) ath10k has been cleaned with all block comment
issues. So now we can enable the checkpatch warning.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-04-05 11:42:37 +03:00
Kalle Valo
d278f25bc9 tools: update ath10k-[fw|bd]encoder
New features and bugfixes.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-10 13:05:18 +02:00
Kalle Valo
496c42817e tools: ath10k-check: add --extra command line switch
This is for running optional checks which we haven't fixed yet or might be
false positive. Currently enables only W=1 for kernel.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-08 11:28:04 +02:00
Kalle Valo
25d27878f4 tools: ath10k-check: document more ignored checkpatch warnings
I should clean up that at some point and try to reduce it.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-07 15:08:51 +02:00
Kalle Valo
ceb26e3416 tools: ath10k-check: apply --no-filter switch also for checkpatch filter
Just for consistency.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-07 15:00:07 +02:00
Kalle Valo
b9a32cfd44 tools: ath10k-check: add --version command line switch
To make it easier to check all versions.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-07 14:53:19 +02:00
Kalle Valo
f33d779002 scripts: ath10k-check: filter warnings not coming from ath directory
By default the script now does not show any warnings outside ath directory, but
with --no-filter that can be disabled:

$ ath10k-check
$ ath10k-check --no-filter
./arch/x86/include/asm/uaccess.h:714:18: warning: incorrect type in argument 1 (different modifiers)
./arch/x86/include/asm/uaccess.h:714:18:    expected void *<noident>
./arch/x86/include/asm/uaccess.h:714:18:    got void const *from
./include/linux/relay.h:209:16: warning: incorrect type in initializer (different address spaces)
./include/linux/relay.h:209:16:    expected void const [noderef] <asn:3>*__vpp_verify
./include/linux/relay.h:209:16:    got struct rchan_buf **<noident>
$

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-02 15:05:21 +02:00
Kalle Valo
4d0fe54348 scripts: ath10k-check: fix nproc command
For testing purposes I had used 'nproc2' but forgot to change that before
commit.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-02 14:45:36 +02:00
Kalle Valo
e07a588ad4 scripts: ath10k-check: add usage and installation instructions
Hopefully this is now easier for people to use. Also use nproc to get the
number of cores available.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-02-02 13:58:58 +02:00
Kalle Valo
d2a219ab16 tools: ath10k-check: run checkpatch in parallel
A lot faster now.
2016-08-31 10:02:35 +03:00
Kalle Valo
a34666a4fc ath10k scripts: add ath10k-fw-repo
Add a script for installing firmware images from ath10k-firmware.git
repository and help with other firmware management related tasks.

usage: ath10k-fw-repo [-h] [--debug] [--dry-run] [--check] [--list]
                      [--install DESTINATION] [--unit-test]

Install firmware images from the ath10k-firmware git repository. Run it from
the top directory of the working tree.

optional arguments:
  -h, --help            show this help message and exit
  --debug               Enable debug messages.
  --dry-run             Do not run any actual commands.
  --check               Check the ath10k-firmware repository content for
                        validity.
  --list                List all files found from the ath10k-firmware
                        repository.
  --install DESTINATION
                        Install all ath10k firmware images to DESTINATION
                        folder, for example /lib/firmware.
  --unit-test           Run unit tests for this script.


Screenshot:

$ ath10k-fw-repo --install /lib/firmware
Unknown file: QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin
Unknown file: QCA99X0/hw2.0/boardData_AR900B_CUS260_2G_v2_002.bin
Installing QCA9377/hw1.0/firmware-5.bin (WLAN.TF.1.0-00267-1)
Installing QCA9377/hw1.0/notice_ath10k_firmware-5.txt (WLAN.TF.1.0-00267-1)
Installing QCA9377/hw1.0/board.bin
Installing QCA9377/hw1.0/board-2.bin
Installing QCA988X/hw2.0/firmware-5.bin (10.2.4.70.54)
Installing QCA988X/hw2.0/notice_ath10k_firmware-5.txt (10.2.4.70.54)
Installing QCA988X/hw2.0/board.bin
Installing QCA4019/hw1.0/firmware-5.bin (10.4-3.2-00080)
Installing QCA4019/hw1.0/notice_ath10k_firmware-5.txt (10.4-3.2-00080)
Installing QCA4019/hw1.0/board-2.bin
Installing QCA9888/hw2.0/firmware-5.bin (10.4-3.2-00072)
Installing QCA9888/hw2.0/board-2.bin
Installing QCA9887/hw1.0/firmware-5.bin (10.2.4-1.0-00013)
Installing QCA9887/hw1.0/notice_ath10k_firmware-5.txt (10.2.4-1.0-00013)
Installing QCA9887/hw1.0/board.bin
Installing QCA99X0/hw2.0/firmware-5.bin (10.4.1.00030-1)
Installing QCA99X0/hw2.0/notice_ath10k_firmware-5.txt (10.4.1.00030-1)
Installing QCA6174/hw3.0/firmware-4.bin (WLAN.RM.2.0-00180-QCARMSWPZ-1)
Installing QCA6174/hw3.0/notice_ath10k_firmware-4.txt (WLAN.RM.2.0-00180-QCARMSWPZ-1)
Installing QCA6174/hw3.0/board-2.bin
Installing QCA6174/hw3.0/board.bin
Installing QCA6174/hw2.1/firmware-5.bin (SW_RM.1.1.1-00157-QCARMSWPZ-1)
Installing QCA6174/hw2.1/notice_ath10k_firmware-5.txt (SW_RM.1.1.1-00157-QCARMSWPZ-1)
Installing QCA6174/hw2.1/board.bin
Installing QCA6174/hw2.1/board-2.bin
Installing QCA9984/hw1.0/firmware-5.bin (10.4-3.2-00072)
Installing QCA9984/hw1.0/notice_ath10k_firmware-5.txt (10.4-3.2-00072)
Installing QCA9984/hw1.0/board-2.bin
$
2016-08-23 14:08:06 +03:00
Kalle Valo
d610cee8b7 ath10k-check: add new checkpatch warnings to ignore
I updated checkpatch and saw quite a lot of new warnings. Disable the ones
which don't really make sense.
2016-03-24 16:24:53 +02:00
Kalle Valo
b2b06517bb scripts: ath10k: add ath10k-fwencoder and ath10k-bdencoder
Scripts for handling ath10k firmware image container format.
2015-12-03 17:41:27 +02:00
Kalle Valo
41b194534b ath10k-check: fix object file deletion
It didn't work as I had forgetten to enable shell to get wildcard extensions
work.
2015-10-09 10:53:10 +03:00
Kalle Valo
587f0ca617 add ath10k-check 2015-10-01 12:15:40 +03:00
Sujith Manoharan
6d32fea2d2 initvals: Add mix ob/db tx gain table for AR9462 2.0
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-07-15 12:05:35 -07:00
Sujith Manoharan
8acc7b7bc9 initvals: Add support for AR9462 2.1
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-07-15 12:05:35 -07:00
Sujith Manoharan
496ac7d700 initvals: Add rxgain tables for AR9462
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-07-15 12:05:34 -07:00
Sujith Manoharan
43438ab80b initvals: Add ar9462_2p0_5g_xlna_only_rxgain table
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-07-15 12:05:34 -07:00
Sujith Manoharan
65b32571db initvals: Add 5g-XLNA table for AR9462
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-07-15 12:05:34 -07:00
Sujith Manoharan
0c8d850849 initvals: Update inivals for AR9462 2.0
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-07-15 12:05:34 -07:00
Sujith Manoharan
fb0da09651 initvals: Update initivals for AR9565
* Register Modification for xLNA board.
* TX gain table modification for zero calibration.
* AUX chain (LNA2) sensitivity enhancement
* Modify diversity bias default setting in INI.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-05-09 00:48:10 -07:00
Sujith Manoharan
da261b1555 initvals: Update AR9462 initvals
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-03-06 18:04:55 -08:00
Sujith Manoharan
c6ac8ad9aa initvals: Remove unused ini files
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-03-06 18:04:51 -08:00
Sujith Manoharan
f0dfb34075 qca-swiss-army-knife: Update AR955x initvals
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2013-01-08 14:41:30 -06:00
Gabor Juhos
50b65746cf qca-swiss-army-knife: print ar9280PciePhy_awow array
This array has been introduced by commit
3b604b6cf811ba14e4c2bb3005e29bb2fba77af0
(ath9k_hw: INI changes for WoW for AR9002
chipsets) in linux, but it is not printed
from initvals.

Add it, and update ar9002_initvals.h and
checksums.txt.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-19 10:38:15 -08:00
Gabor Juhos
4b02cb626e qca-swiss-army-knife: don't print ar9285PciePhy_clkreq_off_L1_9285 array
It is a dupe of 'ar9280PciePhy_clkreq_off_L1_9280', and
it is not used in ath9k. I forgot to remove it in commit
'qca-swiss-army-knife: fix build errors if ATH9K_DIR is used'

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-19 10:38:13 -08:00
Gabor Juhos
23a9dcb8f7 qca-swiss-army-knife: fix build errors if ATH9K_DIR is used
Some initval arrays were removed from ath9k with the
upstream commit 14fec8d9baffc026beaffa2ee9e911df9d1d4ad2
(ath9k_hw: remove duplicate initvals).

Due to the missing symbols, this causes build errors
when the ATHEROS Makefile variable is not set, and
an external ATH9K_DIR is specified:

  $ make clean all ATH9K_DIR=/devel/wireless-testing/drivers/net/wireless/ath/ath9k
  rm -f initvals
  gcc  -I"/devel/wireless-testing/drivers/net/wireless/ath/ath9k" -o initvals initvals.c sha1.c
  initvals.c: In function ‘ar9001_hw_print_initvals’:
  initvals.c:588:2: error: ‘ar5416Bank0_9100’ undeclared (first use in this function)
  initvals.c:588:2: note: each undeclared identifier is reported only once for each function it appears in
  initvals.c:589:2: error: ‘ar5416BB_RfGain_9100’ undeclared (first use in this function)
  initvals.c:590:2: error: ‘ar5416Bank1_9100’ undeclared (first use in this function)
  initvals.c:591:2: error: ‘ar5416Bank2_9100’ undeclared (first use in this function)
  initvals.c:592:2: error: ‘ar5416Bank3_9100’ undeclared (first use in this function)
  initvals.c:595:2: error: ‘ar5416Bank7_9100’ undeclared (first use in this function)
  initvals.c:599:2: error: ‘ar5416Bank0_9160’ undeclared (first use in this function)
  initvals.c:600:2: error: ‘ar5416BB_RfGain_9160’ undeclared (first use in this function)
  initvals.c:601:2: error: ‘ar5416Bank1_9160’ undeclared (first use in this function)
  initvals.c:602:2: error: ‘ar5416Bank2_9160’ undeclared (first use in this function)
  initvals.c:603:2: error: ‘ar5416Bank3_9160’ undeclared (first use in this function)
  initvals.c:604:2: error: ‘ar5416Bank6_9160’ undeclared (first use in this function)
  initvals.c:605:2: error: ‘ar5416Bank6TPC_9160’ undeclared (first use in this function)
  initvals.c:606:2: error: ‘ar5416Bank7_9160’ undeclared (first use in this function)
  initvals.c: In function ‘ar9002_hw_print_initvals’:
  initvals.c:597:2: error: ‘ar9285PciePhy_clkreq_always_on_L1_9285’ undeclared (first use in this function)
  initvals.c:598:2: error: ‘ar9285PciePhy_clkreq_off_L1_9285’ undeclared (first use in this function)
  initvals.c:605:2: error: ‘ar9285PciePhy_clkreq_always_on_L1_9285_1_2’ undeclared (first use in this function)
  initvals.c:606:2: error: ‘ar9285PciePhy_clkreq_off_L1_9285_1_2’ undeclared (first use in this function)
  initvals.c:613:2: error: ‘ar9287PciePhy_clkreq_always_on_L1_9287_1_1’ undeclared (first use in this function)
  initvals.c:614:2: error: ‘ar9287PciePhy_clkreq_off_L1_9287_1_1’ undeclared (first use in this function)
  initvals.c:617:2: error: ‘ar9271Common_normal_cck_fir_coeff_9271’ undeclared (first use in this function)
  initvals.c:618:2: error: ‘ar9271Common_japan_2484_cck_fir_coeff_9271’ undeclared (first use in this function)
  initvals.c:619:2: error: ‘ar9271Modes_9271_1_0_only’ undeclared (first use in this function)
  make: *** [initvals] Error 1
  $

Add definitions for the missing arrays to avoid
these compiler errors. Also introduce two new
macros and use those for printing the arrays.

After these changes, the initvals tool builds without
errors:

  $ make clean all ATH9K_DIR=/devel/wireless-testing/drivers/net/wireless/ath/ath9k
  rm -f initvals
  gcc  -I"/devel/wireless-testing/drivers/net/wireless/ath/ath9k" -o initvals initvals.c sha1.c
  $

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-17 13:11:12 -08:00
Gabor Juhos
512d3c83dd qca-swiss-army-knife: allow to refresh/verify external ath9k headers
This allows to refresh/verify ath9k specific initvals
existing in an external directory.

  $ make clean refresh ATHEROS=1 TH9K_DIR=/devel/wireless-testing/drivers/net/wireless/ath/ath9k
  rm -f initvals
  gcc  -I"/devel/wireless-testing/drivers/net/wireless/ath/ath9k" DATHEROS -o initvals initvals.c sha1.c
  ./initvals -w -f ar5008 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar5008_initvals.h
  ./initvals -w -f ar9001 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9001_initvals.h
  ./initvals -w -f ar9002 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9002_initvals.h
  ./initvals -w -f ar9003-2p2 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h
  ./initvals -w -f ar9330-1p1 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9330_1p1_initvals.h
  ./initvals -w -f ar9330-1p2 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9330_1p2_initvals.h
  ./initvals -w -f ar9340 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9340_initvals.h
  ./initvals -w -f ar9485 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9485_initvals.h
  ./initvals -w -f ar955x-1p0 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar955x_1p0_initvals.h
  ./initvals -w -f ar9580-1p0 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h
  ./initvals -w -f ar9462-2p0 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9462_2p0_initvals.h
  ./initvals -w -f ar9565-1p0 > /devel/wireless-testing/drivers/net/wireless/ath/ath9k/ar9565_1p0_initvals.h
  ./initvals > checksums.txt
  $

  $ ATH9K_DIR=/devel/wireless-testing/drivers/net/wireless/ath/ath9k ./verify_checksums.sh
  ar5008         7340125997ffffe26a3bfc854c5b9dce74b86152 pass
  ar9001         8a4557f6a4e5ad2b01a40ca0519940ab775572aa pass
  ar9002         67813ac6decf14f5221dd3c41126f23f4d333fc4 pass
  ar9003-2p2     fdcc27a4327c6bb5e82bc7ded7387e06a2c82bb0 pass
  ar9330-1p1     e01b965b87c98d865b43e5febf37cb067644e56b pass
  ar9330-1p2     ab7e2aa014d2a9bd5cefad261999868888fc570e pass
  ar9340         038a5891dc5074686e02485e6b027a8daf0dfe14 pass
  ar9462-1p0     da39a3ee5e6b4b0d3255bfef95601890afd80709 pass
  ar9485         bbe34977a5de7a913333149ff322e767b53ec9e3 pass
  ar955x-1p0     ae1b560d1201e94c494653de3a7ecbe72e609098 pass
  ar9565-1p0     89ba21cad9233c461311ef0256945b8f03a93313 pass
  ar9580-1p0     cbdf2a5efad22be6694b586f8bd9c6605697cb9f pass
  $

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-14 10:20:32 -08:00
Gabor Juhos
68671a02fc qca-swiss-army-knife: update checksums.txt
Due to the recent changes in AR9340 initvals,
checksums.txt needs to be updated.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-13 12:48:46 -08:00
Gabor Juhos
a41dc6126b qca-swiss-army-knife: automatically detect wide initval arrays
The number of the columns to be printed usually equals
with the actual columns. The only exceptions are the
Modes arrays, where the last column is not used by
ath9k.

The patch modifies the 'ath9k_get_p_columns' helper
so that can determine the correct number of columns
based on the name of the array. The the patch also
removes the 'wide' argument of various functions
because that is not necessary anymore. Additionaly,
the superfluous INI_PRINTW macro is removed as well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-11 15:14:34 -08:00
Gabor Juhos
b6f1aac340 qca-swiss-army-knife: add 'ath9k_get_p_columns' helper
The number of the columns to be printed is computed in
two different function. Add a helper function for that
and remove the duplicated code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-11 15:14:32 -08:00
Gabor Juhos
f6c4413166 qca-swiss-army-knife: remove the artificial column size limitation
It is obsolete since the SHA1 checksums are used.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-11 15:14:30 -08:00
Sujith Manoharan
177b2b1fbc qca-swiss-army-knife: Update initvals for AR9340
The SLP32_MODE/INC registers have to be programmed with
values based on the ref. clock, which could be either 25MHz
or 40MHz. Incorrect values in these registers results in
TSF drift.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-11 12:30:01 -08:00
Gabor Juhos
656d6b1fa3 qca-swiss-army-knife: allow to verify AR955X initvals
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-06 14:18:36 -08:00
Gabor Juhos
d05fa92c34 qca-swiss-army-knife: add checksums for AR955X initvals
Now that initvals supports the AR955X family,
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:36 -08:00
Gabor Juhos
5ded91fcee qca-swiss-army-knife: add initval support for AR955X
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
2012-12-06 14:18:36 -08:00
Gabor Juhos
a8d97f0ce8 qca-swiss-army-knife: allow to print initvals with more than 5 columns
This is required for the QCA955X initvals, because that
contain some arrays with 9 columns.

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
564ea20dd8 qca-swiss-army-knife: simplify initval family handling
The current code contain lots of duplication in order to
print initval arrays for different families. Refactor the
code to get rid of the duplications. This makes the code
a bit clener, and adding support for a new family will be
easier as well.

Aslo update checksums.txt because the initvals for AR9462
are printed before AR9580.

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
b9c9682727 qca-swiss-army-knife: reformat INI_PRINT_* macros
Keep the length of the macro lines under 80 character.

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
62b69083df qca-swiss-army-knife: add ar9462-2p0 to the usage text
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
95d10e6dca qca-swiss-army-knife: fix string length for ar9340
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
248f3d5a3e qca-swiss-army-knife: add missing families to verify_checksums.sh
Add the missing ar9340, ar9462-1p0, ar9565-1p0
families to the 'verify_checksums.sh' script.

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