summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorCasey Connolly <[email protected]>2026-01-08 21:28:44 +0100
committerCasey Connolly <[email protected]>2026-01-14 16:25:09 +0100
commit16889f764bdceb4cb497bdeda5f80f59a880de70 (patch)
tree24ddad0a08e621aaeea94b8b5a4fbd4dae8cc71c /drivers
parent83dd2675d04f5247d6796fa6294d717069fae19c (diff)
soc/qcom: rpmh: document rsc registers
Add some comments explaining a few of the RSC registers Reviewed-by: Neil Armstrong <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Casey Connolly <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/qcom/rpmh-rsc.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c
index bc0c3dd005a..f51ef0b4af9 100644
--- a/drivers/soc/qcom/rpmh-rsc.c
+++ b/drivers/soc/qcom/rpmh-rsc.c
@@ -36,15 +36,31 @@
enum {
RSC_DRV_TCS_OFFSET,
RSC_DRV_CMD_OFFSET,
+/* DRV HW Solver Configuration Information Register */
DRV_SOLVER_CONFIG,
+/* DRV TCS Configuration Information Register */
DRV_PRNT_CHLD_CONFIG,
+/* Offsets for common TCS Registers, one bit per TCS */
RSC_DRV_IRQ_ENABLE,
RSC_DRV_IRQ_STATUS,
- RSC_DRV_IRQ_CLEAR,
- RSC_DRV_CMD_WAIT_FOR_CMPL,
+ RSC_DRV_IRQ_CLEAR, /* w/o; write 1 to clear */
+/*
+ * Offsets for per TCS Registers.
+ *
+ * TCSes start at 0x10 from tcs_base and are stored one after another.
+ * Multiply tcs_id by RSC_DRV_TCS_OFFSET to find a given TCS and add one
+ * of the below to find a register.
+ */
+ RSC_DRV_CMD_WAIT_FOR_CMPL, /* 1 bit per command */
RSC_DRV_CONTROL,
- RSC_DRV_STATUS,
- RSC_DRV_CMD_ENABLE,
+ RSC_DRV_STATUS, /* zero if tcs is busy */
+ RSC_DRV_CMD_ENABLE, /* 1 bit per command */
+/*
+ * Offsets for per command in a TCS.
+ *
+ * Commands (up to 16) start at 0x30 in a TCS; multiply command index
+ * by RSC_DRV_CMD_OFFSET and add one of the below to find a register.
+ */
RSC_DRV_CMD_MSGID,
RSC_DRV_CMD_ADDR,
RSC_DRV_CMD_DATA,