Browse Source

qcacmn: Add pci gen switch in wmi resource config

Add a pci gen switch flag in the wmi resource config to send
to FW in the init command.

Change-Id: If3a50d80103387a8f1f77ecb43a16c7b41ce5a11
CRs-Fixed: 2865866
Abdul Muqtadeer Ahmed 4 years ago
parent
commit
96f3c808f1
2 changed files with 5 additions and 0 deletions
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -5184,6 +5184,7 @@ struct wmi_host_fw_abi_ver {
  * @max_frag_entries: Max frag entries
  * @max_frag_entries: Max frag entries
  * @agile_capability: Target Agile Capability
  * @agile_capability: Target Agile Capability
  *      End common
  *      End common
+ * @enable_pci_gen: To enable pci gen switch
  * @max_peer_ext_stats: Max peer EXT stats
  * @max_peer_ext_stats: Max peer EXT stats
  * @smart_ant_cap: Smart antenna capabilities
  * @smart_ant_cap: Smart antenna capabilities
  * @BK_Minfree: BIN configuration for BK traffic
  * @BK_Minfree: BIN configuration for BK traffic
@@ -5279,6 +5280,7 @@ typedef struct {
 	uint32_t max_frag_entries;
 	uint32_t max_frag_entries;
 	uint32_t scheduler_params;
 	uint32_t scheduler_params;
 	uint32_t agile_capability;
 	uint32_t agile_capability;
+	uint32_t enable_pci_gen;
 	/* End common */
 	/* End common */
 
 
 	/* Added for Beeliner */
 	/* Added for Beeliner */

+ 3 - 0
wmi/src/wmi_unified_tlv.c

@@ -7320,6 +7320,9 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 			resource_cfg->flag1, 1);
 			resource_cfg->flag1, 1);
 	if (tgt_res_cfg->cce_disable)
 	if (tgt_res_cfg->cce_disable)
 		WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_SET(resource_cfg->flag1, 1);
 		WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_SET(resource_cfg->flag1, 1);
+	if (tgt_res_cfg->enable_pci_gen)
+		WMI_RSRC_CFG_FLAG_PCIE_GEN_SWITCH_CAPABLITY_SET(
+			resource_cfg->flag1, 1);
 	if (tgt_res_cfg->eapol_minrate_set) {
 	if (tgt_res_cfg->eapol_minrate_set) {
 		WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_SET(
 		WMI_RSRC_CFG_FLAG_EAPOL_REKEY_MINRATE_SUPPORT_ENABLE_SET(
 			resource_cfg->flag1, 1);
 			resource_cfg->flag1, 1);