Explorar o código

qcacld-3.0: Update soc info parameters to get fw build id

Update soc info parameters to get fw build id from
platform driver.

Change-Id: Ie6ae346a06c86f6b3b72638ac8a2efa9e5118170
CRs-Fixed: 3299395
Sandeep Singh %!s(int64=2) %!d(string=hai) anos
pai
achega
6652edebb6
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      core/pld/inc/pld_common.h
  2. 2 0
      core/pld/src/pld_pcie.c

+ 2 - 0
core/pld/inc/pld_common.h

@@ -399,6 +399,7 @@ struct pld_dev_mem_info {
 };
 
 #define PLD_MAX_TIMESTAMP_LEN 32
+#define PLD_WLFW_MAX_BUILD_ID_LEN 128
 #define PLD_MAX_DEV_MEM_NUM 4
 
 /**
@@ -427,6 +428,7 @@ struct pld_soc_info {
 	char fw_build_timestamp[PLD_MAX_TIMESTAMP_LEN + 1];
 	struct pld_device_version device_version;
 	struct pld_dev_mem_info dev_mem_info[PLD_MAX_DEV_MEM_NUM];
+	char fw_build_id[PLD_WLFW_MAX_BUILD_ID_LEN + 1];
 };
 
 /**

+ 2 - 0
core/pld/src/pld_pcie.c

@@ -974,6 +974,8 @@ int pld_pcie_get_soc_info(struct device *dev, struct pld_soc_info *info)
 		info->dev_mem_info[i].start = cnss_info.dev_mem_info[i].start;
 		info->dev_mem_info[i].size = cnss_info.dev_mem_info[i].size;
 	}
+	strlcpy(info->fw_build_id, cnss_info.fw_build_id,
+		sizeof(info->fw_build_id));
 
 	return 0;
 }