diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-09-24 18:25:01 -0700 |
---|---|---|
committer | Andy Gross <agross@codeaurora.org> | 2015-12-08 13:01:01 -0600 |
commit | 9460ae2ff3081b43e4f93126cfd26a27cda1b6a1 (patch) | |
tree | f199913f7877802c2b2de7dce744417f2db211a1 /include | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | op-kernel-dev-9460ae2ff3081b43e4f93126cfd26a27cda1b6a1.zip op-kernel-dev-9460ae2ff3081b43e4f93126cfd26a27cda1b6a1.tar.gz |
soc: qcom: Introduce common SMEM state machine code
This implements a common API for handling and exposing SMP2P and SMSM
state information.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Andy Gross <agross@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/soc/qcom/smem_state.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/smem_state.h b/include/linux/soc/qcom/smem_state.h new file mode 100644 index 0000000..f35e151 --- /dev/null +++ b/include/linux/soc/qcom/smem_state.h @@ -0,0 +1,18 @@ +#ifndef __QCOM_SMEM_STATE__ +#define __QCOM_SMEM_STATE__ + +struct qcom_smem_state; + +struct qcom_smem_state_ops { + int (*update_bits)(void *, u32, u32); +}; + +struct qcom_smem_state *qcom_smem_state_get(struct device *dev, const char *con_id, unsigned *bit); +void qcom_smem_state_put(struct qcom_smem_state *); + +int qcom_smem_state_update_bits(struct qcom_smem_state *state, u32 mask, u32 value); + +struct qcom_smem_state *qcom_smem_state_register(struct device_node *of_node, const struct qcom_smem_state_ops *ops, void *data); +void qcom_smem_state_unregister(struct qcom_smem_state *state); + +#endif |