/******************************************************************************
|
*
|
* Copyright(c) 2007 - 2020 Realtek Corporation.
|
*
|
* This program is free software; you can redistribute it and/or modify it
|
* under the terms of version 2 of the GNU General Public License as
|
* published by the Free Software Foundation.
|
*
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* more details.
|
*
|
* The full GNU General Public License is included in this distribution in the
|
* file called LICENSE.
|
*
|
* Contact Information:
|
* wlanfae <wlanfae@realtek.com>
|
* Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
|
* Hsinchu 300, Taiwan.
|
*
|
* Larry Finger <Larry.Finger@lwfinger.net>
|
*
|
*****************************************************************************/
|
|
#ifndef __HALBB_FEATURES_H__
|
#define __HALBB_FEATURES_H__
|
|
#include "../../hal_headers_le.h"
|
#include "halbb_cfg_ic.h"
|
#include "halbb_ic_hw_info.h"
|
|
/*[Control by Outer Driver]--------------------------------------------------*/
|
#ifndef DRV_BB_TIMER_SUPPORT_DISABLE
|
#define HALBB_TIMER_SUPPORT
|
#endif
|
|
#ifndef DRV_BB_DBG_TRACE_DISABLE
|
#define HALBB_DBG_TRACE_SUPPORT
|
#endif
|
|
#ifndef DRV_BB_PHYSTS_PARSING_DISABLE
|
#define HALBB_PHYSTS_PARSING_SUPPORT
|
#endif
|
#ifndef DRV_BB_ENV_MNTR_DISABLE
|
#define HALBB_ENV_MNTR_SUPPORT
|
#define CLM_SUPPORT
|
#define NHM_SUPPORT
|
#define IFS_CLM_SUPPORT
|
#define FAHM_SUPPORT
|
#define EDCCA_CLM_SUPPORT
|
#endif
|
#ifndef DRV_BB_STATISTICS_DISABLE
|
#define HALBB_STATISTICS_SUPPORT
|
#endif
|
#ifndef DRV_BB_RA_DISABLE
|
#define HALBB_RA_SUPPORT
|
#endif
|
#ifndef DRV_BB_ADPTVTY_DISABLE
|
#define HALBB_EDCCA_SUPPORT
|
#endif
|
#ifndef DRV_BB_DFS_DISABLE
|
#define HALBB_DFS_SUPPORT
|
#endif
|
#ifndef DRV_BB_CFO_TRK_DISABLE
|
#define HALBB_CFO_TRK_SUPPORT
|
#define HALBB_CFO_DAMPING_CHK
|
//#define BB_DYN_CFO_TRK_LOP
|
#endif
|
#ifndef DRV_BB_DIG_DISABLE
|
#define HALBB_DIG_SUPPORT
|
#ifndef DRV_BB_TDMADIG_DISABLE
|
#if (HLABB_CODE_BASE_NUM >= 34) || (HLABB_CODE_BASE_NUM == 29) || (HLABB_CODE_BASE_NUM == 27) || (HLABB_CODE_BASE_NUM == 25)
|
#define HALBB_DIG_TDMA_SUPPORT
|
#endif
|
#endif
|
#ifndef DRV_BB_DIG_MCC_DISABLE
|
#define HALBB_DIG_MCC_SUPPORT
|
#define HALBB_DIG_MCC_SUPPORT_IC (BB_RTL8852A | BB_RTL8852B | BB_RTL8851B)
|
#endif
|
#define HALBB_DIG_DAMPING_CHK
|
#endif
|
#ifndef DRV_BB_LA_MODE_DISABLE
|
#define HALBB_LA_MODE_SUPPORT
|
#ifdef BB_1115_SUPPORT
|
#define HALBB_LA_320M_PATCH /*for RTL1115 320M 3-phase case only*/
|
#endif
|
|
#define BB_IC_LA_MODE_GEN2 (BB_IC_BE_1 | BB_IC_BE_2)
|
#if (defined(HALBB_COMPILE_BE1_SERIES)||defined(HALBB_COMPILE_BE2_SERIES))
|
#define HALBB_COMPILE_LA_MODE_GEN2
|
#endif
|
#endif
|
#ifndef DRV_BB_PSD_DISABLE
|
#define HALBB_PSD_SUPPORT
|
#endif
|
#ifndef DRV_BB_PWR_CTRL_DISABLE
|
#define HALBB_PWR_CTRL_SUPPORT
|
#endif
|
#ifndef DRV_BB_WRAP_DISABLE
|
#ifdef HALBB_COMPILE_BE_SERIES
|
#define HALBB_BB_WRAP_SUPPORT
|
#endif
|
#endif
|
#ifndef DRV_BB_SR_DISABLE
|
#if (HLABB_CODE_BASE_NUM == 29)
|
#define HALBB_SR_SUPPORT
|
#endif
|
#endif
|
#ifndef DRV_BB_RUA_DISABLE
|
#define HALBB_RUA_SUPPORT
|
#endif
|
#ifndef DRV_BB_PMAC_TX_DISABLE
|
#define HALBB_PMAC_TX_SUPPORT
|
#endif
|
#ifndef DRV_BB_CH_INFO_DISABLE
|
#define HALBB_CH_INFO_SUPPORT
|
#ifndef DRV_BB_DYN_CSI_RSP_DISABLE
|
#define HALBB_DYN_CSI_RSP_SUPPORT
|
#endif
|
#endif
|
#ifndef DRV_BB_AUTO_DBG_DISABLE
|
#define HALBB_AUTO_DBG_SUPPORT
|
#endif
|
#ifndef DRV_BB_ANT_DIV_DISABLE
|
#define HALBB_ANT_DIV_SUPPORT
|
#endif
|
#ifndef DRV_BB_PATH_DIV_DISABLE
|
#define HALBB_PATH_DIV_SUPPORT
|
#endif
|
#ifndef DRV_BB_DYN_L2H_DISABLE
|
#define HALBB_DYN_L2H_SUPPORT
|
#endif
|
#ifndef DRV_BB_PMAC_TX_SETTING_DISABLE
|
#define HALBB_PMAC_TX_SETTING_SUPPORT
|
#endif
|
|
/*[FW OFFLOAD]*/
|
#if ((defined(CONFIG_PHL_IO_OFLD) ||defined(CONFIG_FW_DBCC_OFLD_SUPPORT)) && defined(HALBB_COMPILE_IC_FWOFLD))
|
#define HALBB_FW_OFLD_SUPPORT
|
#if (defined(CONFIG_PHL_IO_OFLD))
|
#define HALBB_FW_NORMAL_OFLD_SUPPORT
|
#endif
|
#if (defined(CONFIG_FW_DBCC_OFLD_SUPPORT))
|
#define HALBB_FW_DBCC_OFLD_SUPPORT
|
#endif
|
#endif
|
|
/*[DBCC]*/
|
#if (defined(CONFIG_DBCC_SUPPORT) && defined(HALBB_COMPILE_IC_DBCC))
|
#define HALBB_DBCC_SUPPORT
|
#define HALBB_DBCC_DVLP_FLAG
|
#endif
|
|
#define HALBB_TDMA_CR_SUPPORT
|
|
/*[POP resolved hang]*/
|
#ifdef DRV_RESOLVED_POP_BY_BB
|
#define HALBB_RESOLVED_POP_BY_BB
|
#endif
|
|
#ifndef DRV_BB_ULOFDMA_CTRL_DISABLE
|
#define HALBB_UL_TB_CTRL_SUPPORT
|
#endif
|
|
/*[Shared crystal]*/
|
#ifdef DRV_BB_CFO_TRK_DISABLE_BY_SHARE_XTAL
|
#define HALBB_SHARE_XSTAL_SUPPORT
|
#endif
|
|
#define HALBB_DYN_1R_CCA_SUPPORT
|
|
#if 1//(defined(DRV_BB_CNSL_CMN_INFO) || !defined(HALBB_DBG_TRACE_SUPPORT))
|
#define HALBB_CNSL_CMN_INFO_SUPPORT
|
#endif
|
|
#ifndef DRV_BB_SNIF_SUPPORT
|
#define HALBB_SNIF_SUPPORT
|
#endif
|
|
/*[DTR]*/
|
#ifndef DRV_BB_DYN_DTR_DISABLE
|
#define HALBB_DYN_DTR_SUPPORT
|
//#define BB_DYN_DTR
|
#endif
|
|
#ifdef DRV_BB_DCRA_EN
|
#define HALBB_DCRA_EN
|
#endif
|
|
#ifdef DRV_BB_INIT_FW_NHM_EN
|
#define HALBB_INIT_FW_NHM_EN
|
#endif
|
|
#ifdef CONFIG_24G_256QAM
|
#define HALBB_CONFIG_HT2VHT_SUPPORT
|
#endif
|
|
#endif
|