2019-04-22 11:31:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. */
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
|
|
|
|
#ifndef __PHYDMIQK_H__
|
|
|
|
#define __PHYDMIQK_H__
|
|
|
|
|
|
|
|
/*--------------------------Define Parameters-------------------------------*/
|
|
|
|
#define LOK_delay 1
|
|
|
|
#define WBIQK_delay 10
|
|
|
|
#define TX_IQK 0
|
|
|
|
#define RX_IQK 1
|
|
|
|
#define TXIQK 0
|
|
|
|
#define RXIQK1 1
|
|
|
|
#define RXIQK2 2
|
|
|
|
#define kcount_limit_80m 2
|
|
|
|
#define kcount_limit_others 4
|
|
|
|
#define rxiqk_gs_limit 4
|
|
|
|
|
|
|
|
#define NUM 4
|
|
|
|
/*---------------------------End Define Parameters-------------------------------*/
|
|
|
|
|
|
|
|
struct _IQK_INFORMATION {
|
2018-11-16 20:56:35 +00:00
|
|
|
bool LOK_fail[NUM];
|
|
|
|
bool IQK_fail[2][NUM];
|
2018-10-15 00:07:45 +00:00
|
|
|
u32 iqc_matrix[2][NUM];
|
|
|
|
u8 iqk_times;
|
|
|
|
u32 rf_reg18;
|
|
|
|
u32 lna_idx;
|
|
|
|
u8 rxiqk_step;
|
|
|
|
u8 tmp1bcc;
|
|
|
|
u8 kcount;
|
|
|
|
|
|
|
|
u32 iqk_channel[2];
|
2018-11-16 20:56:35 +00:00
|
|
|
bool IQK_fail_report[2][4][2]; /*channel/path/TRX(TX:0, RX:1) */
|
2018-10-15 00:07:45 +00:00
|
|
|
u32 IQK_CFIR_real[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_real*/
|
|
|
|
u32 IQK_CFIR_imag[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_imag*/
|
|
|
|
u8 retry_count[2][4][3]; /* channel / path / (TXK:0, RXK1:1, RXK2:2) */
|
|
|
|
u8 gs_retry_count[2][4][2]; /* channel / path / (GSRXK1:0, GSRXK2:1) */
|
|
|
|
u8 RXIQK_fail_code[2][4]; /* channel / path 0:SRXK1 fail, 1:RXK1 fail 2:RXK2 fail */
|
|
|
|
u32 LOK_IDAC[2][4]; /*channel / path*/
|
|
|
|
u16 RXIQK_AGC[2][4]; /*channel / path*/
|
|
|
|
u32 bypass_iqk[2][4]; /*channel / 0xc94/0xe94*/
|
|
|
|
u32 tmp_GNTWL;
|
2018-11-16 20:56:35 +00:00
|
|
|
bool is_BTG;
|
|
|
|
bool isbnd;
|
2018-10-15 00:07:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|