summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMoteen Shah <[email protected]>2025-06-09 13:44:29 +0530
committerTom Rini <[email protected]>2025-06-18 12:20:25 -0600
commit3bc174031d3cbcf176b22fc2869b486011fa194c (patch)
tree7e9c97cc5e2beaaaa56a332cbb7d32878303f6e8 /drivers
parentb492f9520c04b1c581f57735e224612155f66780 (diff)
ti_sci_*: Add utility to access tisci firmware and SOC capability
Introduce response and request structs for receiving information regarding FW/SOC capability from DM. The received capability can further be used to call certain API's based on the feature supoorted by the DM firmware. Signed-off-by: Moteen Shah <[email protected]> Reviewed-by: Neha Malcom Francis <[email protected]> Reviewed-by: Dhruva Gole <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firmware/ti_sci.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/firmware/ti_sci.h b/drivers/firmware/ti_sci.h
index bb8bc7beead..292f7cd578a 100644
--- a/drivers/firmware/ti_sci.h
+++ b/drivers/firmware/ti_sci.h
@@ -27,6 +27,7 @@
#define TI_SCI_MSG_BOARD_CONFIG_SECURITY 0x000d
#define TI_SCI_MSG_BOARD_CONFIG_PM 0x000e
#define TISCI_MSG_QUERY_MSMC 0x0020
+#define TI_SCI_MSG_QUERY_FW_CAPS 0x0022
/* Device requests */
#define TI_SCI_MSG_SET_DEVICE_STATE 0x0200
@@ -135,6 +136,18 @@ struct ti_sci_msg_resp_version {
} __packed;
/**
+ * struct ti_sci_query_fw_caps_resp - Response for a message
+ * @hdr: Generic header
+ * @fw_caps: 64-bit value representing the FW/SOC capabilities.
+ *
+ * Response to a message with message type TI_SCI_MSG_QUERY_FW_CAPS
+ */
+struct ti_sci_query_fw_caps_resp {
+ struct ti_sci_msg_hdr hdr;
+ u64 fw_caps;
+} __packed;
+
+/**
* struct ti_sci_msg_req_reboot - Reboot the SoC
* @hdr: Generic Header
* @domain: Domain to be reset, 0 for full SoC reboot.