2012-11-14 06:28:38

by Rajkumar Manoharan

[permalink] [raw]
Subject: [PATCH 1/2] 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 <[email protected]>
---
tools/initvals/ar9462_2p0_initvals.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/initvals/ar9462_2p0_initvals.h b/tools/initvals/ar9462_2p0_initvals.h
index 17094f9..ccc42a7 100644
--- a/tools/initvals/ar9462_2p0_initvals.h
+++ b/tools/initvals/ar9462_2p0_initvals.h
@@ -58,11 +58,11 @@ static const u32 ar9462_2p0_baseband_postamble[][5] = {
{0x00009e1c, 0x0001cf9c, 0x0001cf9c, 0x00021f9c, 0x00021f9c},
{0x00009e20, 0x000003b5, 0x000003b5, 0x000003ce, 0x000003ce},
{0x00009e2c, 0x0000001c, 0x0000001c, 0x00000021, 0x00000021},
- {0x00009e3c, 0xcf946220, 0xcf946220, 0xcfd5c782, 0xcfd5c282},
+ {0x00009e3c, 0xcf946222, 0xcf946222, 0xcfd5c782, 0xcfd5c282},
{0x00009e44, 0x62321e27, 0x62321e27, 0xfe291e27, 0xfe291e27},
{0x00009e48, 0x5030201a, 0x5030201a, 0x50302012, 0x50302012},
{0x00009fc8, 0x0003f000, 0x0003f000, 0x0001a000, 0x0001a000},
- {0x0000a204, 0x013187c0, 0x013187c4, 0x013187c4, 0x013187c0},
+ {0x0000a204, 0x01318fc0, 0x01318fc4, 0x01318fc4, 0x01318fc0},
{0x0000a208, 0x00000104, 0x00000104, 0x00000004, 0x00000004},
{0x0000a22c, 0x01026a2f, 0x01026a27, 0x01026a2f, 0x01026a2f},
{0x0000a230, 0x0000400a, 0x00004014, 0x00004016, 0x0000400b},
@@ -78,7 +78,7 @@ static const u32 ar9462_2p0_baseband_postamble[][5] = {
{0x0000a284, 0x00000000, 0x00000000, 0x00000150, 0x00000150},
{0x0000a288, 0x00000110, 0x00000110, 0x00000110, 0x00000110},
{0x0000a28c, 0x00022222, 0x00022222, 0x00022222, 0x00022222},
- {0x0000a2c4, 0x00158d18, 0x00158d18, 0x00158d18, 0x00158d18},
+ {0x0000a2c4, 0x00058d18, 0x00058d18, 0x00058d18, 0x00058d18},
{0x0000a2d0, 0x00041981, 0x00041981, 0x00041981, 0x00041982},
{0x0000a2d8, 0x7999a83b, 0x7999a83b, 0x7999a83b, 0x7999a83b},
{0x0000a358, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
--
1.8.0



2012-11-14 06:28:48

by Rajkumar Manoharan

[permalink] [raw]
Subject: [PATCH 2/2] qca-swiss-army-knife: refresh 9565 initvals

Enable hw PLL power save to reduce power consumption in sleep state

Signed-off-by: Rajkumar Manoharan <[email protected]>
---
tools/initvals/ar9565_1p0_initvals.h | 4 ++--
tools/initvals/initvals.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/initvals/ar9565_1p0_initvals.h b/tools/initvals/ar9565_1p0_initvals.h
index 843e79f..0c2ac0c 100644
--- a/tools/initvals/ar9565_1p0_initvals.h
+++ b/tools/initvals/ar9565_1p0_initvals.h
@@ -768,9 +768,9 @@ static const u32 ar9565_1p0_Modes_lowest_ob_db_tx_gain_table[][5] = {
{0x00016054, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
};

-static const u32 ar9565_1p0_pciephy_pll_on_clkreq_disable_L1[][2] = {
+static const u32 ar9565_1p0_pciephy_clkreq_disable_L1[][2] = {
/* Addr allmodes */
- {0x00018c00, 0x18212ede},
+ {0x00018c00, 0x18213ede},
{0x00018c04, 0x000801d8},
{0x00018c08, 0x0003780c},
};
diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index 525d6cc..9b2fa27 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -315,7 +315,7 @@ typedef long long unsigned int u64;
#define ar9565_1p0_mac_postamble ar956X_aphrodite_1p0_mac_postamble
#define ar9565_1p0_radio_postamble ar956X_aphrodite_1p0_radio_postamble
#define ar9565_1p0_Common_rx_gain_table ar956XCommon_rx_gain_table_aphrodite_1p0
-#define ar9565_1p0_pciephy_pll_on_clkreq_disable_L1 ar956X_PciePhy_pll_on_clkreq_disable_L1_aphrodite_1p0
+#define ar9565_1p0_pciephy_clkreq_disable_L1 ar956X_PciePhy_pll_on_clkreq_disable_L1_aphrodite_1p0
#define ar9565_1p0_baseband_postamble_emulation ar956X_aphrodite_1p0_baseband_postamble_emulation
#define ar9565_1p0_radio_core ar956X_aphrodite_1p0_radio_core
#define ar9565_1p0_baseband_postamble ar956X_aphrodite_1p0_baseband_postamble
@@ -780,7 +780,7 @@ static void ar9565_1p0_hw_print_initvals(bool check)
INI_PRINT(ar9565_1p0_soc_postamble);
INI_PRINT(ar9565_1p0_Common_rx_gain_table);
INI_PRINT(ar9565_1p0_Modes_lowest_ob_db_tx_gain_table);
- INI_PRINT(ar9565_1p0_pciephy_pll_on_clkreq_disable_L1);
+ INI_PRINT(ar9565_1p0_pciephy_clkreq_disable_L1);
INI_PRINT(ar9565_1p0_modes_fast_clock);
INI_PRINT(ar9565_1p0_common_wo_xlna_rx_gain_table);
INI_PRINT(ar9565_1p0_modes_low_ob_db_tx_gain_table);
--
1.8.0


2012-11-20 01:30:07

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH 1/2] qca-swiss-army-knife: refresh 9462 initvals

On Tue, Nov 13, 2012 at 10:28 PM, Rajkumar Manoharan
<[email protected]> wrote:
> * update dac_async_fifo
> * use peak detection for 5GHz
> * Fix wrong peak detector DC offset
>
> Signed-off-by: Rajkumar Manoharan <[email protected]>

Applied and pushed, thanks!

Luis

2012-11-20 01:30:22

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH 2/2] qca-swiss-army-knife: refresh 9565 initvals

On Tue, Nov 13, 2012 at 10:28 PM, Rajkumar Manoharan
<[email protected]> wrote:
> Enable hw PLL power save to reduce power consumption in sleep state
>
> Signed-off-by: Rajkumar Manoharan <[email protected]>

Applied and pushed, thanks!

Luis