qcom-rpm.h revision 295436
1279377Simp/* 2279377Simp * This header provides constants for the Qualcomm RPM bindings. 3279377Simp */ 4279377Simp 5279377Simp#ifndef _DT_BINDINGS_MFD_QCOM_RPM_H 6279377Simp#define _DT_BINDINGS_MFD_QCOM_RPM_H 7279377Simp 8279377Simp/* 9279377Simp * Constants use to identify individual resources in the RPM. 10279377Simp */ 11279377Simp#define QCOM_RPM_APPS_FABRIC_ARB 1 12279377Simp#define QCOM_RPM_APPS_FABRIC_CLK 2 13279377Simp#define QCOM_RPM_APPS_FABRIC_HALT 3 14279377Simp#define QCOM_RPM_APPS_FABRIC_IOCTL 4 15279377Simp#define QCOM_RPM_APPS_FABRIC_MODE 5 16279377Simp#define QCOM_RPM_APPS_L2_CACHE_CTL 6 17279377Simp#define QCOM_RPM_CFPB_CLK 7 18279377Simp#define QCOM_RPM_CXO_BUFFERS 8 19279377Simp#define QCOM_RPM_CXO_CLK 9 20279377Simp#define QCOM_RPM_DAYTONA_FABRIC_CLK 10 21279377Simp#define QCOM_RPM_DDR_DMM 11 22279377Simp#define QCOM_RPM_EBI1_CLK 12 23279377Simp#define QCOM_RPM_HDMI_SWITCH 13 24279377Simp#define QCOM_RPM_MMFPB_CLK 14 25279377Simp#define QCOM_RPM_MM_FABRIC_ARB 15 26279377Simp#define QCOM_RPM_MM_FABRIC_CLK 16 27279377Simp#define QCOM_RPM_MM_FABRIC_HALT 17 28279377Simp#define QCOM_RPM_MM_FABRIC_IOCTL 18 29279377Simp#define QCOM_RPM_MM_FABRIC_MODE 19 30279377Simp#define QCOM_RPM_PLL_4 20 31279377Simp#define QCOM_RPM_PM8058_LDO0 21 32279377Simp#define QCOM_RPM_PM8058_LDO1 22 33279377Simp#define QCOM_RPM_PM8058_LDO2 23 34279377Simp#define QCOM_RPM_PM8058_LDO3 24 35279377Simp#define QCOM_RPM_PM8058_LDO4 25 36279377Simp#define QCOM_RPM_PM8058_LDO5 26 37279377Simp#define QCOM_RPM_PM8058_LDO6 27 38279377Simp#define QCOM_RPM_PM8058_LDO7 28 39279377Simp#define QCOM_RPM_PM8058_LDO8 29 40279377Simp#define QCOM_RPM_PM8058_LDO9 30 41279377Simp#define QCOM_RPM_PM8058_LDO10 31 42279377Simp#define QCOM_RPM_PM8058_LDO11 32 43279377Simp#define QCOM_RPM_PM8058_LDO12 33 44279377Simp#define QCOM_RPM_PM8058_LDO13 34 45279377Simp#define QCOM_RPM_PM8058_LDO14 35 46279377Simp#define QCOM_RPM_PM8058_LDO15 36 47279377Simp#define QCOM_RPM_PM8058_LDO16 37 48279377Simp#define QCOM_RPM_PM8058_LDO17 38 49279377Simp#define QCOM_RPM_PM8058_LDO18 39 50279377Simp#define QCOM_RPM_PM8058_LDO19 40 51279377Simp#define QCOM_RPM_PM8058_LDO20 41 52279377Simp#define QCOM_RPM_PM8058_LDO21 42 53279377Simp#define QCOM_RPM_PM8058_LDO22 43 54279377Simp#define QCOM_RPM_PM8058_LDO23 44 55279377Simp#define QCOM_RPM_PM8058_LDO24 45 56279377Simp#define QCOM_RPM_PM8058_LDO25 46 57279377Simp#define QCOM_RPM_PM8058_LVS0 47 58279377Simp#define QCOM_RPM_PM8058_LVS1 48 59279377Simp#define QCOM_RPM_PM8058_NCP 49 60279377Simp#define QCOM_RPM_PM8058_SMPS0 50 61279377Simp#define QCOM_RPM_PM8058_SMPS1 51 62279377Simp#define QCOM_RPM_PM8058_SMPS2 52 63279377Simp#define QCOM_RPM_PM8058_SMPS3 53 64279377Simp#define QCOM_RPM_PM8058_SMPS4 54 65279377Simp#define QCOM_RPM_PM8821_LDO1 55 66279377Simp#define QCOM_RPM_PM8821_SMPS1 56 67279377Simp#define QCOM_RPM_PM8821_SMPS2 57 68279377Simp#define QCOM_RPM_PM8901_LDO0 58 69279377Simp#define QCOM_RPM_PM8901_LDO1 59 70279377Simp#define QCOM_RPM_PM8901_LDO2 60 71279377Simp#define QCOM_RPM_PM8901_LDO3 61 72279377Simp#define QCOM_RPM_PM8901_LDO4 62 73279377Simp#define QCOM_RPM_PM8901_LDO5 63 74279377Simp#define QCOM_RPM_PM8901_LDO6 64 75279377Simp#define QCOM_RPM_PM8901_LVS0 65 76279377Simp#define QCOM_RPM_PM8901_LVS1 66 77279377Simp#define QCOM_RPM_PM8901_LVS2 67 78279377Simp#define QCOM_RPM_PM8901_LVS3 68 79279377Simp#define QCOM_RPM_PM8901_MVS 69 80279377Simp#define QCOM_RPM_PM8901_SMPS0 70 81279377Simp#define QCOM_RPM_PM8901_SMPS1 71 82279377Simp#define QCOM_RPM_PM8901_SMPS2 72 83279377Simp#define QCOM_RPM_PM8901_SMPS3 73 84279377Simp#define QCOM_RPM_PM8901_SMPS4 74 85279377Simp#define QCOM_RPM_PM8921_CLK1 75 86279377Simp#define QCOM_RPM_PM8921_CLK2 76 87279377Simp#define QCOM_RPM_PM8921_LDO1 77 88279377Simp#define QCOM_RPM_PM8921_LDO2 78 89279377Simp#define QCOM_RPM_PM8921_LDO3 79 90279377Simp#define QCOM_RPM_PM8921_LDO4 80 91279377Simp#define QCOM_RPM_PM8921_LDO5 81 92279377Simp#define QCOM_RPM_PM8921_LDO6 82 93279377Simp#define QCOM_RPM_PM8921_LDO7 83 94279377Simp#define QCOM_RPM_PM8921_LDO8 84 95279377Simp#define QCOM_RPM_PM8921_LDO9 85 96279377Simp#define QCOM_RPM_PM8921_LDO10 86 97279377Simp#define QCOM_RPM_PM8921_LDO11 87 98279377Simp#define QCOM_RPM_PM8921_LDO12 88 99279377Simp#define QCOM_RPM_PM8921_LDO13 89 100279377Simp#define QCOM_RPM_PM8921_LDO14 90 101279377Simp#define QCOM_RPM_PM8921_LDO15 91 102279377Simp#define QCOM_RPM_PM8921_LDO16 92 103279377Simp#define QCOM_RPM_PM8921_LDO17 93 104279377Simp#define QCOM_RPM_PM8921_LDO18 94 105279377Simp#define QCOM_RPM_PM8921_LDO19 95 106279377Simp#define QCOM_RPM_PM8921_LDO20 96 107279377Simp#define QCOM_RPM_PM8921_LDO21 97 108279377Simp#define QCOM_RPM_PM8921_LDO22 98 109279377Simp#define QCOM_RPM_PM8921_LDO23 99 110279377Simp#define QCOM_RPM_PM8921_LDO24 100 111279377Simp#define QCOM_RPM_PM8921_LDO25 101 112279377Simp#define QCOM_RPM_PM8921_LDO26 102 113279377Simp#define QCOM_RPM_PM8921_LDO27 103 114279377Simp#define QCOM_RPM_PM8921_LDO28 104 115279377Simp#define QCOM_RPM_PM8921_LDO29 105 116279377Simp#define QCOM_RPM_PM8921_LVS1 106 117279377Simp#define QCOM_RPM_PM8921_LVS2 107 118279377Simp#define QCOM_RPM_PM8921_LVS3 108 119279377Simp#define QCOM_RPM_PM8921_LVS4 109 120279377Simp#define QCOM_RPM_PM8921_LVS5 110 121279377Simp#define QCOM_RPM_PM8921_LVS6 111 122279377Simp#define QCOM_RPM_PM8921_LVS7 112 123279377Simp#define QCOM_RPM_PM8921_MVS 113 124279377Simp#define QCOM_RPM_PM8921_NCP 114 125279377Simp#define QCOM_RPM_PM8921_SMPS1 115 126279377Simp#define QCOM_RPM_PM8921_SMPS2 116 127279377Simp#define QCOM_RPM_PM8921_SMPS3 117 128279377Simp#define QCOM_RPM_PM8921_SMPS4 118 129279377Simp#define QCOM_RPM_PM8921_SMPS5 119 130279377Simp#define QCOM_RPM_PM8921_SMPS6 120 131279377Simp#define QCOM_RPM_PM8921_SMPS7 121 132279377Simp#define QCOM_RPM_PM8921_SMPS8 122 133279377Simp#define QCOM_RPM_PXO_CLK 123 134279377Simp#define QCOM_RPM_QDSS_CLK 124 135279377Simp#define QCOM_RPM_SFPB_CLK 125 136279377Simp#define QCOM_RPM_SMI_CLK 126 137279377Simp#define QCOM_RPM_SYS_FABRIC_ARB 127 138279377Simp#define QCOM_RPM_SYS_FABRIC_CLK 128 139279377Simp#define QCOM_RPM_SYS_FABRIC_HALT 129 140279377Simp#define QCOM_RPM_SYS_FABRIC_IOCTL 130 141279377Simp#define QCOM_RPM_SYS_FABRIC_MODE 131 142279377Simp#define QCOM_RPM_USB_OTG_SWITCH 132 143279377Simp#define QCOM_RPM_VDDMIN_GPIO 133 144295436Sandrew#define QCOM_RPM_NSS_FABRIC_0_CLK 134 145295436Sandrew#define QCOM_RPM_NSS_FABRIC_1_CLK 135 146295436Sandrew#define QCOM_RPM_SMB208_S1a 136 147295436Sandrew#define QCOM_RPM_SMB208_S1b 137 148295436Sandrew#define QCOM_RPM_SMB208_S2a 138 149295436Sandrew#define QCOM_RPM_SMB208_S2b 139 150279377Simp 151279377Simp/* 152279377Simp * Constants used to select force mode for regulators. 153279377Simp */ 154279377Simp#define QCOM_RPM_FORCE_MODE_NONE 0 155279377Simp#define QCOM_RPM_FORCE_MODE_LPM 1 156279377Simp#define QCOM_RPM_FORCE_MODE_HPM 2 157279377Simp#define QCOM_RPM_FORCE_MODE_AUTO 3 158279377Simp#define QCOM_RPM_FORCE_MODE_BYPASS 4 159279377Simp 160279377Simp#endif 161