xref: /linux/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.h (revision 1641684528815bb7e85737d5d2bceb551c55d5a8) !
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
3  *
4  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5  *
6  ******************************************************************************/
7 
8 #ifndef __HAL_PHY_RF_8723B_H__
9 #define __HAL_PHY_RF_8723B_H__
10 
11 /*--------------------------Define Parameters-------------------------------*/
12 #define	IQK_DELAY_TIME_8723B		20		/* ms */
13 #define IQK_DEFERRED_TIME_8723B		4
14 #define	index_mapping_NUM_8723B		15
15 #define AVG_THERMAL_NUM_8723B		4
16 #define	RF_T_METER_8723B					0x42	/*  */
17 
18 
19 void ConfigureTxpowerTrack_8723B(struct txpwrtrack_cfg *pConfig);
20 
21 void ODM_TxPwrTrackSetPwr_8723B(
22 	struct dm_odm_t *pDM_Odm,
23 	enum pwrtrack_method Method,
24 	u8 RFPath,
25 	u8 ChannelMappedIndex
26 );
27 
28 /* 1 7. IQK */
29 void PHY_IQCalibrate_8723B(
30 	struct adapter *Adapter,
31 	bool bReCovery,
32 	bool bRestore,
33 	bool Is2ant,
34 	u8 RF_Path
35 );
36 
37 void ODM_SetIQCbyRFpath(struct dm_odm_t *pDM_Odm, u32 RFpath);
38 
39 /*  */
40 /*  LC calibrate */
41 /*  */
42 void PHY_LCCalibrate_8723B(struct dm_odm_t *pDM_Odm);
43 
44 /*  */
45 /*  AP calibrate */
46 /*  */
47 void PHY_DigitalPredistortion_8723B(struct adapter *padapter);
48 
49 
50 void _PHY_SaveADDARegisters_8723B(
51 	struct adapter *padapter,
52 	u32 *ADDAReg,
53 	u32 *ADDABackup,
54 	u32 RegisterNum
55 );
56 
57 void _PHY_PathADDAOn_8723B(
58 	struct adapter *padapter,
59 	u32 *ADDAReg,
60 	bool isPathAOn,
61 	bool is2T
62 );
63 
64 void _PHY_MACSettingCalibration_8723B(
65 	struct adapter *padapter, u32 *MACReg, u32 *MACBackup
66 );
67 
68 #endif /*  #ifndef __HAL_PHY_RF_8188E_H__ */
69