Commit 66970e38 authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo

rtlwifi: Update 8723be new phy parameters and its parser.

There are new PHY table values for the RTL8723BE. The changes require
new parsing code.
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ca0e657b
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
*****************************************************************************/ *****************************************************************************/
#include "table.h" #include "table.h"
u32 RTL8723BEPHY_REG_1TARRAY[] = { u32 RTL8723BEPHY_REG_1TARRAY[] = {
0x800, 0x80040000, 0x800, 0x80040000,
0x804, 0x00000003, 0x804, 0x00000003,
...@@ -36,7 +37,7 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = { ...@@ -36,7 +37,7 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = {
0x818, 0x02200385, 0x818, 0x02200385,
0x81C, 0x00000000, 0x81C, 0x00000000,
0x820, 0x01000100, 0x820, 0x01000100,
0x824, 0x00390204, 0x824, 0x00190204,
0x828, 0x00000000, 0x828, 0x00000000,
0x82C, 0x00000000, 0x82C, 0x00000000,
0x830, 0x00000000, 0x830, 0x00000000,
...@@ -73,9 +74,8 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = { ...@@ -73,9 +74,8 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = {
0x90C, 0x81121111, 0x90C, 0x81121111,
0x910, 0x00000002, 0x910, 0x00000002,
0x914, 0x00000201, 0x914, 0x00000201,
0x948, 0x00000280,
0xA00, 0x00D047C8, 0xA00, 0x00D047C8,
0xA04, 0x80FF000C, 0xA04, 0x80FF800C,
0xA08, 0x8C838300, 0xA08, 0x8C838300,
0xA0C, 0x2E7F120F, 0xA0C, 0x2E7F120F,
0xA10, 0x9500BB78, 0xA10, 0x9500BB78,
...@@ -114,7 +114,7 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = { ...@@ -114,7 +114,7 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = {
0xC4C, 0x007F037F, 0xC4C, 0x007F037F,
0xC50, 0x69553420, 0xC50, 0x69553420,
0xC54, 0x43BC0094, 0xC54, 0x43BC0094,
0xC58, 0x00023169, 0xC58, 0x00013147,
0xC5C, 0x00250492, 0xC5C, 0x00250492,
0xC60, 0x00000000, 0xC60, 0x00000000,
0xC64, 0x7112848B, 0xC64, 0x7112848B,
...@@ -125,7 +125,7 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = { ...@@ -125,7 +125,7 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = {
0xC78, 0x0000001F, 0xC78, 0x0000001F,
0xC7C, 0x00B91612, 0xC7C, 0x00B91612,
0xC80, 0x390000E4, 0xC80, 0x390000E4,
0xC84, 0x20F60000, 0xC84, 0x21F60000,
0xC88, 0x40000100, 0xC88, 0x40000100,
0xC8C, 0x20200000, 0xC8C, 0x20200000,
0xC90, 0x00020E1A, 0xC90, 0x00020E1A,
...@@ -224,15 +224,21 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = { ...@@ -224,15 +224,21 @@ u32 RTL8723BEPHY_REG_1TARRAY[] = {
}; };
u32 RTL8723BEPHY_REG_1TARRAYLEN =
sizeof(RTL8723BEPHY_REG_1TARRAY) / sizeof(u32);
u32 RTL8723BEPHY_REG_ARRAY_PG[] = { u32 RTL8723BEPHY_REG_ARRAY_PG[] = {
0, 0, 0, 0x00000e08, 0x0000ff00, 0x00004000, 0, 0, 0, 0x00000e08, 0x0000ff00, 0x00003800,
0, 0, 0, 0x0000086c, 0xffffff00, 0x34363800, 0, 0, 0, 0x0000086c, 0xffffff00, 0x32343600,
0, 0, 0, 0x00000e00, 0xffffffff, 0x42444646, 0, 0, 0, 0x00000e00, 0xffffffff, 0x40424444,
0, 0, 0, 0x00000e04, 0xffffffff, 0x30343840, 0, 0, 0, 0x00000e04, 0xffffffff, 0x28323638,
0, 0, 0, 0x00000e10, 0xffffffff, 0x38404244, 0, 0, 0, 0x00000e10, 0xffffffff, 0x38404244,
0, 0, 0, 0x00000e14, 0xffffffff, 0x26303436 0, 0, 0, 0x00000e14, 0xffffffff, 0x26303436
}; };
u32 RTL8723BEPHY_REG_ARRAY_PGLEN =
sizeof(RTL8723BEPHY_REG_ARRAY_PG) / sizeof(u32);
u32 RTL8723BE_RADIOA_1TARRAY[] = { u32 RTL8723BE_RADIOA_1TARRAY[] = {
0x000, 0x00010000, 0x000, 0x00010000,
0x0B0, 0x000DFFE0, 0x0B0, 0x000DFFE0,
...@@ -257,15 +263,37 @@ u32 RTL8723BE_RADIOA_1TARRAY[] = { ...@@ -257,15 +263,37 @@ u32 RTL8723BE_RADIOA_1TARRAY[] = {
0x01E, 0x00000000, 0x01E, 0x00000000,
0x0DF, 0x00000780, 0x0DF, 0x00000780,
0x050, 0x00067435, 0x050, 0x00067435,
0x80002000, 0x00000000, 0x40000000, 0x00000000,
0x051, 0x0006F10E,
0x052, 0x000007D3,
0x90003000, 0x00000000, 0x40000000, 0x00000000,
0x051, 0x0006F10E,
0x052, 0x000007D3,
0x90004000, 0x00000000, 0x40000000, 0x00000000,
0x051, 0x0006F10E,
0x052, 0x000007D3,
0xA0000000, 0x00000000,
0x051, 0x0006B04E, 0x051, 0x0006B04E,
0x052, 0x000007D2, 0x052, 0x000007D2,
0xB0000000, 0x00000000,
0x053, 0x00000000, 0x053, 0x00000000,
0x054, 0x00050400, 0x054, 0x00050400,
0x055, 0x0004026E, 0x055, 0x0004026E,
0x0DD, 0x0000004C, 0x0DD, 0x0000004C,
0x070, 0x00067435, 0x070, 0x00067435,
0x80002000, 0x00000000, 0x40000000, 0x00000000,
0x071, 0x0006F10E,
0x072, 0x000007D3,
0x90003000, 0x00000000, 0x40000000, 0x00000000,
0x071, 0x0006F10E,
0x072, 0x000007D3,
0x90004000, 0x00000000, 0x40000000, 0x00000000,
0x071, 0x0006F10E,
0x072, 0x000007D3,
0xA0000000, 0x00000000,
0x071, 0x0006B04E, 0x071, 0x0006B04E,
0x072, 0x000007D2, 0x072, 0x000007D2,
0xB0000000, 0x00000000,
0x073, 0x00000000, 0x073, 0x00000000,
0x074, 0x00050400, 0x074, 0x00050400,
0x075, 0x0004026E, 0x075, 0x0004026E,
...@@ -308,6 +336,7 @@ u32 RTL8723BE_RADIOA_1TARRAY[] = { ...@@ -308,6 +336,7 @@ u32 RTL8723BE_RADIOA_1TARRAY[] = {
0x044, 0x00000051, 0x044, 0x00000051,
0x0EF, 0x00000000, 0x0EF, 0x00000000,
0x0ED, 0x00000000, 0x0ED, 0x00000000,
0x07F, 0x00020080,
0x0EF, 0x00002000, 0x0EF, 0x00002000,
0x03B, 0x000380EF, 0x03B, 0x000380EF,
0x03B, 0x000302FE, 0x03B, 0x000302FE,
...@@ -336,14 +365,24 @@ u32 RTL8723BE_RADIOA_1TARRAY[] = { ...@@ -336,14 +365,24 @@ u32 RTL8723BE_RADIOA_1TARRAY[] = {
0x0A3, 0x00008000, 0x0A3, 0x00008000,
0x0A4, 0x00048D80, 0x0A4, 0x00048D80,
0x0A5, 0x00068000, 0x0A5, 0x00068000,
0x000, 0x00033D80, 0x0ED, 0x00000002,
0x0EF, 0x00000002,
0x056, 0x00000032,
0x076, 0x00000032,
0x001, 0x00000780,
}; };
u32 RTL8723BE_RADIOA_1TARRAYLEN =
sizeof(RTL8723BE_RADIOA_1TARRAY) / sizeof(u32);
u32 RTL8723BEMAC_1T_ARRAY[] = { u32 RTL8723BEMAC_1T_ARRAY[] = {
0x02F, 0x00000030, 0x02F, 0x00000030,
0x035, 0x00000000, 0x035, 0x00000000,
0x039, 0x00000008,
0x064, 0x00000000,
0x067, 0x00000020, 0x067, 0x00000020,
0x421, 0x0000000F,
0x428, 0x0000000A, 0x428, 0x0000000A,
0x429, 0x00000010, 0x429, 0x00000010,
0x430, 0x00000000, 0x430, 0x00000000,
...@@ -439,9 +478,13 @@ u32 RTL8723BEMAC_1T_ARRAY[] = { ...@@ -439,9 +478,13 @@ u32 RTL8723BEMAC_1T_ARRAY[] = {
0x709, 0x00000043, 0x709, 0x00000043,
0x70A, 0x00000065, 0x70A, 0x00000065,
0x70B, 0x00000087, 0x70B, 0x00000087,
0x765, 0x00000018,
0x76E, 0x00000004,
}; };
u32 RTL8723BEMAC_1T_ARRAYLEN = sizeof(RTL8723BEMAC_1T_ARRAY) / sizeof(u32);
u32 RTL8723BEAGCTAB_1TARRAY[] = { u32 RTL8723BEAGCTAB_1TARRAY[] = {
0xC78, 0xFD000001, 0xC78, 0xFD000001,
0xC78, 0xFC010001, 0xC78, 0xFC010001,
...@@ -466,21 +509,21 @@ u32 RTL8723BEAGCTAB_1TARRAY[] = { ...@@ -466,21 +509,21 @@ u32 RTL8723BEAGCTAB_1TARRAY[] = {
0xC78, 0xE9140001, 0xC78, 0xE9140001,
0xC78, 0xE8150001, 0xC78, 0xE8150001,
0xC78, 0xE7160001, 0xC78, 0xE7160001,
0xC78, 0xAA170001, 0xC78, 0xE6170001,
0xC78, 0xA9180001, 0xC78, 0xE5180001,
0xC78, 0xA8190001, 0xC78, 0xE4190001,
0xC78, 0xA71A0001, 0xC78, 0xE31A0001,
0xC78, 0xA61B0001, 0xC78, 0xA51B0001,
0xC78, 0xA51C0001, 0xC78, 0xA41C0001,
0xC78, 0xA41D0001, 0xC78, 0xA31D0001,
0xC78, 0xA31E0001, 0xC78, 0x671E0001,
0xC78, 0x671F0001, 0xC78, 0x661F0001,
0xC78, 0x66200001, 0xC78, 0x65200001,
0xC78, 0x65210001, 0xC78, 0x64210001,
0xC78, 0x64220001, 0xC78, 0x63220001,
0xC78, 0x63230001, 0xC78, 0x4A230001,
0xC78, 0x62240001, 0xC78, 0x49240001,
0xC78, 0x61250001, 0xC78, 0x48250001,
0xC78, 0x47260001, 0xC78, 0x47260001,
0xC78, 0x46270001, 0xC78, 0x46270001,
0xC78, 0x45280001, 0xC78, 0x45280001,
...@@ -491,22 +534,22 @@ u32 RTL8723BEAGCTAB_1TARRAY[] = { ...@@ -491,22 +534,22 @@ u32 RTL8723BEAGCTAB_1TARRAY[] = {
0xC78, 0x282D0001, 0xC78, 0x282D0001,
0xC78, 0x272E0001, 0xC78, 0x272E0001,
0xC78, 0x262F0001, 0xC78, 0x262F0001,
0xC78, 0x25300001, 0xC78, 0x0A300001,
0xC78, 0x24310001, 0xC78, 0x09310001,
0xC78, 0x09320001, 0xC78, 0x08320001,
0xC78, 0x08330001, 0xC78, 0x07330001,
0xC78, 0x07340001, 0xC78, 0x06340001,
0xC78, 0x06350001, 0xC78, 0x05350001,
0xC78, 0x05360001, 0xC78, 0x04360001,
0xC78, 0x04370001, 0xC78, 0x03370001,
0xC78, 0x03380001, 0xC78, 0x02380001,
0xC78, 0x02390001, 0xC78, 0x01390001,
0xC78, 0x013A0001, 0xC78, 0x013A0001,
0xC78, 0x003B0001, 0xC78, 0x013B0001,
0xC78, 0x003C0001, 0xC78, 0x013C0001,
0xC78, 0x003D0001, 0xC78, 0x013D0001,
0xC78, 0x003E0001, 0xC78, 0x013E0001,
0xC78, 0x003F0001, 0xC78, 0x013F0001,
0xC78, 0xFC400001, 0xC78, 0xFC400001,
0xC78, 0xFB410001, 0xC78, 0xFB410001,
0xC78, 0xFA420001, 0xC78, 0xFA420001,
...@@ -531,47 +574,50 @@ u32 RTL8723BEAGCTAB_1TARRAY[] = { ...@@ -531,47 +574,50 @@ u32 RTL8723BEAGCTAB_1TARRAY[] = {
0xC78, 0xE7550001, 0xC78, 0xE7550001,
0xC78, 0xE6560001, 0xC78, 0xE6560001,
0xC78, 0xE5570001, 0xC78, 0xE5570001,
0xC78, 0xAA580001, 0xC78, 0xE4580001,
0xC78, 0xA9590001, 0xC78, 0xE3590001,
0xC78, 0xA85A0001, 0xC78, 0xA65A0001,
0xC78, 0xA75B0001, 0xC78, 0xA55B0001,
0xC78, 0xA65C0001, 0xC78, 0xA45C0001,
0xC78, 0xA55D0001, 0xC78, 0xA35D0001,
0xC78, 0xA45E0001, 0xC78, 0x675E0001,
0xC78, 0x675F0001, 0xC78, 0x665F0001,
0xC78, 0x66600001, 0xC78, 0x65600001,
0xC78, 0x65610001, 0xC78, 0x64610001,
0xC78, 0x64620001, 0xC78, 0x63620001,
0xC78, 0x63630001, 0xC78, 0x62630001,
0xC78, 0x62640001, 0xC78, 0x61640001,
0xC78, 0x61650001, 0xC78, 0x48650001,
0xC78, 0x47660001, 0xC78, 0x47660001,
0xC78, 0x46670001, 0xC78, 0x46670001,
0xC78, 0x45680001, 0xC78, 0x45680001,
0xC78, 0x44690001, 0xC78, 0x44690001,
0xC78, 0x436A0001, 0xC78, 0x436A0001,
0xC78, 0x426B0001, 0xC78, 0x426B0001,
0xC78, 0x296C0001, 0xC78, 0x286C0001,
0xC78, 0x286D0001, 0xC78, 0x276D0001,
0xC78, 0x276E0001, 0xC78, 0x266E0001,
0xC78, 0x266F0001, 0xC78, 0x256F0001,
0xC78, 0x25700001, 0xC78, 0x24700001,
0xC78, 0x24710001, 0xC78, 0x09710001,
0xC78, 0x09720001, 0xC78, 0x08720001,
0xC78, 0x08730001, 0xC78, 0x07730001,
0xC78, 0x07740001, 0xC78, 0x06740001,
0xC78, 0x06750001, 0xC78, 0x05750001,
0xC78, 0x05760001, 0xC78, 0x04760001,
0xC78, 0x04770001, 0xC78, 0x03770001,
0xC78, 0x03780001, 0xC78, 0x02780001,
0xC78, 0x02790001, 0xC78, 0x01790001,
0xC78, 0x017A0001, 0xC78, 0x017A0001,
0xC78, 0x007B0001, 0xC78, 0x017B0001,
0xC78, 0x007C0001, 0xC78, 0x017C0001,
0xC78, 0x007D0001, 0xC78, 0x017D0001,
0xC78, 0x007E0001, 0xC78, 0x017E0001,
0xC78, 0x007F0001, 0xC78, 0x017F0001,
0xC50, 0x69553422, 0xC50, 0x69553422,
0xC50, 0x69553420, 0xC50, 0x69553420,
0x824, 0x00390204,
}; };
u32 RTL8723BEAGCTAB_1TARRAYLEN = sizeof(RTL8723BEAGCTAB_1TARRAY) / sizeof(u32);
...@@ -29,15 +29,15 @@ ...@@ -29,15 +29,15 @@
#define __RTL8723BE_TABLE__H_ #define __RTL8723BE_TABLE__H_
#include <linux/types.h> #include <linux/types.h>
#define RTL8723BEPHY_REG_1TARRAYLEN 388 extern u32 RTL8723BEPHY_REG_1TARRAYLEN;
extern u32 RTL8723BEPHY_REG_1TARRAY[]; extern u32 RTL8723BEPHY_REG_1TARRAY[];
#define RTL8723BEPHY_REG_ARRAY_PGLEN 36 extern u32 RTL8723BEPHY_REG_ARRAY_PGLEN;
extern u32 RTL8723BEPHY_REG_ARRAY_PG[]; extern u32 RTL8723BEPHY_REG_ARRAY_PG[];
#define RTL8723BE_RADIOA_1TARRAYLEN 206 extern u32 RTL8723BE_RADIOA_1TARRAYLEN;
extern u32 RTL8723BE_RADIOA_1TARRAY[]; extern u32 RTL8723BE_RADIOA_1TARRAY[];
#define RTL8723BEMAC_1T_ARRAYLEN 196 extern u32 RTL8723BEMAC_1T_ARRAYLEN;
extern u32 RTL8723BEMAC_1T_ARRAY[]; extern u32 RTL8723BEMAC_1T_ARRAY[];
#define RTL8723BEAGCTAB_1TARRAYLEN 260 extern u32 RTL8723BEAGCTAB_1TARRAYLEN;
extern u32 RTL8723BEAGCTAB_1TARRAY[]; extern u32 RTL8723BEAGCTAB_1TARRAY[];
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment