All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: linux-wireless@vger.kernel.org
Cc: mcgrof@qca.qualcomm.com
Subject: [PATCH 06/11] qca-swiss-army-knife: de-duplicate ar933x initvals
Date: Thu, 28 Jun 2012 02:26:34 +0200	[thread overview]
Message-ID: <1340843199-49821-6-git-send-email-nbd@openwrt.org> (raw)
In-Reply-To: <1340843199-49821-5-git-send-email-nbd@openwrt.org>

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 tools/initvals/initvals.c |   56 ++++++++++++++++++++++++++++++++-------------
 1 files changed, 40 insertions(+), 16 deletions(-)

diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index b655a4c..cae4857 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -572,14 +572,16 @@ static void ar9330_1p1_hw_print_initvals(bool check)
 	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_DUP(ar9331_1p1_baseband_core_txfir_coeff_japan_2484,
+		      ar9462_2p0_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_DUP(ar9331_1p1_mac_postamble,
+		      ar9300_2p2_mac_postamble);
 	INI_PRINT(ar9331_1p1_soc_preamble);
 	INI_PRINT(ar9331_1p1_xtal_40M);
 	INI_PRINT(ar9331_1p1_mac_core);
@@ -589,22 +591,44 @@ static void ar9330_1p1_hw_print_initvals(bool check)
 
 static void ar9330_1p2_hw_print_initvals(bool check)
 {
-	INI_PRINT(ar9331_modes_lowest_ob_db_tx_gain_1p2);
-	INI_PRINT(ar9331_1p2_baseband_postamble);
 	INI_PRINT(ar9331_modes_high_ob_db_tx_gain_1p2);
-	INI_PRINT(ar9331_modes_low_ob_db_tx_gain_1p2);
-	INI_PRINT(ar9331_1p2_baseband_core_txfir_coeff_japan_2484);
-	INI_PRINT(ar9331_1p2_xtal_25M);
+	INI_PRINT_DUP(ar9331_modes_high_power_tx_gain_1p2,
+		      ar9331_modes_high_ob_db_tx_gain_1p2);
+	INI_PRINT_DUP(ar9331_modes_low_ob_db_tx_gain_1p2,
+		      ar9331_modes_high_power_tx_gain_1p2);
+	INI_PRINT_DUP(ar9331_modes_lowest_ob_db_tx_gain_1p2,
+		      ar9331_modes_low_ob_db_tx_gain_1p2);
+
+	INI_PRINT_DUP(ar9331_1p2_baseband_postamble,
+		      ar9331_1p1_baseband_postamble);
+
 	INI_PRINT(ar9331_1p2_radio_core);
-	INI_PRINT(ar9331_1p2_soc_postamble);
-	INI_PRINT(ar9331_common_wo_xlna_rx_gain_1p2);
-	INI_PRINT(ar9331_1p2_baseband_core);
-	INI_PRINT(ar9331_modes_high_power_tx_gain_1p2);
-	INI_PRINT(ar9331_1p2_mac_postamble);
-	INI_PRINT(ar9331_1p2_soc_preamble);
-	INI_PRINT(ar9331_1p2_xtal_40M);
-	INI_PRINT(ar9331_1p2_mac_core);
-	INI_PRINT(ar9331_common_rx_gain_1p2);
+	INI_PRINT_DUP(ar9331_1p2_baseband_core_txfir_coeff_japan_2484,
+		      ar9331_1p1_baseband_core_txfir_coeff_japan_2484);
+
+	INI_PRINT_DUP(ar9331_1p2_xtal_25M, ar9331_1p1_xtal_25M);
+	INI_PRINT_DUP(ar9331_1p2_xtal_40M, ar9331_1p1_xtal_40M);
+
+	INI_PRINT_DUP(ar9331_1p2_baseband_core,
+		      ar9331_1p1_baseband_core);
+
+	INI_PRINT_DUP(ar9331_1p2_soc_postamble,
+		      ar9331_1p1_soc_postamble);
+
+	INI_PRINT_DUP(ar9331_1p2_mac_postamble,
+		      ar9331_1p1_mac_postamble);
+
+	INI_PRINT_DUP(ar9331_1p2_soc_preamble,
+		      ar9331_1p1_soc_preamble);
+
+	INI_PRINT_DUP(ar9331_1p2_mac_core,
+		      ar9331_1p1_mac_core);
+
+	INI_PRINT_DUP(ar9331_common_wo_xlna_rx_gain_1p2,
+		      ar9331_common_wo_xlna_rx_gain_1p1);
+
+	INI_PRINT_DUP(ar9331_common_rx_gain_1p2,
+		      ar9485Common_rx_gain_1_0);
 }
 
 static void ar9340_hw_print_initvals(bool check)
-- 
1.7.3.2


  reply	other threads:[~2012-06-28  0:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28  0:26 [PATCH 01/11] qca-swiss-army-knife: fix .gitignore for initvals Felix Fietkau
2012-06-28  0:26 ` [PATCH 02/11] qca-swiss-army-knife: add ar9340 initvals Felix Fietkau
2012-06-28  0:26   ` [PATCH 03/11] qca-swiss-army-knife: only depend on ath9k header files if ATHEROS is unset Felix Fietkau
2012-06-28  0:26     ` [PATCH 04/11] qca-swiss-army-knife: remove chansel tables from initvals Felix Fietkau
2012-06-28  0:26       ` [PATCH 05/11] qca-swiss-army-knife: add a macro for de-duplicating initval tables Felix Fietkau
2012-06-28  0:26         ` Felix Fietkau [this message]
2012-06-28  0:26           ` [PATCH 07/11] qca-swiss-army-knife: sync initvals with ath9k and refresh Felix Fietkau
2012-06-28  0:26             ` [PATCH 08/11] qca-swiss-army-knife: de-duplicate ar9485 initvals Felix Fietkau
2012-06-28  0:26               ` [PATCH 09/11] qca-swiss-army-knife: de-duplicate ar9580 initvals Felix Fietkau
2012-06-28  0:26                 ` [PATCH 10/11] qca-swiss-army-knife: de-duplicate ar9340 initvals Felix Fietkau
2012-06-28  0:26                   ` [PATCH 11/11] qca-swiss-army-knife: refresh initvals Felix Fietkau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1340843199-49821-6-git-send-email-nbd@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.