diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-07-27 23:20:32 -0400 |
---|---|---|
committer | Andy Gross <agross@codeaurora.org> | 2015-07-29 15:13:48 -0400 |
commit | 936f14cf4e67168fcd37f10cebf5a475f490fb6e (patch) | |
tree | a0bec7660c796927def34c3f315ee6addfc71ba4 /include | |
parent | f2ab3298fb4932358d27fc4c7ea1a1891ad7e042 (diff) |
soc: qcom: Driver for the Qualcomm RPM over SMD
Driver for the Resource Power Manager (RPM) found in Qualcomm 8974 based
devices.
The driver exposes resources that child drivers can operate on; to
implementing regulator, clock and bus frequency drivers.
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/smd-rpm.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/smd-rpm.h b/include/linux/soc/qcom/smd-rpm.h new file mode 100644 index 000000000000..2a53dcaeeeed --- /dev/null +++ b/include/linux/soc/qcom/smd-rpm.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef __QCOM_SMD_RPM_H__ | ||
2 | #define __QCOM_SMD_RPM_H__ | ||
3 | |||
4 | struct qcom_smd_rpm; | ||
5 | |||
6 | #define QCOM_SMD_RPM_ACTIVE_STATE 0 | ||
7 | #define QCOM_SMD_RPM_SLEEP_STATE 1 | ||
8 | |||
9 | /* | ||
10 | * Constants used for addressing resources in the RPM. | ||
11 | */ | ||
12 | #define QCOM_SMD_RPM_BOOST 0x61747362 | ||
13 | #define QCOM_SMD_RPM_BUS_CLK 0x316b6c63 | ||
14 | #define QCOM_SMD_RPM_BUS_MASTER 0x73616d62 | ||
15 | #define QCOM_SMD_RPM_BUS_SLAVE 0x766c7362 | ||
16 | #define QCOM_SMD_RPM_CLK_BUF_A 0x616B6C63 | ||
17 | #define QCOM_SMD_RPM_LDOA 0x616f646c | ||
18 | #define QCOM_SMD_RPM_LDOB 0x626F646C | ||
19 | #define QCOM_SMD_RPM_MEM_CLK 0x326b6c63 | ||
20 | #define QCOM_SMD_RPM_MISC_CLK 0x306b6c63 | ||
21 | #define QCOM_SMD_RPM_NCPA 0x6170636E | ||
22 | #define QCOM_SMD_RPM_NCPB 0x6270636E | ||
23 | #define QCOM_SMD_RPM_OCMEM_PWR 0x706d636f | ||
24 | #define QCOM_SMD_RPM_QPIC_CLK 0x63697071 | ||
25 | #define QCOM_SMD_RPM_SMPA 0x61706d73 | ||
26 | #define QCOM_SMD_RPM_SMPB 0x62706d73 | ||
27 | #define QCOM_SMD_RPM_SPDM 0x63707362 | ||
28 | #define QCOM_SMD_RPM_VSA 0x00617376 | ||
29 | |||
30 | int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, | ||
31 | int state, | ||
32 | u32 resource_type, u32 resource_id, | ||
33 | void *buf, size_t count); | ||
34 | |||
35 | #endif | ||