summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSubrahmanya Lingappa <subrahmanya.lingappa@oss.qualcomm.com>2026-06-19 16:04:24 +0530
committerAnup Patel <anup@brainfault.org>2026-07-01 21:30:24 +0530
commit262571217c75c649115633d8075cb6a40d940733 (patch)
treedd71253fd64f277c4f08aa2027337633678cdc90 /include
parentcbf9f6734dd85a982c63e3cb5db7ffe09da839ca (diff)
downloadopensbi-master.tar.gz
opensbi-master.zip
lib: utils/mpxy: Add RPMI MPXY driver for logging service groupHEADmaster
Add RPMI MPXY proxy driver for LOGGING service group so that S-mode can leverage LOGGING service group implemented by the platform microcontroller. Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com> Signed-off-by: Subrahmanya Lingappa <subrahmanya.lingappa@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260619103424.990954-1-subrahmanya.lingappa@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/mailbox/rpmi_msgprot.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sbi_utils/mailbox/rpmi_msgprot.h b/include/sbi_utils/mailbox/rpmi_msgprot.h
index 525b3750..7ae4abe0 100644
--- a/include/sbi_utils/mailbox/rpmi_msgprot.h
+++ b/include/sbi_utils/mailbox/rpmi_msgprot.h
@@ -225,6 +225,7 @@ enum rpmi_servicegroup_id {
RPMI_SRVGRP_DEVICE_POWER = 0x0009,
RPMI_SRVGRP_PERFORMANCE = 0x0000A,
RPMI_SRVGRP_MANAGEMENT_MODE = 0x000B,
+ RPMI_SRVGRP_LOGGING = 0x000E,
RPMI_SRVGRP_ID_MAX_COUNT,
/* Reserved range for service groups */
@@ -1045,4 +1046,22 @@ struct rpmi_mm_communicate_rsp {
u32 mm_comm_retdata_size;
};
+/** RPMI LOGGING ServiceGroup Service IDs */
+enum rpmi_logging_service_id {
+ RPMI_LOGGING_SRV_ENABLE_NOTIFICATION = 0x01,
+ RPMI_LOGGING_SRV_LOG_DATA = 0x02,
+ RPMI_LOGGING_SRV_MAX_COUNT,
+};
+
+struct rpmi_logging_log_data_req {
+ u32 type;
+ u32 num_dwords;
+#define MAX_LOGGING_DLEN ((RPMI_MSG_DATA_SIZE(RPMI_SLOT_SIZE_MIN) - (sizeof(u32) * 2)) / sizeof(u32))
+ u32 data[MAX_LOGGING_DLEN];
+};
+
+struct rpmi_logging_log_data_resp {
+ s32 status;
+};
+
#endif /* !__RPMI_MSGPROT_H__ */