1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __QCOM_SMD_RPM_H__ 3 #define __QCOM_SMD_RPM_H__ 4 5 struct qcom_smd_rpm; 6 7 #define QCOM_SMD_RPM_ACTIVE_STATE 0 8 #define QCOM_SMD_RPM_SLEEP_STATE 1 9 10 /* 11 * Constants used for addressing resources in the RPM. 12 */ 13 #define QCOM_SMD_RPM_BBYB 0x62796262 14 #define QCOM_SMD_RPM_BOBB 0x62626f62 15 #define QCOM_SMD_RPM_BOOST 0x61747362 16 #define QCOM_SMD_RPM_BUS_CLK 0x316b6c63 17 #define QCOM_SMD_RPM_BUS_MASTER 0x73616d62 18 #define QCOM_SMD_RPM_BUS_SLAVE 0x766c7362 19 #define QCOM_SMD_RPM_CLK_BUF_A 0x616B6C63 20 #define QCOM_SMD_RPM_LDOA 0x616f646c 21 #define QCOM_SMD_RPM_LDOB 0x626F646C 22 #define QCOM_SMD_RPM_LDOE 0x656f646c 23 #define QCOM_SMD_RPM_RWCX 0x78637772 24 #define QCOM_SMD_RPM_RWMX 0x786d7772 25 #define QCOM_SMD_RPM_RWLC 0x636c7772 26 #define QCOM_SMD_RPM_RWLM 0x6d6c7772 27 #define QCOM_SMD_RPM_MEM_CLK 0x326b6c63 28 #define QCOM_SMD_RPM_MISC_CLK 0x306b6c63 29 #define QCOM_SMD_RPM_NCPA 0x6170636E 30 #define QCOM_SMD_RPM_NCPB 0x6270636E 31 #define QCOM_SMD_RPM_OCMEM_PWR 0x706d636f 32 #define QCOM_SMD_RPM_QPIC_CLK 0x63697071 33 #define QCOM_SMD_RPM_QUP_CLK 0x707571 34 #define QCOM_SMD_RPM_SMPA 0x61706d73 35 #define QCOM_SMD_RPM_SMPB 0x62706d73 36 #define QCOM_SMD_RPM_SMPE 0x65706d73 37 #define QCOM_SMD_RPM_SPDM 0x63707362 38 #define QCOM_SMD_RPM_VSA 0x00617376 39 #define QCOM_SMD_RPM_MMAXI_CLK 0x69786d6d 40 #define QCOM_SMD_RPM_IPA_CLK 0x617069 41 #define QCOM_SMD_RPM_CE_CLK 0x6563 42 #define QCOM_SMD_RPM_AGGR_CLK 0x72676761 43 #define QCOM_SMD_RPM_HWKM_CLK 0x6d6b7768 44 #define QCOM_SMD_RPM_PKA_CLK 0x616b70 45 #define QCOM_SMD_RPM_MCFG_CLK 0x6766636d 46 47 int qcom_rpm_smd_write(struct qcom_smd_rpm *rpm, 48 int state, 49 u32 resource_type, u32 resource_id, 50 void *buf, size_t count); 51 52 #endif 53