qcacmn: Add WBM2SW4 support

To support IPA TX two pipes, WBM2SW4 is added as second WBM2IPA TX
transfer ring.

Change-Id: Id0762003c1d91e3614b15df2bc51f90e27add43c
CRs-Fixed: 2750073
This commit is contained in:
Jia Ding
2020-04-21 16:20:58 +08:00
committed by snandini
parent 09f1f1fe46
commit ebe1849453
3 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -136,6 +136,9 @@ enum hal_tx_ret_buf_manager {
HAL_WBM_SW1_BM_ID = 4, HAL_WBM_SW1_BM_ID = 4,
HAL_WBM_SW2_BM_ID = 5, HAL_WBM_SW2_BM_ID = 5,
HAL_WBM_SW3_BM_ID = 6, HAL_WBM_SW3_BM_ID = 6,
#ifdef IPA_WDI3_TX_TWO_PIPES
HAL_WBM_SW4_BM_ID = 7,
#endif
}; };
/*--------------------------------------------------------------------------- /*---------------------------------------------------------------------------

View File

@@ -1491,7 +1491,11 @@ struct hal_hw_srng_config hw_srng_table_6390[] = {
}, },
{ /* WBM2SW_RELEASE */ { /* WBM2SW_RELEASE */
.start_ring_id = HAL_SRNG_WBM2SW0_RELEASE, .start_ring_id = HAL_SRNG_WBM2SW0_RELEASE,
#ifdef IPA_WDI3_TX_TWO_PIPES
.max_rings = 5,
#else
.max_rings = 4, .max_rings = 4,
#endif
.entry_size = sizeof(struct wbm_release_ring) >> 2, .entry_size = sizeof(struct wbm_release_ring) >> 2,
.lmac_ring = FALSE, .lmac_ring = FALSE,
.ring_dir = HAL_SRNG_DST_RING, .ring_dir = HAL_SRNG_DST_RING,

View File

@@ -2083,7 +2083,11 @@ struct hal_hw_srng_config hw_srng_table_6490[] = {
}, },
{ /* WBM2SW_RELEASE */ { /* WBM2SW_RELEASE */
.start_ring_id = HAL_SRNG_WBM2SW0_RELEASE, .start_ring_id = HAL_SRNG_WBM2SW0_RELEASE,
#ifdef IPA_WDI3_TX_TWO_PIPES
.max_rings = 5,
#else
.max_rings = 4, .max_rings = 4,
#endif
.entry_size = sizeof(struct wbm_release_ring) >> 2, .entry_size = sizeof(struct wbm_release_ring) >> 2,
.lmac_ring = FALSE, .lmac_ring = FALSE,
.ring_dir = HAL_SRNG_DST_RING, .ring_dir = HAL_SRNG_DST_RING,