qcacmn: Initial changes for QCN9160 bring-up in HAL layer

Add device Id and target type checks for qcn9160 target
compilation.

Change-Id: I3f9bf381bd340755639184753a74159364331037
CRs-Fixed: 3282637
This commit is contained in:
Kannan Saravanan
2022-09-28 18:41:19 +05:30
committed by Madan Koyyalamudi
parent ba48f03c44
commit fb0b54baee
3 changed files with 20 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ void hal_qcn9000_attach(struct hal_soc *hal);
void hal_qcn9224v1_attach(struct hal_soc *hal); void hal_qcn9224v1_attach(struct hal_soc *hal);
void hal_qcn9224v2_attach(struct hal_soc *hal); void hal_qcn9224v2_attach(struct hal_soc *hal);
#endif #endif
#ifdef QCA_WIFI_QCN6122 #if defined(QCA_WIFI_QCN6122) || defined(QCA_WIFI_QCN9160)
void hal_qcn6122_attach(struct hal_soc *hal); void hal_qcn6122_attach(struct hal_soc *hal);
#endif #endif
#ifdef QCA_WIFI_QCA6750 #ifdef QCA_WIFI_QCA6750
@@ -483,6 +483,18 @@ static void hal_target_based_configure(struct hal_soc *hal)
break; break;
#endif #endif
#if defined(QCA_WIFI_QCN9160)
case TARGET_TYPE_QCN9160:
hal->use_register_windowing = true;
/*
* Static window map is enabled for qcn9160 to use 2mb bar
* size and use multiple windows to write into registers.
*/
hal->static_window_map = true;
hal_qcn6122_attach(hal);
break;
#endif
#ifdef QCA_WIFI_QCN9000 #ifdef QCA_WIFI_QCN9000
case TARGET_TYPE_QCN9000: case TARGET_TYPE_QCN9000:
hal->use_register_windowing = true; hal->use_register_windowing = true;

View File

@@ -1018,6 +1018,7 @@ hal_rx_status_get_tlv_info_generic_li(void *rx_tlv_hdr, void *ppduinfo,
case TARGET_TYPE_QCA5018: case TARGET_TYPE_QCA5018:
case TARGET_TYPE_QCN9000: case TARGET_TYPE_QCN9000:
case TARGET_TYPE_QCN6122: case TARGET_TYPE_QCN6122:
case TARGET_TYPE_QCN9160:
#ifdef QCA_WIFI_QCA6390 #ifdef QCA_WIFI_QCA6390
case TARGET_TYPE_QCA6390: case TARGET_TYPE_QCA6390:
#endif #endif

View File

@@ -33,6 +33,12 @@
RXPCU_PPDU_END_INFO_9_RX_PPDU_DURATION_MASK RXPCU_PPDU_END_INFO_9_RX_PPDU_DURATION_MASK
#define UNIFIED_RXPCU_PPDU_END_INFO_8_RX_PPDU_DURATION_LSB \ #define UNIFIED_RXPCU_PPDU_END_INFO_8_RX_PPDU_DURATION_LSB \
RXPCU_PPDU_END_INFO_9_RX_PPDU_DURATION_LSB RXPCU_PPDU_END_INFO_9_RX_PPDU_DURATION_LSB
#define UNIFIED_RXPCU_PPDU_END_INFO_11_PHYRX_ABORT_REQUEST_INFO_DETAILS_PHYRX_ABORT_REASON_OFFSET \
RXPCU_PPDU_END_INFO_11_PHYRX_ABORT_REQUEST_INFO_DETAILS_PHYRX_ABORT_REASON_OFFSET
#define UNIFIED_RXPCU_PPDU_END_INFO_11_PHYRX_ABORT_REQUEST_INFO_DETAILS_PHYRX_ABORT_REASON_MASK \
RXPCU_PPDU_END_INFO_11_PHYRX_ABORT_REQUEST_INFO_DETAILS_PHYRX_ABORT_REASON_MASK
#define UNIFIED_RXPCU_PPDU_END_INFO_11_PHYRX_ABORT_REQUEST_INFO_DETAILS_PHYRX_ABORT_REASON_LSB \
RXPCU_PPDU_END_INFO_11_PHYRX_ABORT_REQUEST_INFO_DETAILS_PHYRX_ABORT_REASON_LSB
#define UNIFIED_PHYRX_HT_SIG_0_HT_SIG_INFO_PHYRX_HT_SIG_INFO_DETAILS_OFFSET \ #define UNIFIED_PHYRX_HT_SIG_0_HT_SIG_INFO_PHYRX_HT_SIG_INFO_DETAILS_OFFSET \
PHYRX_HT_SIG_0_PHYRX_HT_SIG_INFO_DETAILS_MCS_OFFSET PHYRX_HT_SIG_0_PHYRX_HT_SIG_INFO_DETAILS_MCS_OFFSET
#define UNIFIED_PHYRX_L_SIG_B_0_L_SIG_B_INFO_PHYRX_L_SIG_B_INFO_DETAILS_OFFSET \ #define UNIFIED_PHYRX_L_SIG_B_0_L_SIG_B_INFO_PHYRX_L_SIG_B_INFO_DETAILS_OFFSET \