Skip to content

Commit 158826c

Browse files
Naman Jainandersson
authored andcommitted
soc: qcom: socinfo: Add support for new fields in revision 18
Add support for below fields coming in socinfo structure under v18: * num_kvps: number of key value pairs (KVP) * kvps_offset: the offset of the KVP table from the base address of socinfo structure in SMEM KVP table has boolean values for certain feature flags, used to determine hardware configuration. Signed-off-by: Naman Jain <quic_namajain@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230606134626.18790-2-quic_namajain@quicinc.com
1 parent 677b9e8 commit 158826c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/soc/qcom/socinfo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo,
565565
&qcom_socinfo->info.fmt);
566566

567567
switch (qcom_socinfo->info.fmt) {
568+
case SOCINFO_VERSION(0, 18):
568569
case SOCINFO_VERSION(0, 17):
569570
qcom_socinfo->info.oem_variant = __le32_to_cpu(info->oem_variant);
570571
debugfs_create_u32("oem_variant", 0444, qcom_socinfo->dbg_root,

include/linux/soc/qcom/socinfo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ struct socinfo {
6565
__le32 nnum_partname_mapping;
6666
/* Version 17 */
6767
__le32 oem_variant;
68+
/* Version 18 */
69+
__le32 num_kvps;
70+
__le32 kvps_offset;
6871
};
6972

7073
#endif

0 commit comments

Comments
 (0)