summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCasey Connolly <[email protected]>2026-01-08 21:28:46 +0100
committerCasey Connolly <[email protected]>2026-01-14 16:25:09 +0100
commitdc1cd6ed4b369aff26a10ecec2f65459fef043e9 (patch)
treee63a0e4b826f06a981fcae7e5825c1c6554ec6ed /include
parent5942ad0ddb54e7042d2f465d563779da4e42bc47 (diff)
soc/qcom: rpmh: add RPMh read
Implement support for RPMh reads, these allow reading out the current votes for RPMh controlled resources such as regulators and interconnects. Link: https://patch.msgid.link/[email protected] Signed-off-by: Casey Connolly <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/soc/qcom/rpmh.h4
-rw-r--r--include/soc/qcom/tcs.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/soc/qcom/rpmh.h b/include/soc/qcom/rpmh.h
index 3421fbf1ee3..40812a315bc 100644
--- a/include/soc/qcom/rpmh.h
+++ b/include/soc/qcom/rpmh.h
@@ -13,12 +13,14 @@
#if IS_ENABLED(CONFIG_QCOM_RPMH)
int rpmh_write(const struct udevice *dev, enum rpmh_state state,
const struct tcs_cmd *cmd, u32 n);
-
+int rpmh_read(const struct udevice *dev, enum rpmh_state state, struct tcs_cmd *cmd);
#else
static inline int rpmh_write(const struct device *dev, enum rpmh_state state,
const struct tcs_cmd *cmd, u32 n)
{ return -ENODEV; }
+static inline int rpmh_read(const struct udevice *dev, struct tcs_cmd *cmd)
+{ return -ENODEV; }
#endif /* CONFIG_QCOM_RPMH */
diff --git a/include/soc/qcom/tcs.h b/include/soc/qcom/tcs.h
index 3acca067c72..22bafe2598a 100644
--- a/include/soc/qcom/tcs.h
+++ b/include/soc/qcom/tcs.h
@@ -55,6 +55,7 @@ struct tcs_cmd {
*/
struct tcs_request {
enum rpmh_state state;
+ bool is_read;
u32 wait_for_compl;
u32 num_cmds;
struct tcs_cmd *cmds;