qcacmn: PPEDS support for QCN6432
PPEDS support for QCN6432 Change-Id: I37ae6dc66eb29ccfe1f3e7bff3cc9c627e961782 CRs-Fixed: 3512941
This commit is contained in:

zatwierdzone przez
Rahul Choudhary

rodzic
1d0a2d4996
commit
2c3744a897
@@ -1289,7 +1289,7 @@ static void hal_reo_setup_6432(struct hal_soc *soc, void *reoparams,
|
||||
* 7: NOT_USED.
|
||||
*/
|
||||
if (reo_params->rx_hash_enabled) {
|
||||
// hal_compute_reo_remap_ix0_6432(soc);
|
||||
hal_compute_reo_remap_ix0_6432(soc);
|
||||
HAL_REG_WRITE(soc,
|
||||
HWIO_REO_R0_DESTINATION_RING_CTRL_IX_1_ADDR
|
||||
(REO_REG_REG_BASE), reo_params->remap0);
|
||||
@@ -1751,6 +1751,8 @@ static void hal_hw_txrx_ops_attach_qcn6432(struct hal_soc *hal_soc)
|
||||
hal_tx_ppe2tcl_ring_halt_reset_6432;
|
||||
hal_soc->ops->hal_tx_ring_halt_poll =
|
||||
hal_tx_ppe2tcl_ring_halt_done_6432;
|
||||
hal_soc->ops->hal_tx_get_num_ppe_vp_search_idx_tbl_entries =
|
||||
hal_tx_get_num_ppe_vp_search_idx_reg_entries_6432;
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6432[] = {
|
||||
@@ -2184,7 +2186,6 @@ struct hal_hw_srng_config hw_srng_table_6432[] = {
|
||||
},
|
||||
#endif
|
||||
{ /* REO2PPE */
|
||||
#if 0
|
||||
.start_ring_id = HAL_SRNG_REO2PPE,
|
||||
.max_rings = 1,
|
||||
.entry_size = sizeof(struct reo_destination_ring) >> 2,
|
||||
@@ -2203,10 +2204,8 @@ struct hal_hw_srng_config hw_srng_table_6432[] = {
|
||||
.max_size =
|
||||
HWIO_REO_R0_REO2PPE_RING_BASE_LSB_RING_BASE_ADDR_LSB_BMSK >>
|
||||
HWIO_REO_R0_REO2PPE_RING_BASE_LSB_RING_BASE_ADDR_LSB_SHFT,
|
||||
#endif
|
||||
},
|
||||
{ /* PPE2TCL */
|
||||
#if 0
|
||||
.start_ring_id = HAL_SRNG_PPE2TCL1,
|
||||
.max_rings = 1,
|
||||
.entry_size = sizeof(struct tcl_entrance_from_ppe_ring) >> 2,
|
||||
@@ -2222,24 +2221,13 @@ struct hal_hw_srng_config hw_srng_table_6432[] = {
|
||||
.max_size =
|
||||
HWIO_TCL_R0_SW2TCL1_RING_BASE_MSB_RING_SIZE_BMSK >>
|
||||
HWIO_TCL_R0_SW2TCL1_RING_BASE_MSB_RING_SIZE_SHFT,
|
||||
#endif
|
||||
},
|
||||
{ /* PPE_RELEASE */
|
||||
#if 0
|
||||
.start_ring_id = HAL_SRNG_WBM_PPE_RELEASE,
|
||||
.max_rings = 1,
|
||||
.entry_size = sizeof(struct wbm_release_ring) >> 2,
|
||||
.lmac_ring = FALSE,
|
||||
.ring_dir = HAL_SRNG_SRC_RING,
|
||||
.reg_start = {
|
||||
HWIO_WBM_R0_PPE_RELEASE_RING_BASE_LSB_ADDR(WBM_REG_REG_BASE),
|
||||
HWIO_WBM_R2_PPE_RELEASE_RING_HP_ADDR(WBM_REG_REG_BASE),
|
||||
},
|
||||
.reg_size = {},
|
||||
.max_size =
|
||||
HWIO_WBM_R0_PPE_RELEASE_RING_BASE_MSB_RING_SIZE_BMSK >>
|
||||
HWIO_WBM_R0_PPE_RELEASE_RING_BASE_MSB_RING_SIZE_SHFT,
|
||||
#endif
|
||||
},
|
||||
#ifdef QCA_MONITOR_2_0_SUPPORT
|
||||
{ /* TX_MONITOR_BUF */
|
||||
@@ -2350,4 +2338,5 @@ void hal_qcn6432_attach(struct hal_soc *hal_soc)
|
||||
hal_soc->dmac_cmn_src_rxbuf_ring = true;
|
||||
if (hal_soc->static_window_map)
|
||||
hal_write_window_register(hal_soc);
|
||||
hal_hw_txrx_ops_override_qcn6432(hal_soc);
|
||||
}
|
||||
|
@@ -30,6 +30,20 @@
|
||||
#define NUM_WORDS_PER_DSCP_TID_TABLE (DSCP_TID_TABLE_SIZE / 4)
|
||||
#define HAL_TX_NUM_DSCP_REGISTER_SIZE 32
|
||||
#define HAL_PPE_VP_ENTRIES_MAX 32
|
||||
#define HAL_PPE_VP_SEARCH_IDX_REG_MAX 8
|
||||
|
||||
/**
|
||||
* hal_tx_get_num_ppe_vp_search_idx_reg_entries_6432() - get number of PPE VP
|
||||
* search index registers
|
||||
* @hal_soc_hdl: HAL SoC handle
|
||||
*
|
||||
* Return: Number of PPE VP search index registers
|
||||
*/
|
||||
static uint32_t
|
||||
hal_tx_get_num_ppe_vp_search_idx_reg_entries_6432(hal_soc_handle_t hal_soc_hdl)
|
||||
{
|
||||
return HAL_PPE_VP_SEARCH_IDX_REG_MAX;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_tx_set_dscp_tid_map_6432() - Configure default DSCP to TID map table
|
||||
|
Reference in New Issue
Block a user