Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49c7aac6 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Update QMI header to add voltage field target cap message



The voltage field is for open loop CPR feature. After reading fuse,
firmware will update the proper value to host through QMI message.
Host will then config it to RPMh using TCS command to make sure
corresponding regulator behaves properly.

Change-Id: I4bb2e28ee44eda53b9513a311337db424ad517cf
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 08c90a00
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -1220,6 +1220,24 @@ struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[] = {
		.offset         = offsetof(struct wlfw_cap_resp_msg_v01,
					   num_macs),
	},
	{
		.data_type      = QMI_OPT_FLAG,
		.elem_len       = 1,
		.elem_size      = sizeof(u8),
		.array_type       = NO_ARRAY,
		.tlv_type       = 0x16,
		.offset         = offsetof(struct wlfw_cap_resp_msg_v01,
					   voltage_mv_valid),
	},
	{
		.data_type      = QMI_UNSIGNED_4_BYTE,
		.elem_len       = 1,
		.elem_size      = sizeof(u32),
		.array_type       = NO_ARRAY,
		.tlv_type       = 0x16,
		.offset         = offsetof(struct wlfw_cap_resp_msg_v01,
					   voltage_mv),
	},
	{
		.data_type      = QMI_EOTI,
		.array_type       = NO_ARRAY,
+3 −1
Original line number Diff line number Diff line
@@ -380,9 +380,11 @@ struct wlfw_cap_resp_msg_v01 {
	char fw_build_id[QMI_WLFW_MAX_BUILD_ID_LEN_V01 + 1];
	u8 num_macs_valid;
	u8 num_macs;
	u8 voltage_mv_valid;
	u32 voltage_mv;
};

#define WLFW_CAP_RESP_MSG_V01_MAX_MSG_LEN 207
#define WLFW_CAP_RESP_MSG_V01_MAX_MSG_LEN 214
extern struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[];

struct wlfw_bdf_download_req_msg_v01 {