0001
0002
0003
0004
0005
0006 #ifndef __MFD_MT6358_REGISTERS_H__
0007 #define __MFD_MT6358_REGISTERS_H__
0008
0009
0010 #define MT6358_SWCID 0xa
0011 #define MT6358_TOPSTATUS 0x28
0012 #define MT6358_TOP_RST_MISC 0x14c
0013 #define MT6358_MISC_TOP_INT_CON0 0x188
0014 #define MT6358_MISC_TOP_INT_STATUS0 0x194
0015 #define MT6358_TOP_INT_STATUS0 0x19e
0016 #define MT6358_SCK_TOP_INT_CON0 0x52e
0017 #define MT6358_SCK_TOP_INT_STATUS0 0x53a
0018 #define MT6358_EOSC_CALI_CON0 0x540
0019 #define MT6358_EOSC_CALI_CON1 0x542
0020 #define MT6358_RTC_MIX_CON0 0x544
0021 #define MT6358_RTC_MIX_CON1 0x546
0022 #define MT6358_RTC_MIX_CON2 0x548
0023 #define MT6358_RTC_DSN_ID 0x580
0024 #define MT6358_RTC_DSN_REV0 0x582
0025 #define MT6358_RTC_DBI 0x584
0026 #define MT6358_RTC_DXI 0x586
0027 #define MT6358_RTC_BBPU 0x588
0028 #define MT6358_RTC_IRQ_STA 0x58a
0029 #define MT6358_RTC_IRQ_EN 0x58c
0030 #define MT6358_RTC_CII_EN 0x58e
0031 #define MT6358_RTC_AL_MASK 0x590
0032 #define MT6358_RTC_TC_SEC 0x592
0033 #define MT6358_RTC_TC_MIN 0x594
0034 #define MT6358_RTC_TC_HOU 0x596
0035 #define MT6358_RTC_TC_DOM 0x598
0036 #define MT6358_RTC_TC_DOW 0x59a
0037 #define MT6358_RTC_TC_MTH 0x59c
0038 #define MT6358_RTC_TC_YEA 0x59e
0039 #define MT6358_RTC_AL_SEC 0x5a0
0040 #define MT6358_RTC_AL_MIN 0x5a2
0041 #define MT6358_RTC_AL_HOU 0x5a4
0042 #define MT6358_RTC_AL_DOM 0x5a6
0043 #define MT6358_RTC_AL_DOW 0x5a8
0044 #define MT6358_RTC_AL_MTH 0x5aa
0045 #define MT6358_RTC_AL_YEA 0x5ac
0046 #define MT6358_RTC_OSC32CON 0x5ae
0047 #define MT6358_RTC_POWERKEY1 0x5b0
0048 #define MT6358_RTC_POWERKEY2 0x5b2
0049 #define MT6358_RTC_PDN1 0x5b4
0050 #define MT6358_RTC_PDN2 0x5b6
0051 #define MT6358_RTC_SPAR0 0x5b8
0052 #define MT6358_RTC_SPAR1 0x5ba
0053 #define MT6358_RTC_PROT 0x5bc
0054 #define MT6358_RTC_DIFF 0x5be
0055 #define MT6358_RTC_CALI 0x5c0
0056 #define MT6358_RTC_WRTGR 0x5c2
0057 #define MT6358_RTC_CON 0x5c4
0058 #define MT6358_RTC_SEC_CTRL 0x5c6
0059 #define MT6358_RTC_INT_CNT 0x5c8
0060 #define MT6358_RTC_SEC_DAT0 0x5ca
0061 #define MT6358_RTC_SEC_DAT1 0x5cc
0062 #define MT6358_RTC_SEC_DAT2 0x5ce
0063 #define MT6358_RTC_SEC_DSN_ID 0x600
0064 #define MT6358_RTC_SEC_DSN_REV0 0x602
0065 #define MT6358_RTC_SEC_DBI 0x604
0066 #define MT6358_RTC_SEC_DXI 0x606
0067 #define MT6358_RTC_TC_SEC_SEC 0x608
0068 #define MT6358_RTC_TC_MIN_SEC 0x60a
0069 #define MT6358_RTC_TC_HOU_SEC 0x60c
0070 #define MT6358_RTC_TC_DOM_SEC 0x60e
0071 #define MT6358_RTC_TC_DOW_SEC 0x610
0072 #define MT6358_RTC_TC_MTH_SEC 0x612
0073 #define MT6358_RTC_TC_YEA_SEC 0x614
0074 #define MT6358_RTC_SEC_CK_PDN 0x616
0075 #define MT6358_RTC_SEC_WRTGR 0x618
0076 #define MT6358_PSC_TOP_INT_CON0 0x910
0077 #define MT6358_PSC_TOP_INT_STATUS0 0x91c
0078 #define MT6358_BM_TOP_INT_CON0 0xc32
0079 #define MT6358_BM_TOP_INT_CON1 0xc38
0080 #define MT6358_BM_TOP_INT_STATUS0 0xc4a
0081 #define MT6358_BM_TOP_INT_STATUS1 0xc4c
0082 #define MT6358_HK_TOP_INT_CON0 0xf92
0083 #define MT6358_HK_TOP_INT_STATUS0 0xf9e
0084 #define MT6358_BUCK_TOP_INT_CON0 0x1318
0085 #define MT6358_BUCK_TOP_INT_STATUS0 0x1324
0086 #define MT6358_BUCK_VPROC11_CON0 0x1388
0087 #define MT6358_BUCK_VPROC11_DBG0 0x139e
0088 #define MT6358_BUCK_VPROC11_DBG1 0x13a0
0089 #define MT6358_BUCK_VPROC11_ELR0 0x13a6
0090 #define MT6358_BUCK_VPROC12_CON0 0x1408
0091 #define MT6358_BUCK_VPROC12_DBG0 0x141e
0092 #define MT6358_BUCK_VPROC12_DBG1 0x1420
0093 #define MT6358_BUCK_VPROC12_ELR0 0x1426
0094 #define MT6358_BUCK_VCORE_CON0 0x1488
0095 #define MT6358_BUCK_VCORE_DBG0 0x149e
0096 #define MT6358_BUCK_VCORE_DBG1 0x14a0
0097 #define MT6358_BUCK_VCORE_SSHUB_CON0 0x14a4
0098 #define MT6358_BUCK_VCORE_SSHUB_CON1 0x14a6
0099 #define MT6358_BUCK_VCORE_SSHUB_ELR0 MT6358_BUCK_VCORE_SSHUB_CON1
0100 #define MT6358_BUCK_VCORE_SSHUB_DBG1 MT6358_BUCK_VCORE_DBG1
0101 #define MT6358_BUCK_VCORE_ELR0 0x14aa
0102 #define MT6358_BUCK_VGPU_CON0 0x1508
0103 #define MT6358_BUCK_VGPU_DBG0 0x151e
0104 #define MT6358_BUCK_VGPU_DBG1 0x1520
0105 #define MT6358_BUCK_VGPU_ELR0 0x1526
0106 #define MT6358_BUCK_VMODEM_CON0 0x1588
0107 #define MT6358_BUCK_VMODEM_DBG0 0x159e
0108 #define MT6358_BUCK_VMODEM_DBG1 0x15a0
0109 #define MT6358_BUCK_VMODEM_ELR0 0x15a6
0110 #define MT6358_BUCK_VDRAM1_CON0 0x1608
0111 #define MT6358_BUCK_VDRAM1_DBG0 0x161e
0112 #define MT6358_BUCK_VDRAM1_DBG1 0x1620
0113 #define MT6358_BUCK_VDRAM1_ELR0 0x1626
0114 #define MT6358_BUCK_VS1_CON0 0x1688
0115 #define MT6358_BUCK_VS1_DBG0 0x169e
0116 #define MT6358_BUCK_VS1_DBG1 0x16a0
0117 #define MT6358_BUCK_VS1_ELR0 0x16ae
0118 #define MT6358_BUCK_VS2_CON0 0x1708
0119 #define MT6358_BUCK_VS2_DBG0 0x171e
0120 #define MT6358_BUCK_VS2_DBG1 0x1720
0121 #define MT6358_BUCK_VS2_ELR0 0x172e
0122 #define MT6358_BUCK_VPA_CON0 0x1788
0123 #define MT6358_BUCK_VPA_CON1 0x178a
0124 #define MT6358_BUCK_VPA_ELR0 MT6358_BUCK_VPA_CON1
0125 #define MT6358_BUCK_VPA_DBG0 0x1792
0126 #define MT6358_BUCK_VPA_DBG1 0x1794
0127 #define MT6358_VPROC_ANA_CON0 0x180c
0128 #define MT6358_VCORE_VGPU_ANA_CON0 0x1828
0129 #define MT6358_VMODEM_ANA_CON0 0x1888
0130 #define MT6358_VDRAM1_ANA_CON0 0x1896
0131 #define MT6358_VS1_ANA_CON0 0x18a2
0132 #define MT6358_VS2_ANA_CON0 0x18ae
0133 #define MT6358_VPA_ANA_CON0 0x18ba
0134 #define MT6358_LDO_TOP_INT_CON0 0x1a50
0135 #define MT6358_LDO_TOP_INT_CON1 0x1a56
0136 #define MT6358_LDO_TOP_INT_STATUS0 0x1a68
0137 #define MT6358_LDO_TOP_INT_STATUS1 0x1a6a
0138 #define MT6358_LDO_VXO22_CON0 0x1a88
0139 #define MT6358_LDO_VXO22_CON1 0x1a96
0140 #define MT6358_LDO_VA12_CON0 0x1a9c
0141 #define MT6358_LDO_VA12_CON1 0x1aaa
0142 #define MT6358_LDO_VAUX18_CON0 0x1ab0
0143 #define MT6358_LDO_VAUX18_CON1 0x1abe
0144 #define MT6358_LDO_VAUD28_CON0 0x1ac4
0145 #define MT6358_LDO_VAUD28_CON1 0x1ad2
0146 #define MT6358_LDO_VIO28_CON0 0x1ad8
0147 #define MT6358_LDO_VIO28_CON1 0x1ae6
0148 #define MT6358_LDO_VIO18_CON0 0x1aec
0149 #define MT6358_LDO_VIO18_CON1 0x1afa
0150 #define MT6358_LDO_VDRAM2_CON0 0x1b08
0151 #define MT6358_LDO_VDRAM2_CON1 0x1b16
0152 #define MT6358_LDO_VEMC_CON0 0x1b1c
0153 #define MT6358_LDO_VEMC_CON1 0x1b2a
0154 #define MT6358_LDO_VUSB_CON0_0 0x1b30
0155 #define MT6358_LDO_VUSB_CON1 0x1b40
0156 #define MT6358_LDO_VSRAM_PROC11_CON0 0x1b46
0157 #define MT6358_LDO_VSRAM_PROC11_DBG0 0x1b60
0158 #define MT6358_LDO_VSRAM_PROC11_DBG1 0x1b62
0159 #define MT6358_LDO_VSRAM_PROC11_TRACKING_CON0 0x1b64
0160 #define MT6358_LDO_VSRAM_PROC11_TRACKING_CON1 0x1b66
0161 #define MT6358_LDO_VSRAM_PROC11_TRACKING_CON2 0x1b68
0162 #define MT6358_LDO_VSRAM_PROC11_TRACKING_CON3 0x1b6a
0163 #define MT6358_LDO_VSRAM_PROC12_TRACKING_CON0 0x1b6c
0164 #define MT6358_LDO_VSRAM_PROC12_TRACKING_CON1 0x1b6e
0165 #define MT6358_LDO_VSRAM_PROC12_TRACKING_CON2 0x1b70
0166 #define MT6358_LDO_VSRAM_PROC12_TRACKING_CON3 0x1b72
0167 #define MT6358_LDO_VSRAM_WAKEUP_CON0 0x1b74
0168 #define MT6358_LDO_GON1_ELR_NUM 0x1b76
0169 #define MT6358_LDO_VDRAM2_ELR0 0x1b78
0170 #define MT6358_LDO_VSRAM_PROC12_CON0 0x1b88
0171 #define MT6358_LDO_VSRAM_PROC12_DBG0 0x1ba2
0172 #define MT6358_LDO_VSRAM_PROC12_DBG1 0x1ba4
0173 #define MT6358_LDO_VSRAM_OTHERS_CON0 0x1ba6
0174 #define MT6358_LDO_VSRAM_OTHERS_DBG0 0x1bc0
0175 #define MT6358_LDO_VSRAM_OTHERS_DBG1 0x1bc2
0176 #define MT6358_LDO_VSRAM_OTHERS_SSHUB_CON0 0x1bc4
0177 #define MT6358_LDO_VSRAM_OTHERS_SSHUB_CON1 0x1bc6
0178 #define MT6358_LDO_VSRAM_OTHERS_SSHUB_DBG1 MT6358_LDO_VSRAM_OTHERS_DBG1
0179 #define MT6358_LDO_VSRAM_GPU_CON0 0x1bc8
0180 #define MT6358_LDO_VSRAM_GPU_DBG0 0x1be2
0181 #define MT6358_LDO_VSRAM_GPU_DBG1 0x1be4
0182 #define MT6358_LDO_VSRAM_CON0 0x1bee
0183 #define MT6358_LDO_VSRAM_CON1 0x1bf0
0184 #define MT6358_LDO_VSRAM_CON2 0x1bf2
0185 #define MT6358_LDO_VSRAM_CON3 0x1bf4
0186 #define MT6358_LDO_VFE28_CON0 0x1c08
0187 #define MT6358_LDO_VFE28_CON1 0x1c16
0188 #define MT6358_LDO_VFE28_CON2 0x1c18
0189 #define MT6358_LDO_VFE28_CON3 0x1c1a
0190 #define MT6358_LDO_VRF18_CON0 0x1c1c
0191 #define MT6358_LDO_VRF18_CON1 0x1c2a
0192 #define MT6358_LDO_VRF18_CON2 0x1c2c
0193 #define MT6358_LDO_VRF18_CON3 0x1c2e
0194 #define MT6358_LDO_VRF12_CON0 0x1c30
0195 #define MT6358_LDO_VRF12_CON1 0x1c3e
0196 #define MT6358_LDO_VRF12_CON2 0x1c40
0197 #define MT6358_LDO_VRF12_CON3 0x1c42
0198 #define MT6358_LDO_VEFUSE_CON0 0x1c44
0199 #define MT6358_LDO_VEFUSE_CON1 0x1c52
0200 #define MT6358_LDO_VEFUSE_CON2 0x1c54
0201 #define MT6358_LDO_VEFUSE_CON3 0x1c56
0202 #define MT6358_LDO_VCN18_CON0 0x1c58
0203 #define MT6358_LDO_VCN18_CON1 0x1c66
0204 #define MT6358_LDO_VCN18_CON2 0x1c68
0205 #define MT6358_LDO_VCN18_CON3 0x1c6a
0206 #define MT6358_LDO_VCAMA1_CON0 0x1c6c
0207 #define MT6358_LDO_VCAMA1_CON1 0x1c7a
0208 #define MT6358_LDO_VCAMA1_CON2 0x1c7c
0209 #define MT6358_LDO_VCAMA1_CON3 0x1c7e
0210 #define MT6358_LDO_VCAMA2_CON0 0x1c88
0211 #define MT6358_LDO_VCAMA2_CON1 0x1c96
0212 #define MT6358_LDO_VCAMA2_CON2 0x1c98
0213 #define MT6358_LDO_VCAMA2_CON3 0x1c9a
0214 #define MT6358_LDO_VCAMD_CON0 0x1c9c
0215 #define MT6358_LDO_VCAMD_CON1 0x1caa
0216 #define MT6358_LDO_VCAMD_CON2 0x1cac
0217 #define MT6358_LDO_VCAMD_CON3 0x1cae
0218 #define MT6358_LDO_VCAMIO_CON0 0x1cb0
0219 #define MT6358_LDO_VCAMIO_CON1 0x1cbe
0220 #define MT6358_LDO_VCAMIO_CON2 0x1cc0
0221 #define MT6358_LDO_VCAMIO_CON3 0x1cc2
0222 #define MT6358_LDO_VMC_CON0 0x1cc4
0223 #define MT6358_LDO_VMC_CON1 0x1cd2
0224 #define MT6358_LDO_VMC_CON2 0x1cd4
0225 #define MT6358_LDO_VMC_CON3 0x1cd6
0226 #define MT6358_LDO_VMCH_CON0 0x1cd8
0227 #define MT6358_LDO_VMCH_CON1 0x1ce6
0228 #define MT6358_LDO_VMCH_CON2 0x1ce8
0229 #define MT6358_LDO_VMCH_CON3 0x1cea
0230 #define MT6358_LDO_VIBR_CON0 0x1d08
0231 #define MT6358_LDO_VIBR_CON1 0x1d16
0232 #define MT6358_LDO_VIBR_CON2 0x1d18
0233 #define MT6358_LDO_VIBR_CON3 0x1d1a
0234 #define MT6358_LDO_VCN33_CON0_0 0x1d1c
0235 #define MT6358_LDO_VCN33_CON0_1 0x1d2a
0236 #define MT6358_LDO_VCN33_CON1 0x1d2c
0237 #define MT6358_LDO_VCN33_BT_CON1 MT6358_LDO_VCN33_CON1
0238 #define MT6358_LDO_VCN33_WIFI_CON1 MT6358_LDO_VCN33_CON1
0239 #define MT6358_LDO_VCN33_CON2 0x1d2e
0240 #define MT6358_LDO_VCN33_CON3 0x1d30
0241 #define MT6358_LDO_VLDO28_CON0_0 0x1d32
0242 #define MT6358_LDO_VLDO28_CON0_1 0x1d40
0243 #define MT6358_LDO_VLDO28_CON1 0x1d42
0244 #define MT6358_LDO_VLDO28_CON2 0x1d44
0245 #define MT6358_LDO_VLDO28_CON3 0x1d46
0246 #define MT6358_LDO_VSIM1_CON0 0x1d48
0247 #define MT6358_LDO_VSIM1_CON1 0x1d56
0248 #define MT6358_LDO_VSIM1_CON2 0x1d58
0249 #define MT6358_LDO_VSIM1_CON3 0x1d5a
0250 #define MT6358_LDO_VSIM2_CON0 0x1d5c
0251 #define MT6358_LDO_VSIM2_CON1 0x1d6a
0252 #define MT6358_LDO_VSIM2_CON2 0x1d6c
0253 #define MT6358_LDO_VSIM2_CON3 0x1d6e
0254 #define MT6358_LDO_VCN28_CON0 0x1d88
0255 #define MT6358_LDO_VCN28_CON1 0x1d96
0256 #define MT6358_LDO_VCN28_CON2 0x1d98
0257 #define MT6358_LDO_VCN28_CON3 0x1d9a
0258 #define MT6358_VRTC28_CON0 0x1d9c
0259 #define MT6358_LDO_VBIF28_CON0 0x1d9e
0260 #define MT6358_LDO_VBIF28_CON1 0x1dac
0261 #define MT6358_LDO_VBIF28_CON2 0x1dae
0262 #define MT6358_LDO_VBIF28_CON3 0x1db0
0263 #define MT6358_VCAMA1_ANA_CON0 0x1e08
0264 #define MT6358_VCAMA2_ANA_CON0 0x1e0c
0265 #define MT6358_VCN33_ANA_CON0 0x1e28
0266 #define MT6358_VSIM1_ANA_CON0 0x1e2c
0267 #define MT6358_VSIM2_ANA_CON0 0x1e30
0268 #define MT6358_VUSB_ANA_CON0 0x1e34
0269 #define MT6358_VEMC_ANA_CON0 0x1e38
0270 #define MT6358_VLDO28_ANA_CON0 0x1e3c
0271 #define MT6358_VIO28_ANA_CON0 0x1e40
0272 #define MT6358_VIBR_ANA_CON0 0x1e44
0273 #define MT6358_VMCH_ANA_CON0 0x1e48
0274 #define MT6358_VMC_ANA_CON0 0x1e4c
0275 #define MT6358_VRF18_ANA_CON0 0x1e88
0276 #define MT6358_VCN18_ANA_CON0 0x1e8c
0277 #define MT6358_VCAMIO_ANA_CON0 0x1e90
0278 #define MT6358_VIO18_ANA_CON0 0x1e94
0279 #define MT6358_VEFUSE_ANA_CON0 0x1e98
0280 #define MT6358_VRF12_ANA_CON0 0x1e9c
0281 #define MT6358_VSRAM_PROC11_ANA_CON0 0x1ea0
0282 #define MT6358_VSRAM_PROC12_ANA_CON0 0x1ea4
0283 #define MT6358_VSRAM_OTHERS_ANA_CON0 0x1ea6
0284 #define MT6358_VSRAM_GPU_ANA_CON0 0x1ea8
0285 #define MT6358_VDRAM2_ANA_CON0 0x1eaa
0286 #define MT6358_VCAMD_ANA_CON0 0x1eae
0287 #define MT6358_VA12_ANA_CON0 0x1eb2
0288 #define MT6358_AUD_TOP_INT_CON0 0x2228
0289 #define MT6358_AUD_TOP_INT_STATUS0 0x2234
0290
0291 #endif