AudDrv_Ana.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. /*
  2. * Copyright (C) 2007 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*******************************************************************************
  17. *
  18. * Filename:
  19. * ---------
  20. * AudDrv_Ana.h
  21. *
  22. * Project:
  23. * --------
  24. * MT6583 Audio Driver Ana
  25. *
  26. * Description:
  27. * ------------
  28. * Audio register
  29. *
  30. * Author:
  31. * -------
  32. * Chipeng Chang (mtk02308)
  33. *
  34. *------------------------------------------------------------------------------
  35. *
  36. *
  37. *******************************************************************************/
  38. #ifndef _AUDDRV_ANA_H_
  39. #define _AUDDRV_ANA_H_
  40. /*****************************************************************************
  41. * C O M P I L E R F L A G S
  42. *****************************************************************************/
  43. /*****************************************************************************
  44. * E X T E R N A L R E F E R E N C E S
  45. *****************************************************************************/
  46. #include "AudDrv_Common.h"
  47. #include "AudDrv_Def.h"
  48. /*****************************************************************************
  49. * D A T A T Y P E S
  50. *****************************************************************************/
  51. /*****************************************************************************
  52. * M A C R O
  53. *****************************************************************************/
  54. /*****************************************************************************
  55. * R E G I S T E R D E F I N I T I O N
  56. *****************************************************************************/
  57. #define PMIC_REG_BASE (0x0000)
  58. #define AFE_UL_DL_CON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x0))
  59. #define AFE_DL_SRC2_CON0_H ((UINT32)(PMIC_REG_BASE+0x2000+0x2))
  60. #define AFE_DL_SRC2_CON0_L ((UINT32)(PMIC_REG_BASE+0x2000+0x4))
  61. #define AFE_DL_SDM_CON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x6))
  62. #define AFE_DL_SDM_CON1 ((UINT32)(PMIC_REG_BASE+0x2000+0x8))
  63. #define AFE_UL_SRC0_CON0_H ((UINT32)(PMIC_REG_BASE+0x2000+0xa))
  64. #define AFE_UL_SRC0_CON0_L ((UINT32)(PMIC_REG_BASE+0x2000+0xc))
  65. #define AFE_UL_SRC1_CON0_H ((UINT32)(PMIC_REG_BASE+0x2000+0xe))
  66. #define AFE_UL_SRC1_CON0_L ((UINT32)(PMIC_REG_BASE+0x2000+0x10))
  67. #define PMIC_AFE_TOP_CON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x12))
  68. #define AFE_AUDIO_TOP_CON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x14))
  69. #define AFE_DL_SRC_MON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x16))
  70. #define AFE_DL_SDM_TEST0 ((UINT32)(PMIC_REG_BASE+0x2000+0x18))
  71. #define AFE_MON_DEBUG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x1a))
  72. #define AFUNC_AUD_CON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x1c))
  73. #define AFUNC_AUD_CON1 ((UINT32)(PMIC_REG_BASE+0x2000+0x1e))
  74. #define AFUNC_AUD_CON2 ((UINT32)(PMIC_REG_BASE+0x2000+0x20))
  75. #define AFUNC_AUD_CON3 ((UINT32)(PMIC_REG_BASE+0x2000+0x22))
  76. #define AFUNC_AUD_CON4 ((UINT32)(PMIC_REG_BASE+0x2000+0x24))
  77. #define AFUNC_AUD_MON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x26))
  78. #define AFUNC_AUD_MON1 ((UINT32)(PMIC_REG_BASE+0x2000+0x28))
  79. #define AUDRC_TUNE_MON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x2a))
  80. #define AFE_UP8X_FIFO_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x2c))
  81. #define AFE_UP8X_FIFO_LOG_MON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x2e))
  82. #define AFE_UP8X_FIFO_LOG_MON1 ((UINT32)(PMIC_REG_BASE+0x2000+0x30))
  83. #define AFE_DL_DC_COMP_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x32))
  84. #define AFE_DL_DC_COMP_CFG1 ((UINT32)(PMIC_REG_BASE+0x2000+0x34))
  85. #define AFE_DL_DC_COMP_CFG2 ((UINT32)(PMIC_REG_BASE+0x2000+0x36))
  86. #define AFE_PMIC_NEWIF_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x38))
  87. #define AFE_PMIC_NEWIF_CFG1 ((UINT32)(PMIC_REG_BASE+0x2000+0x3a))
  88. #define AFE_PMIC_NEWIF_CFG2 ((UINT32)(PMIC_REG_BASE+0x2000+0x3c))
  89. #define AFE_PMIC_NEWIF_CFG3 ((UINT32)(PMIC_REG_BASE+0x2000+0x3e))
  90. #define AFE_SGEN_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x40))
  91. #define AFE_SGEN_CFG1 ((UINT32)(PMIC_REG_BASE+0x2000+0x42))
  92. #define AFE_VOW_TOP ((UINT32)(PMIC_REG_BASE+0x2000+0x70))
  93. #define AFE_VOW_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x72))
  94. #define AFE_VOW_CFG1 ((UINT32)(PMIC_REG_BASE+0x2000+0x74))
  95. #define AFE_VOW_CFG2 ((UINT32)(PMIC_REG_BASE+0x2000+0x76))
  96. #define AFE_VOW_CFG3 ((UINT32)(PMIC_REG_BASE+0x2000+0x78))
  97. #define AFE_VOW_CFG4 ((UINT32)(PMIC_REG_BASE+0x2000+0x7a))
  98. #define AFE_VOW_CFG5 ((UINT32)(PMIC_REG_BASE+0x2000+0x7c))
  99. #define AFE_VOW_MON0 ((UINT32)(PMIC_REG_BASE+0x2000+0x7e))
  100. #define AFE_VOW_MON1 ((UINT32)(PMIC_REG_BASE+0x2000+0x80))
  101. #define AFE_VOW_MON2 ((UINT32)(PMIC_REG_BASE+0x2000+0x82))
  102. #define AFE_VOW_MON3 ((UINT32)(PMIC_REG_BASE+0x2000+0x84))
  103. #define AFE_VOW_MON4 ((UINT32)(PMIC_REG_BASE+0x2000+0x86))
  104. #define AFE_VOW_MON5 ((UINT32)(PMIC_REG_BASE+0x2000+0x88))
  105. #define AFE_VOW_TGEN_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x8A))
  106. #define AFE_VOW_POSDIV_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x8C))
  107. #define AFE_DCCLK_CFG0 ((UINT32)(PMIC_REG_BASE+0x2000+0x90))
  108. #define AFE_DCCLK_CFG1 ((UINT32)(PMIC_REG_BASE+0x2000+0x92))
  109. /* TODO: 6328 analog part */
  110. #define STRUP_CON0 ((UINT32)(PMIC_REG_BASE+0x0000))
  111. #define STRUP_CON2 ((UINT32)(PMIC_REG_BASE+0x0002))
  112. #define STRUP_CON3 ((UINT32)(PMIC_REG_BASE+0x0004))
  113. #define STRUP_CON4 ((UINT32)(PMIC_REG_BASE+0x0006))
  114. #define STRUP_CON5 ((UINT32)(PMIC_REG_BASE+0x0008))
  115. #define STRUP_CON6 ((UINT32)(PMIC_REG_BASE+0x000A))
  116. #define STRUP_CON7 ((UINT32)(PMIC_REG_BASE+0x000C))
  117. #define STRUP_CON8 ((UINT32)(PMIC_REG_BASE+0x000E))
  118. #define STRUP_CON9 ((UINT32)(PMIC_REG_BASE+0x0010))
  119. #define STRUP_CON10 ((UINT32)(PMIC_REG_BASE+0x0012))
  120. #define STRUP_CON11 ((UINT32)(PMIC_REG_BASE+0x0014))
  121. #define STRUP_CON12 ((UINT32)(PMIC_REG_BASE+0x0016))
  122. #define STRUP_CON13 ((UINT32)(PMIC_REG_BASE+0x0018))
  123. #define STRUP_CON14 ((UINT32)(PMIC_REG_BASE+0x001A))
  124. #define STRUP_CON15 ((UINT32)(PMIC_REG_BASE+0x001C))
  125. #define STRUP_CON16 ((UINT32)(PMIC_REG_BASE+0x001E))
  126. #define STRUP_CON17 ((UINT32)(PMIC_REG_BASE+0x0020))
  127. #define STRUP_CON18 ((UINT32)(PMIC_REG_BASE+0x0022))
  128. #define STRUP_CON19 ((UINT32)(PMIC_REG_BASE+0x0024))
  129. #define STRUP_CON20 ((UINT32)(PMIC_REG_BASE+0x0026))
  130. #define STRUP_CON21 ((UINT32)(PMIC_REG_BASE+0x0028))
  131. #define STRUP_CON22 ((UINT32)(PMIC_REG_BASE+0x002A))
  132. #define STRUP_CON23 ((UINT32)(PMIC_REG_BASE+0x002C))
  133. #define STRUP_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0040))
  134. #define HWCID ((UINT32)(PMIC_REG_BASE+0x0200))
  135. #define SWCID ((UINT32)(PMIC_REG_BASE+0x0202))
  136. #define TOP_CON ((UINT32)(PMIC_REG_BASE+0x0204))
  137. #define TEST_OUT ((UINT32)(PMIC_REG_BASE+0x0206))
  138. #define TEST_CON0 ((UINT32)(PMIC_REG_BASE+0x0208))
  139. #define TEST_CON1 ((UINT32)(PMIC_REG_BASE+0x020A))
  140. #define TESTMODE_SW ((UINT32)(PMIC_REG_BASE+0x020C))
  141. #define EN_STATUS0 ((UINT32)(PMIC_REG_BASE+0x020E))
  142. #define EN_STATUS1 ((UINT32)(PMIC_REG_BASE+0x0210))
  143. #define EN_STATUS2 ((UINT32)(PMIC_REG_BASE+0x0212))
  144. #define OCSTATUS0 ((UINT32)(PMIC_REG_BASE+0x0214))
  145. #define OCSTATUS1 ((UINT32)(PMIC_REG_BASE+0x0216))
  146. #define OCSTATUS2 ((UINT32)(PMIC_REG_BASE+0x0218))
  147. #define PGSTATUS ((UINT32)(PMIC_REG_BASE+0x021C))
  148. #define TOPSTATUS ((UINT32)(PMIC_REG_BASE+0x0220))
  149. #define TDSEL_CON ((UINT32)(PMIC_REG_BASE+0x0222))
  150. #define RDSEL_CON ((UINT32)(PMIC_REG_BASE+0x0224))
  151. #define SMT_CON0 ((UINT32)(PMIC_REG_BASE+0x0226))
  152. #define SMT_CON1 ((UINT32)(PMIC_REG_BASE+0x0228))
  153. #define SMT_CON2 ((UINT32)(PMIC_REG_BASE+0x022A))
  154. #define DRV_CON0 ((UINT32)(PMIC_REG_BASE+0x022C))
  155. #define DRV_CON1 ((UINT32)(PMIC_REG_BASE+0x022E))
  156. #define DRV_CON2 ((UINT32)(PMIC_REG_BASE+0x0230))
  157. #define DRV_CON3 ((UINT32)(PMIC_REG_BASE+0x0232))
  158. #define TOP_STATUS ((UINT32)(PMIC_REG_BASE+0x0234))
  159. #define TOP_STATUS_SET ((UINT32)(PMIC_REG_BASE+0x0236))
  160. #define TOP_STATUS_CLR ((UINT32)(PMIC_REG_BASE+0x0238))
  161. #define RGS_ANA_MON ((UINT32)(PMIC_REG_BASE+0x023A))
  162. #define TOP_CKPDN_CON0 ((UINT32)(PMIC_REG_BASE+0x023C))
  163. #define TOP_CKPDN_CON0_SET ((UINT32)(PMIC_REG_BASE+0x023E))
  164. #define TOP_CKPDN_CON0_CLR ((UINT32)(PMIC_REG_BASE+0x0240))
  165. #define TOP_CKPDN_CON1 ((UINT32)(PMIC_REG_BASE+0x0242))
  166. #define TOP_CKPDN_CON1_SET ((UINT32)(PMIC_REG_BASE+0x0244))
  167. #define TOP_CKPDN_CON1_CLR ((UINT32)(PMIC_REG_BASE+0x0246))
  168. #define TOP_CKPDN_CON2 ((UINT32)(PMIC_REG_BASE+0x0248))
  169. #define TOP_CKPDN_CON2_SET ((UINT32)(PMIC_REG_BASE+0x024A))
  170. #define TOP_CKPDN_CON2_CLR ((UINT32)(PMIC_REG_BASE+0x024C))
  171. #define TOP_CKPDN_CON3 ((UINT32)(PMIC_REG_BASE+0x024E))
  172. #define TOP_CKPDN_CON3_SET ((UINT32)(PMIC_REG_BASE+0x0250))
  173. #define TOP_CKPDN_CON3_CLR ((UINT32)(PMIC_REG_BASE+0x0252))
  174. #define TOP_CKSEL_CON0 ((UINT32)(PMIC_REG_BASE+0x025A))
  175. #define TOP_CKSEL_CON0_SET ((UINT32)(PMIC_REG_BASE+0x025C))
  176. #define TOP_CKSEL_CON0_CLR ((UINT32)(PMIC_REG_BASE+0x025E))
  177. #define TOP_CKSEL_CON1 ((UINT32)(PMIC_REG_BASE+0x0260))
  178. #define TOP_CKSEL_CON1_SET ((UINT32)(PMIC_REG_BASE+0x0262))
  179. #define TOP_CKSEL_CON1_CLR ((UINT32)(PMIC_REG_BASE+0x0264))
  180. #define TOP_CKSEL_CON2 ((UINT32)(PMIC_REG_BASE+0x0266))
  181. #define TOP_CKSEL_CON2_SET ((UINT32)(PMIC_REG_BASE+0x0268))
  182. #define TOP_CKSEL_CON2_CLR ((UINT32)(PMIC_REG_BASE+0x026A))
  183. #define TOP_CKDIVSEL_CON ((UINT32)(PMIC_REG_BASE+0x026C))
  184. #define TOP_CKDIVSEL_CON_SET ((UINT32)(PMIC_REG_BASE+0x026E))
  185. #define TOP_CKDIVSEL_CON_CLR ((UINT32)(PMIC_REG_BASE+0x0270))
  186. #define TOP_CKHWEN_CON ((UINT32)(PMIC_REG_BASE+0x0278))
  187. #define TOP_CKHWEN_CON_SET ((UINT32)(PMIC_REG_BASE+0x027A))
  188. #define TOP_CKHWEN_CON_CLR ((UINT32)(PMIC_REG_BASE+0x027C))
  189. #define TOP_CKTST_CON0 ((UINT32)(PMIC_REG_BASE+0x0284))
  190. #define TOP_CKTST_CON1 ((UINT32)(PMIC_REG_BASE+0x0286))
  191. #define TOP_CKTST_CON2 ((UINT32)(PMIC_REG_BASE+0x0288))
  192. #define TOP_CLKSQ ((UINT32)(PMIC_REG_BASE+0x028A))
  193. #define TOP_CLKSQ_SET ((UINT32)(PMIC_REG_BASE+0x028C))
  194. #define TOP_CLKSQ_CLR ((UINT32)(PMIC_REG_BASE+0x028E))
  195. #define TOP_CLKSQ_RTC ((UINT32)(PMIC_REG_BASE+0x0290))
  196. #define TOP_CLKSQ_RTC_SET ((UINT32)(PMIC_REG_BASE+0x0292))
  197. #define TOP_CLKSQ_RTC_CLR ((UINT32)(PMIC_REG_BASE+0x0294))
  198. #define TOP_CLK_TRIM ((UINT32)(PMIC_REG_BASE+0x0296))
  199. #define TOP_RST_CON0 ((UINT32)(PMIC_REG_BASE+0x0298))
  200. #define TOP_RST_CON0_SET ((UINT32)(PMIC_REG_BASE+0x029A))
  201. #define TOP_RST_CON0_CLR ((UINT32)(PMIC_REG_BASE+0x029C))
  202. #define TOP_RST_CON1 ((UINT32)(PMIC_REG_BASE+0x029E))
  203. #define TOP_RST_MISC ((UINT32)(PMIC_REG_BASE+0x02A0))
  204. #define TOP_RST_MISC_SET ((UINT32)(PMIC_REG_BASE+0x02A2))
  205. #define TOP_RST_MISC_CLR ((UINT32)(PMIC_REG_BASE+0x02A4))
  206. #define TOP_RST_STATUS ((UINT32)(PMIC_REG_BASE+0x02A6))
  207. #define TOP_RST_STATUS_SET ((UINT32)(PMIC_REG_BASE+0x02A8))
  208. #define TOP_RST_STATUS_CLR ((UINT32)(PMIC_REG_BASE+0x02AA))
  209. #define INT_CON0 ((UINT32)(PMIC_REG_BASE+0x02AC))
  210. #define INT_CON0_SET ((UINT32)(PMIC_REG_BASE+0x02AE))
  211. #define INT_CON0_CLR ((UINT32)(PMIC_REG_BASE+0x02B0))
  212. #define INT_CON1 ((UINT32)(PMIC_REG_BASE+0x02B2))
  213. #define INT_CON1_SET ((UINT32)(PMIC_REG_BASE+0x02B4))
  214. #define INT_CON1_CLR ((UINT32)(PMIC_REG_BASE+0x02B6))
  215. #define INT_CON2 ((UINT32)(PMIC_REG_BASE+0x02B8))
  216. #define INT_CON2_SET ((UINT32)(PMIC_REG_BASE+0x02BA))
  217. #define INT_CON2_CLR ((UINT32)(PMIC_REG_BASE+0x02BC))
  218. #define INT_MISC_CON ((UINT32)(PMIC_REG_BASE+0x02BE))
  219. #define INT_MISC_CON_SET ((UINT32)(PMIC_REG_BASE+0x02C0))
  220. #define INT_MISC_CON_CLR ((UINT32)(PMIC_REG_BASE+0x02C2))
  221. #define INT_STATUS0 ((UINT32)(PMIC_REG_BASE+0x02C4))
  222. #define INT_STATUS1 ((UINT32)(PMIC_REG_BASE+0x02C6))
  223. #define INT_STATUS2 ((UINT32)(PMIC_REG_BASE+0x02C8))
  224. #define OC_GEAR_0 ((UINT32)(PMIC_REG_BASE+0x02CA))
  225. #define FQMTR_CON0 ((UINT32)(PMIC_REG_BASE+0x02CC))
  226. #define FQMTR_CON1 ((UINT32)(PMIC_REG_BASE+0x02CE))
  227. #define FQMTR_CON2 ((UINT32)(PMIC_REG_BASE+0x02D0))
  228. #define RG_SPI_CON ((UINT32)(PMIC_REG_BASE+0x02D2))
  229. #define DEW_DIO_EN ((UINT32)(PMIC_REG_BASE+0x02D4))
  230. #define DEW_READ_TEST ((UINT32)(PMIC_REG_BASE+0x02D6))
  231. #define DEW_WRITE_TEST ((UINT32)(PMIC_REG_BASE+0x02D8))
  232. #define DEW_CRC_SWRST ((UINT32)(PMIC_REG_BASE+0x02DA))
  233. #define DEW_CRC_EN ((UINT32)(PMIC_REG_BASE+0x02DC))
  234. #define DEW_CRC_VAL ((UINT32)(PMIC_REG_BASE+0x02DE))
  235. #define DEW_DBG_MON_SEL ((UINT32)(PMIC_REG_BASE+0x02E0))
  236. #define DEW_CIPHER_KEY_SEL ((UINT32)(PMIC_REG_BASE+0x02E2))
  237. #define DEW_CIPHER_IV_SEL ((UINT32)(PMIC_REG_BASE+0x02E4))
  238. #define DEW_CIPHER_EN ((UINT32)(PMIC_REG_BASE+0x02E6))
  239. #define DEW_CIPHER_RDY ((UINT32)(PMIC_REG_BASE+0x02E8))
  240. #define DEW_CIPHER_MODE ((UINT32)(PMIC_REG_BASE+0x02EA))
  241. #define DEW_CIPHER_SWRST ((UINT32)(PMIC_REG_BASE+0x02EC))
  242. #define DEW_RDDMY_NO ((UINT32)(PMIC_REG_BASE+0x02EE))
  243. #define INT_TYPE_CON0 ((UINT32)(PMIC_REG_BASE+0x02F0))
  244. #define INT_TYPE_CON0_SET ((UINT32)(PMIC_REG_BASE+0x02F2))
  245. #define INT_TYPE_CON0_CLR ((UINT32)(PMIC_REG_BASE+0x02F4))
  246. #define INT_TYPE_CON1 ((UINT32)(PMIC_REG_BASE+0x02F6))
  247. #define INT_TYPE_CON1_SET ((UINT32)(PMIC_REG_BASE+0x02F8))
  248. #define INT_TYPE_CON1_CLR ((UINT32)(PMIC_REG_BASE+0x02FA))
  249. #define INT_TYPE_CON2 ((UINT32)(PMIC_REG_BASE+0x02FC))
  250. #define INT_TYPE_CON2_SET ((UINT32)(PMIC_REG_BASE+0x02FE))
  251. #define INT_TYPE_CON2_CLR ((UINT32)(PMIC_REG_BASE+0x0300))
  252. #define INT_STA ((UINT32)(PMIC_REG_BASE+0x0302))
  253. #define BUCK_ALL_CON0 ((UINT32)(PMIC_REG_BASE+0x0400))
  254. #define BUCK_ALL_CON1 ((UINT32)(PMIC_REG_BASE+0x0402))
  255. #define BUCK_ALL_CON2 ((UINT32)(PMIC_REG_BASE+0x0404))
  256. #define BUCK_ALL_CON3 ((UINT32)(PMIC_REG_BASE+0x0406))
  257. #define BUCK_ALL_CON4 ((UINT32)(PMIC_REG_BASE+0x0408))
  258. #define BUCK_ALL_CON5 ((UINT32)(PMIC_REG_BASE+0x040A))
  259. #define BUCK_ALL_CON6 ((UINT32)(PMIC_REG_BASE+0x040C))
  260. /* #define BUCK_ALL_CON7 ((UINT32)(PMIC_REG_BASE+0x040E)) */
  261. /* #define BUCK_ALL_CON8 ((UINT32)(PMIC_REG_BASE+0x0410)) */
  262. /* #define BUCK_ALL_CON9 ((UINT32)(PMIC_REG_BASE+0x040E)) */
  263. /* #define BUCK_ALL_CON10 ((UINT32)(PMIC_REG_BASE+0x0414)) */
  264. /* #define BUCK_ALL_CON11 ((UINT32)(PMIC_REG_BASE+0x0416)) */
  265. #define BUCK_ALL_CON12 ((UINT32)(PMIC_REG_BASE+0x0410))
  266. #define BUCK_ALL_CON13 ((UINT32)(PMIC_REG_BASE+0x0412))
  267. #define BUCK_ALL_CON14 ((UINT32)(PMIC_REG_BASE+0x0414))
  268. /* #define BUCK_ALL_CON15 ((UINT32)(PMIC_REG_BASE+0x041E)) */
  269. #define BUCK_ALL_CON16 ((UINT32)(PMIC_REG_BASE+0x0416))
  270. /* #define BUCK_ALL_CON17 ((UINT32)(PMIC_REG_BASE+0x0422)) */
  271. #define BUCK_ALL_CON18 ((UINT32)(PMIC_REG_BASE+0x0418))
  272. #define BUCK_ALL_CON19 ((UINT32)(PMIC_REG_BASE+0x041A))
  273. #define BUCK_ALL_CON20 ((UINT32)(PMIC_REG_BASE+0x041C))
  274. #define BUCK_ALL_CON21 ((UINT32)(PMIC_REG_BASE+0x041E))
  275. #define BUCK_ALL_CON22 ((UINT32)(PMIC_REG_BASE+0x0420))
  276. #define BUCK_ALL_CON23 ((UINT32)(PMIC_REG_BASE+0x0422))
  277. #define BUCK_ALL_CON24 ((UINT32)(PMIC_REG_BASE+0x0424))
  278. #define BUCK_ALL_CON25 ((UINT32)(PMIC_REG_BASE+0x0426))
  279. #define BUCK_ALL_CON26 ((UINT32)(PMIC_REG_BASE+0x0428))
  280. #define BUCK_ALL_CON27 ((UINT32)(PMIC_REG_BASE+0x042A))
  281. #define BUCK_ALL_CON28 ((UINT32)(PMIC_REG_BASE+0x042C))
  282. /* #define VDRAM_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x043A)) */
  283. /* #define VDRAM_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x043C)) */
  284. /* #define VDRAM_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x043E)) */
  285. /* #define VDRAM_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0440)) */
  286. /* #define VDRAM_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x0442)) */
  287. #define VCORE1_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0440))
  288. #define VCORE1_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0442))
  289. #define VCORE1_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0444))
  290. #define VCORE1_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0446))
  291. #define VCORE1_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x0448))
  292. #define SMPS_TOP_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x042E))
  293. #define SMPS_TOP_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0430))
  294. #define SMPS_TOP_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0432))
  295. #define SMPS_TOP_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0434))
  296. #define SMPS_TOP_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x0436))
  297. #define SMPS_TOP_ANA_CON5 ((UINT32)(PMIC_REG_BASE+0x0438))
  298. #define SMPS_TOP_ANA_CON6 ((UINT32)(PMIC_REG_BASE+0x043A))
  299. #define SMPS_TOP_ANA_CON7 ((UINT32)(PMIC_REG_BASE+0x043C))
  300. #define SMPS_TOP_ANA_CON8 ((UINT32)(PMIC_REG_BASE+0x043E))
  301. /* #define SMPS_TOP_ANA_CON9 ((UINT32)(PMIC_REG_BASE+0x0460)) */
  302. /* #define VDVFS1_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0462)) */
  303. /* #define VDVFS1_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0464)) */
  304. /* #define VDVFS1_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0466)) */
  305. /* #define VDVFS1_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0468)) */
  306. /* #define VDVFS1_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x046A)) */
  307. /* #define VDVFS1_ANA_CON5 ((UINT32)(PMIC_REG_BASE+0x046C)) */
  308. /* #define VDVFS1_ANA_CON6 ((UINT32)(PMIC_REG_BASE+0x046E)) */
  309. /* #define VDVFS1_ANA_CON7 ((UINT32)(PMIC_REG_BASE+0x0470)) */
  310. /* #define VGPU_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0472)) */
  311. /* #define VGPU_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0474)) */
  312. /* #define VGPU_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0476)) */
  313. /* #define VGPU_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0478)) */
  314. /* #define VGPU_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x047A)) */
  315. #define VPA_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0462))
  316. #define VPA_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0464))
  317. #define VPA_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0466))
  318. #define VPA_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0468))
  319. #if 0
  320. #define VCORE2_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0484))
  321. #define VCORE2_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0486))
  322. #define VCORE2_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0488))
  323. #define VCORE2_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x048A))
  324. #define VCORE2_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x048C))
  325. #define VIO18_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x048E))
  326. #define VIO18_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0490))
  327. #define VIO18_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0492))
  328. #define VIO18_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0494))
  329. #define VIO18_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x0496))
  330. #define VRF18_0_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0498))
  331. #define VRF18_0_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x049A))
  332. #define VRF18_0_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x049C))
  333. #define VRF18_0_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x049E))
  334. #define VRF18_0_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x04A0))
  335. #define VDVFS11_CON0 ((UINT32)(PMIC_REG_BASE+0x04A2))
  336. #define VDVFS11_CON7 ((UINT32)(PMIC_REG_BASE+0x04B0))
  337. #define VDVFS11_CON8 ((UINT32)(PMIC_REG_BASE+0x04B2))
  338. #define VDVFS11_CON9 ((UINT32)(PMIC_REG_BASE+0x04B4))
  339. #define VDVFS11_CON10 ((UINT32)(PMIC_REG_BASE+0x04B6))
  340. #define VDVFS11_CON11 ((UINT32)(PMIC_REG_BASE+0x04B8))
  341. #define VDVFS11_CON12 ((UINT32)(PMIC_REG_BASE+0x04BA))
  342. #define VDVFS11_CON13 ((UINT32)(PMIC_REG_BASE+0x04BC))
  343. #define VDVFS11_CON14 ((UINT32)(PMIC_REG_BASE+0x04BE))
  344. #define VDVFS11_CON18 ((UINT32)(PMIC_REG_BASE+0x04C6))
  345. #define VDVFS12_CON0 ((UINT32)(PMIC_REG_BASE+0x04C8))
  346. #define VDVFS12_CON7 ((UINT32)(PMIC_REG_BASE+0x04D6))
  347. #define VDVFS12_CON8 ((UINT32)(PMIC_REG_BASE+0x04D8))
  348. #define VDVFS12_CON9 ((UINT32)(PMIC_REG_BASE+0x04DA))
  349. #define VDVFS12_CON10 ((UINT32)(PMIC_REG_BASE+0x04DC))
  350. #define VDVFS12_CON11 ((UINT32)(PMIC_REG_BASE+0x04DE))
  351. #define VDVFS12_CON12 ((UINT32)(PMIC_REG_BASE+0x04E0))
  352. #define VDVFS12_CON13 ((UINT32)(PMIC_REG_BASE+0x04E2))
  353. #define VDVFS12_CON14 ((UINT32)(PMIC_REG_BASE+0x04E4))
  354. #define VDVFS12_CON18 ((UINT32)(PMIC_REG_BASE+0x04EC))
  355. #define VSRAM_DVFS1_CON0 ((UINT32)(PMIC_REG_BASE+0x04EE))
  356. #define VSRAM_DVFS1_CON7 ((UINT32)(PMIC_REG_BASE+0x04FC))
  357. #define VSRAM_DVFS1_CON8 ((UINT32)(PMIC_REG_BASE+0x04FE))
  358. #define VSRAM_DVFS1_CON9 ((UINT32)(PMIC_REG_BASE+0x0500))
  359. #endif
  360. #define ZCD_CON0 ((UINT32)(PMIC_REG_BASE+0x0800))
  361. #define ZCD_CON1 ((UINT32)(PMIC_REG_BASE+0x0802))
  362. #define ZCD_CON2 ((UINT32)(PMIC_REG_BASE+0x0804))
  363. #define ZCD_CON3 ((UINT32)(PMIC_REG_BASE+0x0806))
  364. #define ZCD_CON4 ((UINT32)(PMIC_REG_BASE+0x0808))
  365. #define ZCD_CON5 ((UINT32)(PMIC_REG_BASE+0x080A))
  366. #define LDO_CON1 ((UINT32)(PMIC_REG_BASE + 0x0A02))
  367. #define LDO_CON2 ((UINT32)(PMIC_REG_BASE + 0x0A04))
  368. #define LDO_VCON1 ((UINT32)(PMIC_REG_BASE + 0x0A40))
  369. #define SPK_CON0 ((UINT32)(PMIC_REG_BASE+0x0A90))
  370. #define SPK_CON1 ((UINT32)(PMIC_REG_BASE+0x0A92))
  371. #define SPK_CON2 ((UINT32)(PMIC_REG_BASE+0x0A94))
  372. #define SPK_CON3 ((UINT32)(PMIC_REG_BASE+0x0A96))
  373. #define SPK_CON4 ((UINT32)(PMIC_REG_BASE+0x0A98))
  374. #define SPK_CON5 ((UINT32)(PMIC_REG_BASE+0x0A9A))
  375. #define SPK_CON6 ((UINT32)(PMIC_REG_BASE+0x0A9C))
  376. #define SPK_CON7 ((UINT32)(PMIC_REG_BASE+0x0A9E))
  377. #define SPK_CON8 ((UINT32)(PMIC_REG_BASE+0x0AA0))
  378. #define SPK_CON9 ((UINT32)(PMIC_REG_BASE+0x0AA2))
  379. #define SPK_CON10 ((UINT32)(PMIC_REG_BASE+0x0AA4))
  380. #define SPK_CON11 ((UINT32)(PMIC_REG_BASE+0x0AA6))
  381. #define SPK_CON12 ((UINT32)(PMIC_REG_BASE+0x0AA8))
  382. #define SPK_CON13 ((UINT32)(PMIC_REG_BASE+0x0AAA))
  383. #define SPK_CON14 ((UINT32)(PMIC_REG_BASE+0x0AAC))
  384. #define SPK_CON15 ((UINT32)(PMIC_REG_BASE+0x0AAE))
  385. #define SPK_CON16 ((UINT32)(PMIC_REG_BASE+0x0AB0))
  386. #define SPK_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0AB2))
  387. #define SPK_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0AB4))
  388. #define SPK_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0AB6))
  389. /* #define FGADC_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0CDC)) */
  390. #define AUDDEC_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0CDC))
  391. #define AUDDEC_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0CDE))
  392. #define AUDDEC_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0CE0))
  393. #define AUDDEC_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0CE2))
  394. #define AUDDEC_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x0CE4))
  395. #define AUDDEC_ANA_CON5 ((UINT32)(PMIC_REG_BASE+0x0CE6))
  396. #define AUDDEC_ANA_CON6 ((UINT32)(PMIC_REG_BASE+0x0CE8))
  397. #define AUDDEC_ANA_CON7 ((UINT32)(PMIC_REG_BASE+0x0CEA))
  398. #define AUDDEC_ANA_CON8 ((UINT32)(PMIC_REG_BASE+0x0CEC))
  399. #define AUDENC_ANA_CON0 ((UINT32)(PMIC_REG_BASE+0x0CEE))
  400. #define AUDENC_ANA_CON1 ((UINT32)(PMIC_REG_BASE+0x0CF0))
  401. #define AUDENC_ANA_CON2 ((UINT32)(PMIC_REG_BASE+0x0CF2))
  402. #define AUDENC_ANA_CON3 ((UINT32)(PMIC_REG_BASE+0x0CF4))
  403. #define AUDENC_ANA_CON4 ((UINT32)(PMIC_REG_BASE+0x0CF6))
  404. #define AUDENC_ANA_CON5 ((UINT32)(PMIC_REG_BASE+0x0CF8))
  405. #define AUDENC_ANA_CON6 ((UINT32)(PMIC_REG_BASE+0x0CFA))
  406. #define AUDENC_ANA_CON7 ((UINT32)(PMIC_REG_BASE+0x0CFC))
  407. #define AUDENC_ANA_CON8 ((UINT32)(PMIC_REG_BASE+0x0CFE))
  408. #define AUDENC_ANA_CON9 ((UINT32)(PMIC_REG_BASE+0x0D00))
  409. #define AUDENC_ANA_CON10 ((UINT32)(PMIC_REG_BASE+0x0D02))
  410. /* #define AUDENC_ANA_CON12 ((UINT32)(PMIC_REG_BASE+0x0D06)) */
  411. /* #define AUDENC_ANA_CON13 ((UINT32)(PMIC_REG_BASE+0x0D08)) */
  412. /* #define AUDENC_ANA_CON14 ((UINT32)(PMIC_REG_BASE+0x0D0A)) */
  413. /* #define AUDENC_ANA_CON15 ((UINT32)(PMIC_REG_BASE+0xFFFF)) // George temp checkreg */
  414. #define AUDNCP_CLKDIV_CON0 ((UINT32)(PMIC_REG_BASE+0x0D04))
  415. #define AUDNCP_CLKDIV_CON1 ((UINT32)(PMIC_REG_BASE+0x0D06))
  416. #define AUDNCP_CLKDIV_CON2 ((UINT32)(PMIC_REG_BASE+0x0D08))
  417. #define AUDNCP_CLKDIV_CON3 ((UINT32)(PMIC_REG_BASE+0x0D0A))
  418. #define AUDNCP_CLKDIV_CON4 ((UINT32)(PMIC_REG_BASE+0x0D0C))
  419. #define GPIO_MODE3 ((UINT32)(0x60D0))
  420. void Ana_Set_Reg(uint32 offset, uint32 value, uint32 mask);
  421. uint32 Ana_Get_Reg(uint32 offset);
  422. /* for debug usage */
  423. void Ana_Log_Print(void);
  424. #endif