wcd9335_registers.h 82 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  1. /*
  2. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _WCD9335_REGISTERS_H
  14. #define _WCD9335_REGISTERS_H
  15. #define WCD9335_PAGE_SIZE 256
  16. #define WCD9335_NUM_PAGES 256
  17. extern const u8 *wcd9335_reg[WCD9335_NUM_PAGES];
  18. enum {
  19. PAGE_0 = 0,
  20. PAGE_1,
  21. PAGE_2,
  22. PAGE_6 = 6,
  23. PAGE_10 = 0xA,
  24. PAGE_11,
  25. PAGE_12,
  26. PAGE_13,
  27. PAGE_0X80,
  28. };
  29. /* Page-0 Registers */
  30. #define WCD9335_PAGE0_PAGE_REGISTER 0x0000
  31. #define WCD9335_CODEC_RPM_CLK_BYPASS 0x0001
  32. #define WCD9335_CODEC_RPM_CLK_GATE 0x0002
  33. #define WCD9335_CODEC_RPM_CLK_MCLK_CFG 0x0003
  34. #define WCD9335_CODEC_RPM_RST_CTL 0x0009
  35. #define WCD9335_CODEC_RPM_PWR_CDC_DIG_HM_CTL 0x0011
  36. #define WCD9335_CODEC_RPM_PWR_CPE_DEEPSLP_1 0x0012
  37. #define WCD9335_CODEC_RPM_PWR_CPE_DEEPSLP_2 0x0013
  38. #define WCD9335_CODEC_RPM_PWR_CPE_DEEPSLP_3 0x0014
  39. #define WCD9335_CODEC_RPM_PWR_CPE_IRAM_SHUTDOWN 0x0015
  40. #define WCD9335_CODEC_RPM_PWR_CPE_DRAM1_SHUTDOWN 0x0016
  41. #define WCD9335_CODEC_RPM_PWR_CPE_DRAM0_SHUTDOWN_1 0x0017
  42. #define WCD9335_CODEC_RPM_PWR_CPE_DRAM0_SHUTDOWN_2 0x0018
  43. #define WCD9335_CODEC_RPM_INT_MASK 0x001d
  44. #define WCD9335_CODEC_RPM_INT_STATUS 0x001e
  45. #define WCD9335_CODEC_RPM_INT_CLEAR 0x001f
  46. #define WCD9335_CHIP_TIER_CTRL_CHIP_ID_BYTE0 0x0021
  47. #define WCD9335_CHIP_TIER_CTRL_CHIP_ID_BYTE1 0x0022
  48. #define WCD9335_CHIP_TIER_CTRL_CHIP_ID_BYTE2 0x0023
  49. #define WCD9335_CHIP_TIER_CTRL_CHIP_ID_BYTE3 0x0024
  50. #define WCD9335_CHIP_TIER_CTRL_EFUSE_CTL 0x0025
  51. #define WCD9335_CHIP_TIER_CTRL_EFUSE_TEST0 0x0026
  52. #define WCD9335_CHIP_TIER_CTRL_EFUSE_TEST1 0x0027
  53. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT0 0x0029
  54. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT1 0x002a
  55. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT2 0x002b
  56. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT3 0x002c
  57. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT4 0x002d
  58. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT5 0x002e
  59. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT6 0x002f
  60. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT7 0x0030
  61. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT8 0x0031
  62. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT9 0x0032
  63. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT10 0x0033
  64. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT11 0x0034
  65. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT12 0x0035
  66. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT13 0x0036
  67. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT14 0x0037
  68. #define WCD9335_CHIP_TIER_CTRL_EFUSE_VAL_OUT15 0x0038
  69. #define WCD9335_CHIP_TIER_CTRL_EFUSE_STATUS 0x0039
  70. #define WCD9335_CHIP_TIER_CTRL_I2C_SLAVE_ID_NONNEGO 0x003a
  71. #define WCD9335_CHIP_TIER_CTRL_I2C_SLAVE_ID_1 0x003b
  72. #define WCD9335_CHIP_TIER_CTRL_I2C_SLAVE_ID_2 0x003c
  73. #define WCD9335_CHIP_TIER_CTRL_I2C_SLAVE_ID_3 0x003d
  74. #define WCD9335_CHIP_TIER_CTRL_ANA_WAIT_STATE_CTL 0x003e
  75. #define WCD9335_CHIP_TIER_CTRL_I2C_ACTIVE 0x003f
  76. #define WCD9335_CHIP_TIER_CTRL_PROC1_MON_CTL 0x0041
  77. #define WCD9335_CHIP_TIER_CTRL_PROC1_MON_STATUS 0x0042
  78. #define WCD9335_CHIP_TIER_CTRL_PROC1_MON_CNT_MSB 0x0043
  79. #define WCD9335_CHIP_TIER_CTRL_PROC1_MON_CNT_LSB 0x0044
  80. #define WCD9335_CHIP_TIER_CTRL_PROC2_MON_CTL 0x0045
  81. #define WCD9335_CHIP_TIER_CTRL_PROC2_MON_STATUS 0x0046
  82. #define WCD9335_CHIP_TIER_CTRL_PROC2_MON_CNT_MSB 0x0047
  83. #define WCD9335_CHIP_TIER_CTRL_PROC2_MON_CNT_LSB 0x0048
  84. #define WCD9335_CHIP_TIER_CTRL_PROC3_MON_CTL 0x0049
  85. #define WCD9335_CHIP_TIER_CTRL_PROC3_MON_STATUS 0x004a
  86. #define WCD9335_CHIP_TIER_CTRL_PROC3_MON_CNT_MSB 0x004b
  87. #define WCD9335_CHIP_TIER_CTRL_PROC3_MON_CNT_LSB 0x004c
  88. #define WCD9335_DATA_HUB_DATA_HUB_RX_I2S_CTL 0x0051
  89. #define WCD9335_DATA_HUB_DATA_HUB_TX_I2S_CTL 0x0052
  90. #define WCD9335_DATA_HUB_DATA_HUB_I2S_CLK 0x0053
  91. #define WCD9335_DATA_HUB_DATA_HUB_RX0_INP_CFG 0x0054
  92. #define WCD9335_DATA_HUB_DATA_HUB_RX1_INP_CFG 0x0055
  93. #define WCD9335_DATA_HUB_DATA_HUB_RX2_INP_CFG 0x0056
  94. #define WCD9335_DATA_HUB_DATA_HUB_RX3_INP_CFG 0x0057
  95. #define WCD9335_DATA_HUB_DATA_HUB_RX4_INP_CFG 0x0058
  96. #define WCD9335_DATA_HUB_DATA_HUB_RX5_INP_CFG 0x0059
  97. #define WCD9335_DATA_HUB_DATA_HUB_RX6_INP_CFG 0x005a
  98. #define WCD9335_DATA_HUB_DATA_HUB_RX7_INP_CFG 0x005b
  99. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX0_INP_CFG 0x0061
  100. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX1_INP_CFG 0x0062
  101. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX2_INP_CFG 0x0063
  102. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX3_INP_CFG 0x0064
  103. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX4_INP_CFG 0x0065
  104. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX5_INP_CFG 0x0066
  105. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX6_INP_CFG 0x0067
  106. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX7_INP_CFG 0x0068
  107. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX8_INP_CFG 0x0069
  108. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX9_INP_CFG 0x006a
  109. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX10_INP_CFG 0x006b
  110. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX11_INP_CFG 0x006c
  111. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX13_INP_CFG 0x006e
  112. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX14_INP_CFG 0x006f
  113. #define WCD9335_DATA_HUB_DATA_HUB_SB_TX15_INP_CFG 0x0070
  114. #define WCD9335_DATA_HUB_DATA_HUB_TX_I2S_SD0_L_CFG 0x0071
  115. #define WCD9335_DATA_HUB_DATA_HUB_TX_I2S_SD0_R_CFG 0x0072
  116. #define WCD9335_DATA_HUB_DATA_HUB_TX_I2S_SD1_L_CFG 0x0073
  117. #define WCD9335_DATA_HUB_DATA_HUB_TX_I2S_SD1_R_CFG 0x0074
  118. #define WCD9335_DATA_HUB_NATIVE_FIFO_SYNC 0x0075
  119. #define WCD9335_DATA_HUB_NATIVE_FIFO_STATUS 0x007D
  120. #define WCD9335_INTR_CFG 0x0081
  121. #define WCD9335_INTR_CLR_COMMIT 0x0082
  122. #define WCD9335_INTR_PIN1_MASK0 0x0089
  123. #define WCD9335_INTR_PIN1_MASK1 0x008a
  124. #define WCD9335_INTR_PIN1_MASK2 0x008b
  125. #define WCD9335_INTR_PIN1_MASK3 0x008c
  126. #define WCD9335_INTR_PIN1_STATUS0 0x0091
  127. #define WCD9335_INTR_PIN1_STATUS1 0x0092
  128. #define WCD9335_INTR_PIN1_STATUS2 0x0093
  129. #define WCD9335_INTR_PIN1_STATUS3 0x0094
  130. #define WCD9335_INTR_PIN1_CLEAR0 0x0099
  131. #define WCD9335_INTR_PIN1_CLEAR1 0x009a
  132. #define WCD9335_INTR_PIN1_CLEAR2 0x009b
  133. #define WCD9335_INTR_PIN1_CLEAR3 0x009c
  134. #define WCD9335_INTR_PIN2_MASK0 0x00a1
  135. #define WCD9335_INTR_PIN2_MASK1 0x00a2
  136. #define WCD9335_INTR_PIN2_MASK2 0x00a3
  137. #define WCD9335_INTR_PIN2_MASK3 0x00a4
  138. #define WCD9335_INTR_PIN2_STATUS0 0x00a9
  139. #define WCD9335_INTR_PIN2_STATUS1 0x00aa
  140. #define WCD9335_INTR_PIN2_STATUS2 0x00ab
  141. #define WCD9335_INTR_PIN2_STATUS3 0x00ac
  142. #define WCD9335_INTR_PIN2_CLEAR0 0x00b1
  143. #define WCD9335_INTR_PIN2_CLEAR1 0x00b2
  144. #define WCD9335_INTR_PIN2_CLEAR2 0x00b3
  145. #define WCD9335_INTR_PIN2_CLEAR3 0x00b4
  146. #define WCD9335_INTR_LEVEL0 0x00e1
  147. #define WCD9335_INTR_LEVEL1 0x00e2
  148. #define WCD9335_INTR_LEVEL2 0x00e3
  149. #define WCD9335_INTR_LEVEL3 0x00e4
  150. #define WCD9335_INTR_BYPASS0 0x00e9
  151. #define WCD9335_INTR_BYPASS1 0x00ea
  152. #define WCD9335_INTR_BYPASS2 0x00eb
  153. #define WCD9335_INTR_BYPASS3 0x00ec
  154. #define WCD9335_INTR_SET0 0x00f1
  155. #define WCD9335_INTR_SET1 0x00f2
  156. #define WCD9335_INTR_SET2 0x00f3
  157. #define WCD9335_INTR_SET3 0x00f4
  158. /* Page-1 Registers */
  159. #define WCD9335_PAGE1_PAGE_REGISTER 0x0100
  160. #define WCD9335_CPE_FLL_USER_CTL_0 0x0101
  161. #define WCD9335_CPE_FLL_USER_CTL_1 0x0102
  162. #define WCD9335_CPE_FLL_USER_CTL_2 0x0103
  163. #define WCD9335_CPE_FLL_USER_CTL_3 0x0104
  164. #define WCD9335_CPE_FLL_USER_CTL_4 0x0105
  165. #define WCD9335_CPE_FLL_USER_CTL_5 0x0106
  166. #define WCD9335_CPE_FLL_USER_CTL_6 0x0107
  167. #define WCD9335_CPE_FLL_USER_CTL_7 0x0108
  168. #define WCD9335_CPE_FLL_USER_CTL_8 0x0109
  169. #define WCD9335_CPE_FLL_USER_CTL_9 0x010a
  170. #define WCD9335_CPE_FLL_L_VAL_CTL_0 0x010b
  171. #define WCD9335_CPE_FLL_L_VAL_CTL_1 0x010c
  172. #define WCD9335_CPE_FLL_DSM_FRAC_CTL_0 0x010d
  173. #define WCD9335_CPE_FLL_DSM_FRAC_CTL_1 0x010e
  174. #define WCD9335_CPE_FLL_CONFIG_CTL_0 0x010f
  175. #define WCD9335_CPE_FLL_CONFIG_CTL_1 0x0110
  176. #define WCD9335_CPE_FLL_CONFIG_CTL_2 0x0111
  177. #define WCD9335_CPE_FLL_CONFIG_CTL_3 0x0112
  178. #define WCD9335_CPE_FLL_CONFIG_CTL_4 0x0113
  179. #define WCD9335_CPE_FLL_TEST_CTL_0 0x0114
  180. #define WCD9335_CPE_FLL_TEST_CTL_1 0x0115
  181. #define WCD9335_CPE_FLL_TEST_CTL_2 0x0116
  182. #define WCD9335_CPE_FLL_TEST_CTL_3 0x0117
  183. #define WCD9335_CPE_FLL_TEST_CTL_4 0x0118
  184. #define WCD9335_CPE_FLL_TEST_CTL_5 0x0119
  185. #define WCD9335_CPE_FLL_TEST_CTL_6 0x011a
  186. #define WCD9335_CPE_FLL_TEST_CTL_7 0x011b
  187. #define WCD9335_CPE_FLL_FREQ_CTL_0 0x011c
  188. #define WCD9335_CPE_FLL_FREQ_CTL_1 0x011d
  189. #define WCD9335_CPE_FLL_FREQ_CTL_2 0x011e
  190. #define WCD9335_CPE_FLL_FREQ_CTL_3 0x011f
  191. #define WCD9335_CPE_FLL_SSC_CTL_0 0x0120
  192. #define WCD9335_CPE_FLL_SSC_CTL_1 0x0121
  193. #define WCD9335_CPE_FLL_SSC_CTL_2 0x0122
  194. #define WCD9335_CPE_FLL_SSC_CTL_3 0x0123
  195. #define WCD9335_CPE_FLL_FLL_MODE 0x0124
  196. #define WCD9335_CPE_FLL_STATUS_0 0x0125
  197. #define WCD9335_CPE_FLL_STATUS_1 0x0126
  198. #define WCD9335_CPE_FLL_STATUS_2 0x0127
  199. #define WCD9335_CPE_FLL_STATUS_3 0x0128
  200. #define WCD9335_I2S_FLL_USER_CTL_0 0x0141
  201. #define WCD9335_I2S_FLL_USER_CTL_1 0x0142
  202. #define WCD9335_I2S_FLL_USER_CTL_2 0x0143
  203. #define WCD9335_I2S_FLL_USER_CTL_3 0x0144
  204. #define WCD9335_I2S_FLL_USER_CTL_4 0x0145
  205. #define WCD9335_I2S_FLL_USER_CTL_5 0x0146
  206. #define WCD9335_I2S_FLL_USER_CTL_6 0x0147
  207. #define WCD9335_I2S_FLL_USER_CTL_7 0x0148
  208. #define WCD9335_I2S_FLL_USER_CTL_8 0x0149
  209. #define WCD9335_I2S_FLL_USER_CTL_9 0x014a
  210. #define WCD9335_I2S_FLL_L_VAL_CTL_0 0x014b
  211. #define WCD9335_I2S_FLL_L_VAL_CTL_1 0x014c
  212. #define WCD9335_I2S_FLL_DSM_FRAC_CTL_0 0x014d
  213. #define WCD9335_I2S_FLL_DSM_FRAC_CTL_1 0x014e
  214. #define WCD9335_I2S_FLL_CONFIG_CTL_0 0x014f
  215. #define WCD9335_I2S_FLL_CONFIG_CTL_1 0x0150
  216. #define WCD9335_I2S_FLL_CONFIG_CTL_2 0x0151
  217. #define WCD9335_I2S_FLL_CONFIG_CTL_3 0x0152
  218. #define WCD9335_I2S_FLL_CONFIG_CTL_4 0x0153
  219. #define WCD9335_I2S_FLL_TEST_CTL_0 0x0154
  220. #define WCD9335_I2S_FLL_TEST_CTL_1 0x0155
  221. #define WCD9335_I2S_FLL_TEST_CTL_2 0x0156
  222. #define WCD9335_I2S_FLL_TEST_CTL_3 0x0157
  223. #define WCD9335_I2S_FLL_TEST_CTL_4 0x0158
  224. #define WCD9335_I2S_FLL_TEST_CTL_5 0x0159
  225. #define WCD9335_I2S_FLL_TEST_CTL_6 0x015a
  226. #define WCD9335_I2S_FLL_TEST_CTL_7 0x015b
  227. #define WCD9335_I2S_FLL_FREQ_CTL_0 0x015c
  228. #define WCD9335_I2S_FLL_FREQ_CTL_1 0x015d
  229. #define WCD9335_I2S_FLL_FREQ_CTL_2 0x015e
  230. #define WCD9335_I2S_FLL_FREQ_CTL_3 0x015f
  231. #define WCD9335_I2S_FLL_SSC_CTL_0 0x0160
  232. #define WCD9335_I2S_FLL_SSC_CTL_1 0x0161
  233. #define WCD9335_I2S_FLL_SSC_CTL_2 0x0162
  234. #define WCD9335_I2S_FLL_SSC_CTL_3 0x0163
  235. #define WCD9335_I2S_FLL_FLL_MODE 0x0164
  236. #define WCD9335_I2S_FLL_STATUS_0 0x0165
  237. #define WCD9335_I2S_FLL_STATUS_1 0x0166
  238. #define WCD9335_I2S_FLL_STATUS_2 0x0167
  239. #define WCD9335_I2S_FLL_STATUS_3 0x0168
  240. #define WCD9335_SB_FLL_USER_CTL_0 0x0181
  241. #define WCD9335_SB_FLL_USER_CTL_1 0x0182
  242. #define WCD9335_SB_FLL_USER_CTL_2 0x0183
  243. #define WCD9335_SB_FLL_USER_CTL_3 0x0184
  244. #define WCD9335_SB_FLL_USER_CTL_4 0x0185
  245. #define WCD9335_SB_FLL_USER_CTL_5 0x0186
  246. #define WCD9335_SB_FLL_USER_CTL_6 0x0187
  247. #define WCD9335_SB_FLL_USER_CTL_7 0x0188
  248. #define WCD9335_SB_FLL_USER_CTL_8 0x0189
  249. #define WCD9335_SB_FLL_USER_CTL_9 0x018a
  250. #define WCD9335_SB_FLL_L_VAL_CTL_0 0x018b
  251. #define WCD9335_SB_FLL_L_VAL_CTL_1 0x018c
  252. #define WCD9335_SB_FLL_DSM_FRAC_CTL_0 0x018d
  253. #define WCD9335_SB_FLL_DSM_FRAC_CTL_1 0x018e
  254. #define WCD9335_SB_FLL_CONFIG_CTL_0 0x018f
  255. #define WCD9335_SB_FLL_CONFIG_CTL_1 0x0190
  256. #define WCD9335_SB_FLL_CONFIG_CTL_2 0x0191
  257. #define WCD9335_SB_FLL_CONFIG_CTL_3 0x0192
  258. #define WCD9335_SB_FLL_CONFIG_CTL_4 0x0193
  259. #define WCD9335_SB_FLL_TEST_CTL_0 0x0194
  260. #define WCD9335_SB_FLL_TEST_CTL_1 0x0195
  261. #define WCD9335_SB_FLL_TEST_CTL_2 0x0196
  262. #define WCD9335_SB_FLL_TEST_CTL_3 0x0197
  263. #define WCD9335_SB_FLL_TEST_CTL_4 0x0198
  264. #define WCD9335_SB_FLL_TEST_CTL_5 0x0199
  265. #define WCD9335_SB_FLL_TEST_CTL_6 0x019a
  266. #define WCD9335_SB_FLL_TEST_CTL_7 0x019b
  267. #define WCD9335_SB_FLL_FREQ_CTL_0 0x019c
  268. #define WCD9335_SB_FLL_FREQ_CTL_1 0x019d
  269. #define WCD9335_SB_FLL_FREQ_CTL_2 0x019e
  270. #define WCD9335_SB_FLL_FREQ_CTL_3 0x019f
  271. #define WCD9335_SB_FLL_SSC_CTL_0 0x01a0
  272. #define WCD9335_SB_FLL_SSC_CTL_1 0x01a1
  273. #define WCD9335_SB_FLL_SSC_CTL_2 0x01a2
  274. #define WCD9335_SB_FLL_SSC_CTL_3 0x01a3
  275. #define WCD9335_SB_FLL_FLL_MODE 0x01a4
  276. #define WCD9335_SB_FLL_STATUS_0 0x01a5
  277. #define WCD9335_SB_FLL_STATUS_1 0x01a6
  278. #define WCD9335_SB_FLL_STATUS_2 0x01a7
  279. #define WCD9335_SB_FLL_STATUS_3 0x01a8
  280. /* Page-2 Registers */
  281. #define WCD9335_PAGE2_PAGE_REGISTER 0x0200
  282. #define WCD9335_CPE_SS_MEM_PTR_0 0x0201
  283. #define WCD9335_CPE_SS_MEM_PTR_1 0x0202
  284. #define WCD9335_CPE_SS_MEM_PTR_2 0x0203
  285. #define WCD9335_CPE_SS_MEM_CTRL 0x0205
  286. #define WCD9335_CPE_SS_MEM_BANK_0 0x0206
  287. #define WCD9335_CPE_SS_MEM_BANK_1 0x0207
  288. #define WCD9335_CPE_SS_MEM_BANK_2 0x0208
  289. #define WCD9335_CPE_SS_MEM_BANK_3 0x0209
  290. #define WCD9335_CPE_SS_MEM_BANK_4 0x020a
  291. #define WCD9335_CPE_SS_MEM_BANK_5 0x020b
  292. #define WCD9335_CPE_SS_MEM_BANK_6 0x020c
  293. #define WCD9335_CPE_SS_MEM_BANK_7 0x020d
  294. #define WCD9335_CPE_SS_MEM_BANK_8 0x020e
  295. #define WCD9335_CPE_SS_MEM_BANK_9 0x020f
  296. #define WCD9335_CPE_SS_MEM_BANK_10 0x0210
  297. #define WCD9335_CPE_SS_MEM_BANK_11 0x0211
  298. #define WCD9335_CPE_SS_MEM_BANK_12 0x0212
  299. #define WCD9335_CPE_SS_MEM_BANK_13 0x0213
  300. #define WCD9335_CPE_SS_MEM_BANK_14 0x0214
  301. #define WCD9335_CPE_SS_MEM_BANK_15 0x0215
  302. #define WCD9335_CPE_SS_INBOX1_TRG 0x0216
  303. #define WCD9335_CPE_SS_INBOX2_TRG 0x0217
  304. #define WCD9335_CPE_SS_INBOX1_0 0x0218
  305. #define WCD9335_CPE_SS_INBOX1_1 0x0219
  306. #define WCD9335_CPE_SS_INBOX1_2 0x021a
  307. #define WCD9335_CPE_SS_INBOX1_3 0x021b
  308. #define WCD9335_CPE_SS_INBOX1_4 0x021c
  309. #define WCD9335_CPE_SS_INBOX1_5 0x021d
  310. #define WCD9335_CPE_SS_INBOX1_6 0x021e
  311. #define WCD9335_CPE_SS_INBOX1_7 0x021f
  312. #define WCD9335_CPE_SS_INBOX1_8 0x0220
  313. #define WCD9335_CPE_SS_INBOX1_9 0x0221
  314. #define WCD9335_CPE_SS_INBOX1_10 0x0222
  315. #define WCD9335_CPE_SS_INBOX1_11 0x0223
  316. #define WCD9335_CPE_SS_INBOX1_12 0x0224
  317. #define WCD9335_CPE_SS_INBOX1_13 0x0225
  318. #define WCD9335_CPE_SS_INBOX1_14 0x0226
  319. #define WCD9335_CPE_SS_INBOX1_15 0x0227
  320. #define WCD9335_CPE_SS_OUTBOX1_0 0x0228
  321. #define WCD9335_CPE_SS_OUTBOX1_1 0x0229
  322. #define WCD9335_CPE_SS_OUTBOX1_2 0x022a
  323. #define WCD9335_CPE_SS_OUTBOX1_3 0x022b
  324. #define WCD9335_CPE_SS_OUTBOX1_4 0x022c
  325. #define WCD9335_CPE_SS_OUTBOX1_5 0x022d
  326. #define WCD9335_CPE_SS_OUTBOX1_6 0x022e
  327. #define WCD9335_CPE_SS_OUTBOX1_7 0x022f
  328. #define WCD9335_CPE_SS_OUTBOX1_8 0x0230
  329. #define WCD9335_CPE_SS_OUTBOX1_9 0x0231
  330. #define WCD9335_CPE_SS_OUTBOX1_10 0x0232
  331. #define WCD9335_CPE_SS_OUTBOX1_11 0x0233
  332. #define WCD9335_CPE_SS_OUTBOX1_12 0x0234
  333. #define WCD9335_CPE_SS_OUTBOX1_13 0x0235
  334. #define WCD9335_CPE_SS_OUTBOX1_14 0x0236
  335. #define WCD9335_CPE_SS_OUTBOX1_15 0x0237
  336. #define WCD9335_CPE_SS_INBOX2_0 0x0238
  337. #define WCD9335_CPE_SS_INBOX2_1 0x0239
  338. #define WCD9335_CPE_SS_INBOX2_2 0x023a
  339. #define WCD9335_CPE_SS_INBOX2_3 0x023b
  340. #define WCD9335_CPE_SS_INBOX2_4 0x023c
  341. #define WCD9335_CPE_SS_INBOX2_5 0x023d
  342. #define WCD9335_CPE_SS_INBOX2_6 0x023e
  343. #define WCD9335_CPE_SS_INBOX2_7 0x023f
  344. #define WCD9335_CPE_SS_INBOX2_8 0x0240
  345. #define WCD9335_CPE_SS_INBOX2_9 0x0241
  346. #define WCD9335_CPE_SS_INBOX2_10 0x0242
  347. #define WCD9335_CPE_SS_INBOX2_11 0x0243
  348. #define WCD9335_CPE_SS_INBOX2_12 0x0244
  349. #define WCD9335_CPE_SS_INBOX2_13 0x0245
  350. #define WCD9335_CPE_SS_INBOX2_14 0x0246
  351. #define WCD9335_CPE_SS_INBOX2_15 0x0247
  352. #define WCD9335_CPE_SS_OUTBOX2_0 0x0248
  353. #define WCD9335_CPE_SS_OUTBOX2_1 0x0249
  354. #define WCD9335_CPE_SS_OUTBOX2_2 0x024a
  355. #define WCD9335_CPE_SS_OUTBOX2_3 0x024b
  356. #define WCD9335_CPE_SS_OUTBOX2_4 0x024c
  357. #define WCD9335_CPE_SS_OUTBOX2_5 0x024d
  358. #define WCD9335_CPE_SS_OUTBOX2_6 0x024e
  359. #define WCD9335_CPE_SS_OUTBOX2_7 0x024f
  360. #define WCD9335_CPE_SS_OUTBOX2_8 0x0250
  361. #define WCD9335_CPE_SS_OUTBOX2_9 0x0251
  362. #define WCD9335_CPE_SS_OUTBOX2_10 0x0252
  363. #define WCD9335_CPE_SS_OUTBOX2_11 0x0253
  364. #define WCD9335_CPE_SS_OUTBOX2_12 0x0254
  365. #define WCD9335_CPE_SS_OUTBOX2_13 0x0255
  366. #define WCD9335_CPE_SS_OUTBOX2_14 0x0256
  367. #define WCD9335_CPE_SS_OUTBOX2_15 0x0257
  368. #define WCD9335_CPE_SS_OUTBOX1_ACK 0x0258
  369. #define WCD9335_CPE_SS_OUTBOX2_ACK 0x0259
  370. #define WCD9335_CPE_SS_EC_BUF_INT_PERIOD 0x025a
  371. #define WCD9335_CPE_SS_US_BUF_INT_PERIOD 0x025b
  372. #define WCD9335_CPE_SS_CPARMAD_BUFRDY_INT_PERIOD 0x025c
  373. #define WCD9335_CPE_SS_CFG 0x025d
  374. #define WCD9335_CPE_SS_US_EC_MUX_CFG 0x025e
  375. #define WCD9335_CPE_SS_MAD_CTL 0x025f
  376. #define WCD9335_CPE_SS_CPAR_CTL 0x0260
  377. #define WCD9335_CPE_SS_TX_PP_BUF_INT_PERIOD 0x0261
  378. #define WCD9335_CPE_SS_TX_PP_CFG 0x0262
  379. #define WCD9335_CPE_SS_DMIC0_CTL 0x0263
  380. #define WCD9335_CPE_SS_DMIC1_CTL 0x0264
  381. #define WCD9335_CPE_SS_DMIC2_CTL 0x0265
  382. #define WCD9335_CPE_SS_DMIC_CFG 0x0266
  383. #define WCD9335_CPE_SS_SVA_CFG 0x0267
  384. #define WCD9335_CPE_SS_CPAR_CFG 0x0271
  385. #define WCD9335_CPE_SS_WDOG_CFG 0x0272
  386. #define WCD9335_CPE_SS_BACKUP_INT 0x0273
  387. #define WCD9335_CPE_SS_STATUS 0x0274
  388. #define WCD9335_CPE_SS_CPE_OCD_CFG 0x0275
  389. #define WCD9335_CPE_SS_SS_ERROR_INT_MASK 0x0276
  390. #define WCD9335_CPE_SS_SS_ERROR_INT_STATUS 0x0277
  391. #define WCD9335_CPE_SS_SS_ERROR_INT_CLEAR 0x0278
  392. #define WCD9335_SOC_MAD_MAIN_CTL_1 0x0281
  393. #define WCD9335_SOC_MAD_MAIN_CTL_2 0x0282
  394. #define WCD9335_SOC_MAD_AUDIO_CTL_1 0x0283
  395. #define WCD9335_SOC_MAD_AUDIO_CTL_2 0x0284
  396. #define WCD9335_SOC_MAD_AUDIO_CTL_3 0x0285
  397. #define WCD9335_SOC_MAD_AUDIO_CTL_4 0x0286
  398. #define WCD9335_SOC_MAD_AUDIO_CTL_5 0x0287
  399. #define WCD9335_SOC_MAD_AUDIO_CTL_6 0x0288
  400. #define WCD9335_SOC_MAD_AUDIO_CTL_7 0x0289
  401. #define WCD9335_SOC_MAD_AUDIO_CTL_8 0x028a
  402. #define WCD9335_SOC_MAD_AUDIO_IIR_CTL_PTR 0x028b
  403. #define WCD9335_SOC_MAD_AUDIO_IIR_CTL_VAL 0x028c
  404. #define WCD9335_SOC_MAD_ULTR_CTL_1 0x028d
  405. #define WCD9335_SOC_MAD_ULTR_CTL_2 0x028e
  406. #define WCD9335_SOC_MAD_ULTR_CTL_3 0x028f
  407. #define WCD9335_SOC_MAD_ULTR_CTL_4 0x0290
  408. #define WCD9335_SOC_MAD_ULTR_CTL_5 0x0291
  409. #define WCD9335_SOC_MAD_ULTR_CTL_6 0x0292
  410. #define WCD9335_SOC_MAD_ULTR_CTL_7 0x0293
  411. #define WCD9335_SOC_MAD_BEACON_CTL_1 0x0294
  412. #define WCD9335_SOC_MAD_BEACON_CTL_2 0x0295
  413. #define WCD9335_SOC_MAD_BEACON_CTL_3 0x0296
  414. #define WCD9335_SOC_MAD_BEACON_CTL_4 0x0297
  415. #define WCD9335_SOC_MAD_BEACON_CTL_5 0x0298
  416. #define WCD9335_SOC_MAD_BEACON_CTL_6 0x0299
  417. #define WCD9335_SOC_MAD_BEACON_CTL_7 0x029a
  418. #define WCD9335_SOC_MAD_BEACON_CTL_8 0x029b
  419. #define WCD9335_SOC_MAD_BEACON_IIR_CTL_PTR 0x029c
  420. #define WCD9335_SOC_MAD_BEACON_IIR_CTL_VAL 0x029d
  421. #define WCD9335_SOC_MAD_INP_SEL 0x029e
  422. /* Page-6 Registers */
  423. #define WCD9335_PAGE6_PAGE_REGISTER 0x0600
  424. #define WCD9335_ANA_BIAS 0x0601
  425. #define WCD9335_ANA_CLK_TOP 0x0602
  426. #define WCD9335_ANA_RCO 0x0603
  427. #define WCD9335_ANA_BUCK_VOUT_A 0x0604
  428. #define WCD9335_ANA_BUCK_VOUT_D 0x0605
  429. #define WCD9335_ANA_BUCK_CTL 0x0606
  430. #define WCD9335_ANA_BUCK_STATUS 0x0607
  431. #define WCD9335_ANA_RX_SUPPLIES 0x0608
  432. #define WCD9335_ANA_HPH 0x0609
  433. #define WCD9335_ANA_EAR 0x060a
  434. #define WCD9335_ANA_LO_1_2 0x060b
  435. #define WCD9335_ANA_LO_3_4 0x060c
  436. #define WCD9335_ANA_MAD_SETUP 0x060d
  437. #define WCD9335_ANA_AMIC1 0x060e
  438. #define WCD9335_ANA_AMIC2 0x060f
  439. #define WCD9335_ANA_AMIC3 0x0610
  440. #define WCD9335_ANA_AMIC4 0x0611
  441. #define WCD9335_ANA_AMIC5 0x0612
  442. #define WCD9335_ANA_AMIC6 0x0613
  443. #define WCD9335_ANA_MBHC_MECH 0x0614
  444. #define WCD9335_ANA_MBHC_ELECT 0x0615
  445. #define WCD9335_ANA_MBHC_ZDET 0x0616
  446. #define WCD9335_ANA_MBHC_RESULT_1 0x0617
  447. #define WCD9335_ANA_MBHC_RESULT_2 0x0618
  448. #define WCD9335_ANA_MBHC_RESULT_3 0x0619
  449. #define WCD9335_ANA_MBHC_BTN0 0x061a
  450. #define WCD9335_ANA_MBHC_BTN1 0x061b
  451. #define WCD9335_ANA_MBHC_BTN2 0x061c
  452. #define WCD9335_ANA_MBHC_BTN3 0x061d
  453. #define WCD9335_ANA_MBHC_BTN4 0x061e
  454. #define WCD9335_ANA_MBHC_BTN5 0x061f
  455. #define WCD9335_ANA_MBHC_BTN6 0x0620
  456. #define WCD9335_ANA_MBHC_BTN7 0x0621
  457. #define WCD9335_ANA_MICB1 0x0622
  458. #define WCD9335_ANA_MICB2 0x0623
  459. #define WCD9335_ANA_MICB2_RAMP 0x0624
  460. #define WCD9335_ANA_MICB3 0x0625
  461. #define WCD9335_ANA_MICB4 0x0626
  462. #define WCD9335_ANA_VBADC 0x0627
  463. #define WCD9335_BIAS_CTL 0x0628
  464. #define WCD9335_BIAS_VBG_FINE_ADJ 0x0629
  465. #define WCD9335_CLOCK_TEST_CTL 0x062d
  466. #define WCD9335_RCO_CTRL_1 0x062e
  467. #define WCD9335_RCO_CTRL_2 0x062f
  468. #define WCD9335_RCO_CAL 0x0630
  469. #define WCD9335_RCO_CAL_1 0x0631
  470. #define WCD9335_RCO_CAL_2 0x0632
  471. #define WCD9335_RCO_TEST_CTRL 0x0633
  472. #define WCD9335_RCO_CAL_OUT_1 0x0634
  473. #define WCD9335_RCO_CAL_OUT_2 0x0635
  474. #define WCD9335_RCO_CAL_OUT_3 0x0636
  475. #define WCD9335_RCO_CAL_OUT_4 0x0637
  476. #define WCD9335_RCO_CAL_OUT_5 0x0638
  477. #define WCD9335_SIDO_SIDO_MODE_1 0x063a
  478. #define WCD9335_SIDO_SIDO_MODE_2 0x063b
  479. #define WCD9335_SIDO_SIDO_MODE_3 0x063c
  480. #define WCD9335_SIDO_SIDO_MODE_4 0x063d
  481. #define WCD9335_SIDO_SIDO_VCL_1 0x063e
  482. #define WCD9335_SIDO_SIDO_VCL_2 0x063f
  483. #define WCD9335_SIDO_SIDO_VCL_3 0x0640
  484. #define WCD9335_SIDO_SIDO_CCL_1 0x0641
  485. #define WCD9335_SIDO_SIDO_CCL_2 0x0642
  486. #define WCD9335_SIDO_SIDO_CCL_3 0x0643
  487. #define WCD9335_SIDO_SIDO_CCL_4 0x0644
  488. #define WCD9335_SIDO_SIDO_CCL_5 0x0645
  489. #define WCD9335_SIDO_SIDO_CCL_6 0x0646
  490. #define WCD9335_SIDO_SIDO_CCL_7 0x0647
  491. #define WCD9335_SIDO_SIDO_CCL_8 0x0648
  492. #define WCD9335_SIDO_SIDO_CCL_9 0x0649
  493. #define WCD9335_SIDO_SIDO_CCL_10 0x064a
  494. #define WCD9335_SIDO_SIDO_FILTER_1 0x064b
  495. #define WCD9335_SIDO_SIDO_FILTER_2 0x064c
  496. #define WCD9335_SIDO_SIDO_DRIVER_1 0x064d
  497. #define WCD9335_SIDO_SIDO_DRIVER_2 0x064e
  498. #define WCD9335_SIDO_SIDO_DRIVER_3 0x064f
  499. #define WCD9335_SIDO_SIDO_CAL_CODE_EXT_1 0x0650
  500. #define WCD9335_SIDO_SIDO_CAL_CODE_EXT_2 0x0651
  501. #define WCD9335_SIDO_SIDO_CAL_CODE_OUT_1 0x0652
  502. #define WCD9335_SIDO_SIDO_CAL_CODE_OUT_2 0x0653
  503. #define WCD9335_SIDO_SIDO_TEST_1 0x0654
  504. #define WCD9335_SIDO_SIDO_TEST_2 0x0655
  505. #define WCD9335_MBHC_CTL_1 0x0656
  506. #define WCD9335_MBHC_CTL_2 0x0657
  507. #define WCD9335_MBHC_PLUG_DETECT_CTL 0x0658
  508. #define WCD9335_MBHC_ZDET_ANA_CTL 0x0659
  509. #define WCD9335_MBHC_ZDET_RAMP_CTL 0x065a
  510. #define WCD9335_MBHC_FSM_DEBUG 0x065b /* v1.x */
  511. #define WCD9335_MBHC_FSM_STATUS 0x065b /* v2.0 */
  512. #define WCD9335_MBHC_TEST_CTL 0x065c
  513. #define WCD9335_VBADC_SUBBLOCK_EN 0x065d
  514. #define WCD9335_VBADC_IBIAS_FE 0x065e
  515. #define WCD9335_VBADC_BIAS_ADC 0x065f
  516. #define WCD9335_VBADC_FE_CTRL 0x0660
  517. #define WCD9335_VBADC_ADC_REF 0x0661
  518. #define WCD9335_VBADC_ADC_IO 0x0662
  519. #define WCD9335_VBADC_ADC_SAR 0x0663
  520. #define WCD9335_VBADC_DEBUG 0x0664
  521. #define WCD9335_VBADC_ADC_DOUTMSB 0x0665
  522. #define WCD9335_VBADC_ADC_DOUTLSB 0x0666
  523. #define WCD9335_LDOH_MODE 0x0667
  524. #define WCD9335_LDOH_BIAS 0x0668
  525. #define WCD9335_LDOH_STB_LOADS 0x0669
  526. #define WCD9335_LDOH_SLOWRAMP 0x066a
  527. #define WCD9335_MICB1_TEST_CTL_1 0x066b
  528. #define WCD9335_MICB1_TEST_CTL_2 0x066c
  529. #define WCD9335_MICB1_TEST_CTL_3 0x066d
  530. #define WCD9335_MICB2_TEST_CTL_1 0x066e
  531. #define WCD9335_MICB2_TEST_CTL_2 0x066f
  532. #define WCD9335_MICB2_TEST_CTL_3 0x0670
  533. #define WCD9335_MICB3_TEST_CTL_1 0x0671
  534. #define WCD9335_MICB3_TEST_CTL_2 0x0672
  535. #define WCD9335_MICB3_TEST_CTL_3 0x0673
  536. #define WCD9335_MICB4_TEST_CTL_1 0x0674
  537. #define WCD9335_MICB4_TEST_CTL_2 0x0675
  538. #define WCD9335_MICB4_TEST_CTL_3 0x0676
  539. #define WCD9335_TX_COM_ADC_VCM 0x0677
  540. #define WCD9335_TX_COM_BIAS_ATEST 0x0678
  541. #define WCD9335_TX_COM_ADC_INT1_IB 0x0679
  542. #define WCD9335_TX_COM_ADC_INT2_IB 0x067a
  543. #define WCD9335_TX_COM_TXFE_DIV_CTL 0x067b
  544. #define WCD9335_TX_COM_TXFE_DIV_START 0x067c
  545. #define WCD9335_TX_COM_TXFE_DIV_STOP_9P6M 0x067d
  546. #define WCD9335_TX_COM_TXFE_DIV_STOP_12P288M 0x067e
  547. #define WCD9335_TX_1_2_TEST_EN 0x067f
  548. #define WCD9335_TX_1_2_ADC_IB 0x0680
  549. #define WCD9335_TX_1_2_ATEST_REFCTL 0x0681
  550. #define WCD9335_TX_1_2_TEST_CTL 0x0682
  551. #define WCD9335_TX_1_2_TEST_BLK_EN 0x0683
  552. #define WCD9335_TX_1_2_TXFE_CLKDIV 0x0684
  553. #define WCD9335_TX_1_2_SAR1_ERR 0x0685
  554. #define WCD9335_TX_1_2_SAR2_ERR 0x0686
  555. #define WCD9335_TX_3_4_TEST_EN 0x0687
  556. #define WCD9335_TX_3_4_ADC_IB 0x0688
  557. #define WCD9335_TX_3_4_ATEST_REFCTL 0x0689
  558. #define WCD9335_TX_3_4_TEST_CTL 0x068a
  559. #define WCD9335_TX_3_4_TEST_BLK_EN 0x068b
  560. #define WCD9335_TX_3_4_TXFE_CLKDIV 0x068c
  561. #define WCD9335_TX_3_4_SAR1_ERR 0x068d
  562. #define WCD9335_TX_3_4_SAR2_ERR 0x068e
  563. #define WCD9335_TX_5_6_TEST_EN 0x068f
  564. #define WCD9335_TX_5_6_ADC_IB 0x0690
  565. #define WCD9335_TX_5_6_ATEST_REFCTL 0x0691
  566. #define WCD9335_TX_5_6_TEST_CTL 0x0692
  567. #define WCD9335_TX_5_6_TEST_BLK_EN 0x0693
  568. #define WCD9335_TX_5_6_TXFE_CLKDIV 0x0694
  569. #define WCD9335_TX_5_6_SAR1_ERR 0x0695
  570. #define WCD9335_TX_5_6_SAR2_ERR 0x0696
  571. #define WCD9335_CLASSH_MODE_1 0x0697
  572. #define WCD9335_CLASSH_MODE_2 0x0698
  573. #define WCD9335_CLASSH_MODE_3 0x0699
  574. #define WCD9335_CLASSH_CTRL_VCL_1 0x069a
  575. #define WCD9335_CLASSH_CTRL_VCL_2 0x069b
  576. #define WCD9335_CLASSH_CTRL_CCL_1 0x069c
  577. #define WCD9335_CLASSH_CTRL_CCL_2 0x069d
  578. #define WCD9335_CLASSH_CTRL_CCL_3 0x069e
  579. #define WCD9335_CLASSH_CTRL_CCL_4 0x069f
  580. #define WCD9335_CLASSH_CTRL_CCL_5 0x06a0
  581. #define WCD9335_CLASSH_BUCK_TMUX_A_D 0x06a1
  582. #define WCD9335_CLASSH_BUCK_SW_DRV_CNTL 0x06a2
  583. #define WCD9335_CLASSH_SPARE 0x06a3
  584. #define WCD9335_FLYBACK_EN 0x06a4
  585. #define WCD9335_FLYBACK_VNEG_CTRL_1 0x06a5
  586. #define WCD9335_FLYBACK_VNEG_CTRL_2 0x06a6
  587. #define WCD9335_FLYBACK_VNEG_CTRL_3 0x06a7
  588. #define WCD9335_FLYBACK_VNEG_CTRL_4 0x06a8
  589. #define WCD9335_FLYBACK_VNEG_CTRL_5 0x06a9
  590. #define WCD9335_FLYBACK_VNEG_CTRL_6 0x06aa
  591. #define WCD9335_FLYBACK_VNEG_CTRL_7 0x06ab
  592. #define WCD9335_FLYBACK_VNEG_CTRL_8 0x06ac
  593. #define WCD9335_FLYBACK_VNEG_CTRL_9 0x06ad
  594. #define WCD9335_FLYBACK_VNEG_DAC_CTRL_1 0x06ae
  595. #define WCD9335_FLYBACK_VNEG_DAC_CTRL_2 0x06af
  596. #define WCD9335_FLYBACK_VNEG_DAC_CTRL_3 0x06b0
  597. #define WCD9335_FLYBACK_VNEG_DAC_CTRL_4 0x06b1 /* v1.x */
  598. #define WCD9335_FLYBACK_CTRL_1 0x06b1 /* v2.0 */
  599. #define WCD9335_FLYBACK_TEST_CTL 0x06b2
  600. #define WCD9335_RX_AUX_SW_CTL 0x06b3
  601. #define WCD9335_RX_PA_AUX_IN_CONN 0x06b4
  602. #define WCD9335_RX_TIMER_DIV 0x06b5
  603. #define WCD9335_RX_OCP_CTL 0x06b6
  604. #define WCD9335_RX_OCP_COUNT 0x06b7
  605. #define WCD9335_RX_BIAS_EAR_DAC 0x06b8
  606. #define WCD9335_RX_BIAS_EAR_AMP 0x06b9
  607. #define WCD9335_RX_BIAS_HPH_LDO 0x06ba
  608. #define WCD9335_RX_BIAS_HPH_PA 0x06bb
  609. #define WCD9335_RX_BIAS_HPH_RDACBUFF_CNP2 0x06bc
  610. #define WCD9335_RX_BIAS_HPH_RDAC_LDO 0x06bd
  611. #define WCD9335_RX_BIAS_HPH_CNP1 0x06be
  612. #define WCD9335_RX_BIAS_HPH_LOWPOWER 0x06bf
  613. #define WCD9335_RX_BIAS_DIFFLO_PA 0x06c0
  614. #define WCD9335_RX_BIAS_DIFFLO_REF 0x06c1
  615. #define WCD9335_RX_BIAS_DIFFLO_LDO 0x06c2
  616. #define WCD9335_RX_BIAS_SELO_DAC_PA 0x06c3
  617. #define WCD9335_RX_BIAS_BUCK_RST 0x06c4
  618. #define WCD9335_RX_BIAS_BUCK_VREF_ERRAMP 0x06c5
  619. #define WCD9335_RX_BIAS_FLYB_ERRAMP 0x06c6
  620. #define WCD9335_RX_BIAS_FLYB_BUFF 0x06c7
  621. #define WCD9335_RX_BIAS_FLYB_MID_RST 0x06c8
  622. #define WCD9335_HPH_L_STATUS 0x06c9
  623. #define WCD9335_HPH_R_STATUS 0x06ca
  624. #define WCD9335_HPH_CNP_EN 0x06cb
  625. #define WCD9335_HPH_CNP_WG_CTL 0x06cc
  626. #define WCD9335_HPH_CNP_WG_TIME 0x06cd
  627. #define WCD9335_HPH_OCP_CTL 0x06ce
  628. #define WCD9335_HPH_AUTO_CHOP 0x06cf
  629. #define WCD9335_HPH_CHOP_CTL 0x06d0
  630. #define WCD9335_HPH_PA_CTL1 0x06d1
  631. #define WCD9335_HPH_PA_CTL2 0x06d2
  632. #define WCD9335_HPH_L_EN 0x06d3
  633. #define WCD9335_HPH_L_TEST 0x06d4
  634. #define WCD9335_HPH_L_ATEST 0x06d5
  635. #define WCD9335_HPH_R_EN 0x06d6
  636. #define WCD9335_HPH_R_TEST 0x06d7
  637. #define WCD9335_HPH_R_ATEST 0x06d8
  638. #define WCD9335_HPH_RDAC_CLK_CTL1 0x06d9
  639. #define WCD9335_HPH_RDAC_CLK_CTL2 0x06da
  640. #define WCD9335_HPH_RDAC_LDO_CTL 0x06db
  641. #define WCD9335_HPH_RDAC_CHOP_CLK_LP_CTL 0x06dc
  642. #define WCD9335_HPH_REFBUFF_UHQA_CTL 0x06dd
  643. #define WCD9335_HPH_REFBUFF_LP_CTL 0x06de
  644. #define WCD9335_HPH_L_DAC_CTL 0x06df
  645. #define WCD9335_HPH_R_DAC_CTL 0x06e0
  646. #define WCD9335_EAR_EN_REG 0x06e1
  647. #define WCD9335_EAR_CMBUFF 0x06e2
  648. #define WCD9335_EAR_ICTL 0x06e3
  649. #define WCD9335_EAR_EN_DBG_CTL 0x06e4
  650. #define WCD9335_EAR_CNP 0x06e5
  651. #define WCD9335_EAR_DAC_CTL_ATEST 0x06e6
  652. #define WCD9335_EAR_STATUS_REG 0x06e7
  653. #define WCD9335_EAR_OUT_SHORT 0x06e8
  654. #define WCD9335_DIFF_LO_MISC 0x06e9
  655. #define WCD9335_DIFF_LO_LO2_COMPANDER 0x06ea
  656. #define WCD9335_DIFF_LO_LO1_COMPANDER 0x06eb
  657. #define WCD9335_DIFF_LO_COMMON 0x06ec
  658. #define WCD9335_DIFF_LO_BYPASS_EN 0x06ed
  659. #define WCD9335_DIFF_LO_CNP 0x06ee
  660. #define WCD9335_DIFF_LO_CORE_OUT_PROG 0x06ef
  661. #define WCD9335_DIFF_LO_LDO_OUT_PROG 0x06f0
  662. #define WCD9335_DIFF_LO_COM_SWCAP_REFBUF_FREQ 0x06f1
  663. #define WCD9335_DIFF_LO_COM_PA_FREQ 0x06f2
  664. #define WCD9335_DIFF_LO_RESERVED_REG 0x06f3
  665. #define WCD9335_DIFF_LO_LO1_STATUS_1 0x06f4
  666. #define WCD9335_DIFF_LO_LO1_STATUS_2 0x06f5
  667. #define WCD9335_SE_LO_COM1 0x06f6
  668. #define WCD9335_SE_LO_COM2 0x06f7
  669. #define WCD9335_SE_LO_LO3_GAIN 0x06f8
  670. #define WCD9335_SE_LO_LO3_CTRL 0x06f9
  671. #define WCD9335_SE_LO_LO4_GAIN 0x06fa
  672. #define WCD9335_SE_LO_LO4_CTRL 0x06fb
  673. #define WCD9335_SE_LO_LO3_STATUS 0x06fe
  674. #define WCD9335_SE_LO_LO4_STATUS 0x06ff
  675. /* Page-10 Registers */
  676. #define WCD9335_PAGE10_PAGE_REGISTER 0x0a00
  677. #define WCD9335_CDC_ANC0_CLK_RESET_CTL 0x0a01
  678. #define WCD9335_CDC_ANC0_MODE_1_CTL 0x0a02
  679. #define WCD9335_CDC_ANC0_MODE_2_CTL 0x0a03
  680. #define WCD9335_CDC_ANC0_FF_SHIFT 0x0a04
  681. #define WCD9335_CDC_ANC0_FB_SHIFT 0x0a05
  682. #define WCD9335_CDC_ANC0_LPF_FF_A_CTL 0x0a06
  683. #define WCD9335_CDC_ANC0_LPF_FF_B_CTL 0x0a07
  684. #define WCD9335_CDC_ANC0_LPF_FB_CTL 0x0a08
  685. #define WCD9335_CDC_ANC0_SMLPF_CTL 0x0a09
  686. #define WCD9335_CDC_ANC0_DCFLT_SHIFT_CTL 0x0a0a
  687. #define WCD9335_CDC_ANC0_IIR_ADAPT_CTL 0x0a0b
  688. #define WCD9335_CDC_ANC0_IIR_COEFF_1_CTL 0x0a0c
  689. #define WCD9335_CDC_ANC0_IIR_COEFF_2_CTL 0x0a0d
  690. #define WCD9335_CDC_ANC0_FF_A_GAIN_CTL 0x0a0e
  691. #define WCD9335_CDC_ANC0_FF_B_GAIN_CTL 0x0a0f
  692. #define WCD9335_CDC_ANC0_FB_GAIN_CTL 0x0a10
  693. #define WCD9335_CDC_ANC1_CLK_RESET_CTL 0x0a19
  694. #define WCD9335_CDC_ANC1_MODE_1_CTL 0x0a1a
  695. #define WCD9335_CDC_ANC1_MODE_2_CTL 0x0a1b
  696. #define WCD9335_CDC_ANC1_FF_SHIFT 0x0a1c
  697. #define WCD9335_CDC_ANC1_FB_SHIFT 0x0a1d
  698. #define WCD9335_CDC_ANC1_LPF_FF_A_CTL 0x0a1e
  699. #define WCD9335_CDC_ANC1_LPF_FF_B_CTL 0x0a1f
  700. #define WCD9335_CDC_ANC1_LPF_FB_CTL 0x0a20
  701. #define WCD9335_CDC_ANC1_SMLPF_CTL 0x0a21
  702. #define WCD9335_CDC_ANC1_DCFLT_SHIFT_CTL 0x0a22
  703. #define WCD9335_CDC_ANC1_IIR_ADAPT_CTL 0x0a23
  704. #define WCD9335_CDC_ANC1_IIR_COEFF_1_CTL 0x0a24
  705. #define WCD9335_CDC_ANC1_IIR_COEFF_2_CTL 0x0a25
  706. #define WCD9335_CDC_ANC1_FF_A_GAIN_CTL 0x0a26
  707. #define WCD9335_CDC_ANC1_FF_B_GAIN_CTL 0x0a27
  708. #define WCD9335_CDC_ANC1_FB_GAIN_CTL 0x0a28
  709. #define WCD9335_CDC_TX0_TX_PATH_CTL 0x0a31
  710. #define WCD9335_CDC_TX0_TX_PATH_CFG0 0x0a32
  711. #define WCD9335_CDC_TX0_TX_PATH_CFG1 0x0a33
  712. #define WCD9335_CDC_TX0_TX_VOL_CTL 0x0a34
  713. #define WCD9335_CDC_TX0_TX_PATH_192_CTL 0x0a35
  714. #define WCD9335_CDC_TX0_TX_PATH_192_CFG 0x0a36
  715. #define WCD9335_CDC_TX0_TX_PATH_SEC0 0x0a37
  716. #define WCD9335_CDC_TX0_TX_PATH_SEC1 0x0a38
  717. #define WCD9335_CDC_TX0_TX_PATH_SEC2 0x0a39
  718. #define WCD9335_CDC_TX0_TX_PATH_SEC3 0x0a3a
  719. #define WCD9335_CDC_TX0_TX_PATH_SEC4 0x0a3b
  720. #define WCD9335_CDC_TX0_TX_PATH_SEC5 0x0a3c
  721. #define WCD9335_CDC_TX0_TX_PATH_SEC6 0x0a3d
  722. #define WCD9335_CDC_TX0_TX_PATH_SEC7 0x0a3e
  723. #define WCD9335_CDC_TX1_TX_PATH_CTL 0x0a41
  724. #define WCD9335_CDC_TX1_TX_PATH_CFG0 0x0a42
  725. #define WCD9335_CDC_TX1_TX_PATH_CFG1 0x0a43
  726. #define WCD9335_CDC_TX1_TX_VOL_CTL 0x0a44
  727. #define WCD9335_CDC_TX1_TX_PATH_192_CTL 0x0a45
  728. #define WCD9335_CDC_TX1_TX_PATH_192_CFG 0x0a46
  729. #define WCD9335_CDC_TX1_TX_PATH_SEC0 0x0a47
  730. #define WCD9335_CDC_TX1_TX_PATH_SEC1 0x0a48
  731. #define WCD9335_CDC_TX1_TX_PATH_SEC2 0x0a49
  732. #define WCD9335_CDC_TX1_TX_PATH_SEC3 0x0a4a
  733. #define WCD9335_CDC_TX1_TX_PATH_SEC4 0x0a4b
  734. #define WCD9335_CDC_TX1_TX_PATH_SEC5 0x0a4c
  735. #define WCD9335_CDC_TX1_TX_PATH_SEC6 0x0a4d
  736. #define WCD9335_CDC_TX2_TX_PATH_CTL 0x0a51
  737. #define WCD9335_CDC_TX2_TX_PATH_CFG0 0x0a52
  738. #define WCD9335_CDC_TX2_TX_PATH_CFG1 0x0a53
  739. #define WCD9335_CDC_TX2_TX_VOL_CTL 0x0a54
  740. #define WCD9335_CDC_TX2_TX_PATH_192_CTL 0x0a55
  741. #define WCD9335_CDC_TX2_TX_PATH_192_CFG 0x0a56
  742. #define WCD9335_CDC_TX2_TX_PATH_SEC0 0x0a57
  743. #define WCD9335_CDC_TX2_TX_PATH_SEC1 0x0a58
  744. #define WCD9335_CDC_TX2_TX_PATH_SEC2 0x0a59
  745. #define WCD9335_CDC_TX2_TX_PATH_SEC3 0x0a5a
  746. #define WCD9335_CDC_TX2_TX_PATH_SEC4 0x0a5b
  747. #define WCD9335_CDC_TX2_TX_PATH_SEC5 0x0a5c
  748. #define WCD9335_CDC_TX2_TX_PATH_SEC6 0x0a5d
  749. #define WCD9335_CDC_TX3_TX_PATH_CTL 0x0a61
  750. #define WCD9335_CDC_TX3_TX_PATH_CFG0 0x0a62
  751. #define WCD9335_CDC_TX3_TX_PATH_CFG1 0x0a63
  752. #define WCD9335_CDC_TX3_TX_VOL_CTL 0x0a64
  753. #define WCD9335_CDC_TX3_TX_PATH_192_CTL 0x0a65
  754. #define WCD9335_CDC_TX3_TX_PATH_192_CFG 0x0a66
  755. #define WCD9335_CDC_TX3_TX_PATH_SEC0 0x0a67
  756. #define WCD9335_CDC_TX3_TX_PATH_SEC1 0x0a68
  757. #define WCD9335_CDC_TX3_TX_PATH_SEC2 0x0a69
  758. #define WCD9335_CDC_TX3_TX_PATH_SEC3 0x0a6a
  759. #define WCD9335_CDC_TX3_TX_PATH_SEC4 0x0a6b
  760. #define WCD9335_CDC_TX3_TX_PATH_SEC5 0x0a6c
  761. #define WCD9335_CDC_TX3_TX_PATH_SEC6 0x0a6d
  762. #define WCD9335_CDC_TX4_TX_PATH_CTL 0x0a71
  763. #define WCD9335_CDC_TX4_TX_PATH_CFG0 0x0a72
  764. #define WCD9335_CDC_TX4_TX_PATH_CFG1 0x0a73
  765. #define WCD9335_CDC_TX4_TX_VOL_CTL 0x0a74
  766. #define WCD9335_CDC_TX4_TX_PATH_192_CTL 0x0a75
  767. #define WCD9335_CDC_TX4_TX_PATH_192_CFG 0x0a76
  768. #define WCD9335_CDC_TX4_TX_PATH_SEC0 0x0a77
  769. #define WCD9335_CDC_TX4_TX_PATH_SEC1 0x0a78
  770. #define WCD9335_CDC_TX4_TX_PATH_SEC2 0x0a79
  771. #define WCD9335_CDC_TX4_TX_PATH_SEC3 0x0a7a
  772. #define WCD9335_CDC_TX4_TX_PATH_SEC4 0x0a7b
  773. #define WCD9335_CDC_TX4_TX_PATH_SEC5 0x0a7c
  774. #define WCD9335_CDC_TX4_TX_PATH_SEC6 0x0a7d
  775. #define WCD9335_CDC_TX5_TX_PATH_CTL 0x0a81
  776. #define WCD9335_CDC_TX5_TX_PATH_CFG0 0x0a82
  777. #define WCD9335_CDC_TX5_TX_PATH_CFG1 0x0a83
  778. #define WCD9335_CDC_TX5_TX_VOL_CTL 0x0a84
  779. #define WCD9335_CDC_TX5_TX_PATH_192_CTL 0x0a85
  780. #define WCD9335_CDC_TX5_TX_PATH_192_CFG 0x0a86
  781. #define WCD9335_CDC_TX5_TX_PATH_SEC0 0x0a87
  782. #define WCD9335_CDC_TX5_TX_PATH_SEC1 0x0a88
  783. #define WCD9335_CDC_TX5_TX_PATH_SEC2 0x0a89
  784. #define WCD9335_CDC_TX5_TX_PATH_SEC3 0x0a8a
  785. #define WCD9335_CDC_TX5_TX_PATH_SEC4 0x0a8b
  786. #define WCD9335_CDC_TX5_TX_PATH_SEC5 0x0a8c
  787. #define WCD9335_CDC_TX5_TX_PATH_SEC6 0x0a8d
  788. #define WCD9335_CDC_TX6_TX_PATH_CTL 0x0a91
  789. #define WCD9335_CDC_TX6_TX_PATH_CFG0 0x0a92
  790. #define WCD9335_CDC_TX6_TX_PATH_CFG1 0x0a93
  791. #define WCD9335_CDC_TX6_TX_VOL_CTL 0x0a94
  792. #define WCD9335_CDC_TX6_TX_PATH_192_CTL 0x0a95
  793. #define WCD9335_CDC_TX6_TX_PATH_192_CFG 0x0a96
  794. #define WCD9335_CDC_TX6_TX_PATH_SEC0 0x0a97
  795. #define WCD9335_CDC_TX6_TX_PATH_SEC1 0x0a98
  796. #define WCD9335_CDC_TX6_TX_PATH_SEC2 0x0a99
  797. #define WCD9335_CDC_TX6_TX_PATH_SEC3 0x0a9a
  798. #define WCD9335_CDC_TX6_TX_PATH_SEC4 0x0a9b
  799. #define WCD9335_CDC_TX6_TX_PATH_SEC5 0x0a9c
  800. #define WCD9335_CDC_TX6_TX_PATH_SEC6 0x0a9d
  801. #define WCD9335_CDC_TX7_TX_PATH_CTL 0x0aa1
  802. #define WCD9335_CDC_TX7_TX_PATH_CFG0 0x0aa2
  803. #define WCD9335_CDC_TX7_TX_PATH_CFG1 0x0aa3
  804. #define WCD9335_CDC_TX7_TX_VOL_CTL 0x0aa4
  805. #define WCD9335_CDC_TX7_TX_PATH_192_CTL 0x0aa5
  806. #define WCD9335_CDC_TX7_TX_PATH_192_CFG 0x0aa6
  807. #define WCD9335_CDC_TX7_TX_PATH_SEC0 0x0aa7
  808. #define WCD9335_CDC_TX7_TX_PATH_SEC1 0x0aa8
  809. #define WCD9335_CDC_TX7_TX_PATH_SEC2 0x0aa9
  810. #define WCD9335_CDC_TX7_TX_PATH_SEC3 0x0aaa
  811. #define WCD9335_CDC_TX7_TX_PATH_SEC4 0x0aab
  812. #define WCD9335_CDC_TX7_TX_PATH_SEC5 0x0aac
  813. #define WCD9335_CDC_TX7_TX_PATH_SEC6 0x0aad
  814. #define WCD9335_CDC_TX8_TX_PATH_CTL 0x0ab1
  815. #define WCD9335_CDC_TX8_TX_PATH_CFG0 0x0ab2
  816. #define WCD9335_CDC_TX8_TX_PATH_CFG1 0x0ab3
  817. #define WCD9335_CDC_TX8_TX_VOL_CTL 0x0ab4
  818. #define WCD9335_CDC_TX8_TX_PATH_192_CTL 0x0ab5
  819. #define WCD9335_CDC_TX8_TX_PATH_192_CFG 0x0ab6
  820. #define WCD9335_CDC_TX8_TX_PATH_SEC0 0x0ab7
  821. #define WCD9335_CDC_TX8_TX_PATH_SEC1 0x0ab8
  822. #define WCD9335_CDC_TX8_TX_PATH_SEC2 0x0ab9
  823. #define WCD9335_CDC_TX8_TX_PATH_SEC3 0x0aba
  824. #define WCD9335_CDC_TX8_TX_PATH_SEC4 0x0abb
  825. #define WCD9335_CDC_TX8_TX_PATH_SEC5 0x0abc
  826. #define WCD9335_CDC_TX8_TX_PATH_SEC6 0x0abd
  827. #define WCD9335_CDC_TX9_SPKR_PROT_PATH_CTL 0x0ac2
  828. #define WCD9335_CDC_TX9_SPKR_PROT_PATH_CFG0 0x0ac3
  829. #define WCD9335_CDC_TX10_SPKR_PROT_PATH_CTL 0x0ac6
  830. #define WCD9335_CDC_TX10_SPKR_PROT_PATH_CFG0 0x0ac7
  831. #define WCD9335_CDC_TX11_SPKR_PROT_PATH_CTL 0x0aca
  832. #define WCD9335_CDC_TX11_SPKR_PROT_PATH_CFG0 0x0acb
  833. #define WCD9335_CDC_TX12_SPKR_PROT_PATH_CTL 0x0ace
  834. #define WCD9335_CDC_TX12_SPKR_PROT_PATH_CFG0 0x0acf
  835. /* Page-11 Registers */
  836. #define WCD9335_PAGE11_PAGE_REGISTER 0x0b00
  837. #define WCD9335_CDC_COMPANDER1_CTL0 0x0b01
  838. #define WCD9335_CDC_COMPANDER1_CTL1 0x0b02
  839. #define WCD9335_CDC_COMPANDER1_CTL2 0x0b03
  840. #define WCD9335_CDC_COMPANDER1_CTL3 0x0b04
  841. #define WCD9335_CDC_COMPANDER1_CTL4 0x0b05
  842. #define WCD9335_CDC_COMPANDER1_CTL5 0x0b06
  843. #define WCD9335_CDC_COMPANDER1_CTL6 0x0b07
  844. #define WCD9335_CDC_COMPANDER1_CTL7 0x0b08
  845. #define WCD9335_CDC_COMPANDER2_CTL0 0x0b09
  846. #define WCD9335_CDC_COMPANDER2_CTL1 0x0b0a
  847. #define WCD9335_CDC_COMPANDER2_CTL2 0x0b0b
  848. #define WCD9335_CDC_COMPANDER2_CTL3 0x0b0c
  849. #define WCD9335_CDC_COMPANDER2_CTL4 0x0b0d
  850. #define WCD9335_CDC_COMPANDER2_CTL5 0x0b0e
  851. #define WCD9335_CDC_COMPANDER2_CTL6 0x0b0f
  852. #define WCD9335_CDC_COMPANDER2_CTL7 0x0b10
  853. #define WCD9335_CDC_COMPANDER3_CTL0 0x0b11
  854. #define WCD9335_CDC_COMPANDER3_CTL1 0x0b12
  855. #define WCD9335_CDC_COMPANDER3_CTL2 0x0b13
  856. #define WCD9335_CDC_COMPANDER3_CTL3 0x0b14
  857. #define WCD9335_CDC_COMPANDER3_CTL4 0x0b15
  858. #define WCD9335_CDC_COMPANDER3_CTL5 0x0b16
  859. #define WCD9335_CDC_COMPANDER3_CTL6 0x0b17
  860. #define WCD9335_CDC_COMPANDER3_CTL7 0x0b18
  861. #define WCD9335_CDC_COMPANDER4_CTL0 0x0b19
  862. #define WCD9335_CDC_COMPANDER4_CTL1 0x0b1a
  863. #define WCD9335_CDC_COMPANDER4_CTL2 0x0b1b
  864. #define WCD9335_CDC_COMPANDER4_CTL3 0x0b1c
  865. #define WCD9335_CDC_COMPANDER4_CTL4 0x0b1d
  866. #define WCD9335_CDC_COMPANDER4_CTL5 0x0b1e
  867. #define WCD9335_CDC_COMPANDER4_CTL6 0x0b1f
  868. #define WCD9335_CDC_COMPANDER4_CTL7 0x0b20
  869. #define WCD9335_CDC_COMPANDER5_CTL0 0x0b21
  870. #define WCD9335_CDC_COMPANDER5_CTL1 0x0b22
  871. #define WCD9335_CDC_COMPANDER5_CTL2 0x0b23
  872. #define WCD9335_CDC_COMPANDER5_CTL3 0x0b24
  873. #define WCD9335_CDC_COMPANDER5_CTL4 0x0b25
  874. #define WCD9335_CDC_COMPANDER5_CTL5 0x0b26
  875. #define WCD9335_CDC_COMPANDER5_CTL6 0x0b27
  876. #define WCD9335_CDC_COMPANDER5_CTL7 0x0b28
  877. #define WCD9335_CDC_COMPANDER6_CTL0 0x0b29
  878. #define WCD9335_CDC_COMPANDER6_CTL1 0x0b2a
  879. #define WCD9335_CDC_COMPANDER6_CTL2 0x0b2b
  880. #define WCD9335_CDC_COMPANDER6_CTL3 0x0b2c
  881. #define WCD9335_CDC_COMPANDER6_CTL4 0x0b2d
  882. #define WCD9335_CDC_COMPANDER6_CTL5 0x0b2e
  883. #define WCD9335_CDC_COMPANDER6_CTL6 0x0b2f
  884. #define WCD9335_CDC_COMPANDER6_CTL7 0x0b30
  885. #define WCD9335_CDC_COMPANDER7_CTL0 0x0b31
  886. #define WCD9335_CDC_COMPANDER7_CTL1 0x0b32
  887. #define WCD9335_CDC_COMPANDER7_CTL2 0x0b33
  888. #define WCD9335_CDC_COMPANDER7_CTL3 0x0b34
  889. #define WCD9335_CDC_COMPANDER7_CTL4 0x0b35
  890. #define WCD9335_CDC_COMPANDER7_CTL5 0x0b36
  891. #define WCD9335_CDC_COMPANDER7_CTL6 0x0b37
  892. #define WCD9335_CDC_COMPANDER7_CTL7 0x0b38
  893. #define WCD9335_CDC_COMPANDER8_CTL0 0x0b39
  894. #define WCD9335_CDC_COMPANDER8_CTL1 0x0b3a
  895. #define WCD9335_CDC_COMPANDER8_CTL2 0x0b3b
  896. #define WCD9335_CDC_COMPANDER8_CTL3 0x0b3c
  897. #define WCD9335_CDC_COMPANDER8_CTL4 0x0b3d
  898. #define WCD9335_CDC_COMPANDER8_CTL5 0x0b3e
  899. #define WCD9335_CDC_COMPANDER8_CTL6 0x0b3f
  900. #define WCD9335_CDC_COMPANDER8_CTL7 0x0b40
  901. #define WCD9335_CDC_RX0_RX_PATH_CTL 0x0b41
  902. #define WCD9335_CDC_RX0_RX_PATH_CFG0 0x0b42
  903. #define WCD9335_CDC_RX0_RX_PATH_CFG1 0x0b43
  904. #define WCD9335_CDC_RX0_RX_PATH_CFG2 0x0b44
  905. #define WCD9335_CDC_RX0_RX_VOL_CTL 0x0b45
  906. #define WCD9335_CDC_RX0_RX_PATH_MIX_CTL 0x0b46
  907. #define WCD9335_CDC_RX0_RX_PATH_MIX_CFG 0x0b47
  908. #define WCD9335_CDC_RX0_RX_VOL_MIX_CTL 0x0b48
  909. #define WCD9335_CDC_RX0_RX_PATH_SEC0 0x0b49
  910. #define WCD9335_CDC_RX0_RX_PATH_SEC1 0x0b4a
  911. #define WCD9335_CDC_RX0_RX_PATH_SEC2 0x0b4b
  912. #define WCD9335_CDC_RX0_RX_PATH_SEC3 0x0b4c
  913. #define WCD9335_CDC_RX0_RX_PATH_SEC5 0x0b4e
  914. #define WCD9335_CDC_RX0_RX_PATH_SEC6 0x0b4f
  915. #define WCD9335_CDC_RX0_RX_PATH_SEC7 0x0b50
  916. #define WCD9335_CDC_RX0_RX_PATH_MIX_SEC0 0x0b51
  917. #define WCD9335_CDC_RX0_RX_PATH_MIX_SEC1 0x0b52
  918. #define WCD9335_CDC_RX1_RX_PATH_CTL 0x0b55
  919. #define WCD9335_CDC_RX1_RX_PATH_CFG0 0x0b56
  920. #define WCD9335_CDC_RX1_RX_PATH_CFG1 0x0b57
  921. #define WCD9335_CDC_RX1_RX_PATH_CFG2 0x0b58
  922. #define WCD9335_CDC_RX1_RX_VOL_CTL 0x0b59
  923. #define WCD9335_CDC_RX1_RX_PATH_MIX_CTL 0x0b5a
  924. #define WCD9335_CDC_RX1_RX_PATH_MIX_CFG 0x0b5b
  925. #define WCD9335_CDC_RX1_RX_VOL_MIX_CTL 0x0b5c
  926. #define WCD9335_CDC_RX1_RX_PATH_SEC0 0x0b5d
  927. #define WCD9335_CDC_RX1_RX_PATH_SEC1 0x0b5e
  928. #define WCD9335_CDC_RX1_RX_PATH_SEC2 0x0b5f
  929. #define WCD9335_CDC_RX1_RX_PATH_SEC3 0x0b60
  930. #define WCD9335_CDC_RX1_RX_PATH_SEC4 0x0b61
  931. #define WCD9335_CDC_RX1_RX_PATH_SEC5 0x0b62
  932. #define WCD9335_CDC_RX1_RX_PATH_SEC6 0x0b63
  933. #define WCD9335_CDC_RX1_RX_PATH_SEC7 0x0b64
  934. #define WCD9335_CDC_RX1_RX_PATH_MIX_SEC0 0x0b65
  935. #define WCD9335_CDC_RX1_RX_PATH_MIX_SEC1 0x0b66
  936. #define WCD9335_CDC_RX2_RX_PATH_CTL 0x0b69
  937. #define WCD9335_CDC_RX2_RX_PATH_CFG0 0x0b6a
  938. #define WCD9335_CDC_RX2_RX_PATH_CFG1 0x0b6b
  939. #define WCD9335_CDC_RX2_RX_PATH_CFG2 0x0b6c
  940. #define WCD9335_CDC_RX2_RX_VOL_CTL 0x0b6d
  941. #define WCD9335_CDC_RX2_RX_PATH_MIX_CTL 0x0b6e
  942. #define WCD9335_CDC_RX2_RX_PATH_MIX_CFG 0x0b6f
  943. #define WCD9335_CDC_RX2_RX_VOL_MIX_CTL 0x0b70
  944. #define WCD9335_CDC_RX2_RX_PATH_SEC0 0x0b71
  945. #define WCD9335_CDC_RX2_RX_PATH_SEC1 0x0b72
  946. #define WCD9335_CDC_RX2_RX_PATH_SEC2 0x0b73
  947. #define WCD9335_CDC_RX2_RX_PATH_SEC3 0x0b74
  948. #define WCD9335_CDC_RX2_RX_PATH_SEC4 0x0b75
  949. #define WCD9335_CDC_RX2_RX_PATH_SEC5 0x0b76
  950. #define WCD9335_CDC_RX2_RX_PATH_SEC6 0x0b77
  951. #define WCD9335_CDC_RX2_RX_PATH_SEC7 0x0b78
  952. #define WCD9335_CDC_RX2_RX_PATH_MIX_SEC0 0x0b79
  953. #define WCD9335_CDC_RX2_RX_PATH_MIX_SEC1 0x0b7a
  954. #define WCD9335_CDC_RX3_RX_PATH_CTL 0x0b7d
  955. #define WCD9335_CDC_RX3_RX_PATH_CFG0 0x0b7e
  956. #define WCD9335_CDC_RX3_RX_PATH_CFG1 0x0b7f
  957. #define WCD9335_CDC_RX3_RX_PATH_CFG2 0x0b80
  958. #define WCD9335_CDC_RX3_RX_VOL_CTL 0x0b81
  959. #define WCD9335_CDC_RX3_RX_PATH_MIX_CTL 0x0b82
  960. #define WCD9335_CDC_RX3_RX_PATH_MIX_CFG 0x0b83
  961. #define WCD9335_CDC_RX3_RX_VOL_MIX_CTL 0x0b84
  962. #define WCD9335_CDC_RX3_RX_PATH_SEC0 0x0b85
  963. #define WCD9335_CDC_RX3_RX_PATH_SEC1 0x0b86
  964. #define WCD9335_CDC_RX3_RX_PATH_SEC2 0x0b87
  965. #define WCD9335_CDC_RX3_RX_PATH_SEC3 0x0b88
  966. #define WCD9335_CDC_RX3_RX_PATH_SEC5 0x0b8a
  967. #define WCD9335_CDC_RX3_RX_PATH_SEC6 0x0b8b
  968. #define WCD9335_CDC_RX3_RX_PATH_SEC7 0x0b8c
  969. #define WCD9335_CDC_RX3_RX_PATH_MIX_SEC0 0x0b8d
  970. #define WCD9335_CDC_RX3_RX_PATH_MIX_SEC1 0x0b8e
  971. #define WCD9335_CDC_RX4_RX_PATH_CTL 0x0b91
  972. #define WCD9335_CDC_RX4_RX_PATH_CFG0 0x0b92
  973. #define WCD9335_CDC_RX4_RX_PATH_CFG1 0x0b93
  974. #define WCD9335_CDC_RX4_RX_PATH_CFG2 0x0b94
  975. #define WCD9335_CDC_RX4_RX_VOL_CTL 0x0b95
  976. #define WCD9335_CDC_RX4_RX_PATH_MIX_CTL 0x0b96
  977. #define WCD9335_CDC_RX4_RX_PATH_MIX_CFG 0x0b97
  978. #define WCD9335_CDC_RX4_RX_VOL_MIX_CTL 0x0b98
  979. #define WCD9335_CDC_RX4_RX_PATH_SEC0 0x0b99
  980. #define WCD9335_CDC_RX4_RX_PATH_SEC1 0x0b9a
  981. #define WCD9335_CDC_RX4_RX_PATH_SEC2 0x0b9b
  982. #define WCD9335_CDC_RX4_RX_PATH_SEC3 0x0b9c
  983. #define WCD9335_CDC_RX4_RX_PATH_SEC5 0x0b9e
  984. #define WCD9335_CDC_RX4_RX_PATH_SEC6 0x0b9f
  985. #define WCD9335_CDC_RX4_RX_PATH_SEC7 0x0ba0
  986. #define WCD9335_CDC_RX4_RX_PATH_MIX_SEC0 0x0ba1
  987. #define WCD9335_CDC_RX4_RX_PATH_MIX_SEC1 0x0ba2
  988. #define WCD9335_CDC_RX5_RX_PATH_CTL 0x0ba5
  989. #define WCD9335_CDC_RX5_RX_PATH_CFG0 0x0ba6
  990. #define WCD9335_CDC_RX5_RX_PATH_CFG1 0x0ba7
  991. #define WCD9335_CDC_RX5_RX_PATH_CFG2 0x0ba8
  992. #define WCD9335_CDC_RX5_RX_VOL_CTL 0x0ba9
  993. #define WCD9335_CDC_RX5_RX_PATH_MIX_CTL 0x0baa
  994. #define WCD9335_CDC_RX5_RX_PATH_MIX_CFG 0x0bab
  995. #define WCD9335_CDC_RX5_RX_VOL_MIX_CTL 0x0bac
  996. #define WCD9335_CDC_RX5_RX_PATH_SEC0 0x0bad
  997. #define WCD9335_CDC_RX5_RX_PATH_SEC1 0x0bae
  998. #define WCD9335_CDC_RX5_RX_PATH_SEC2 0x0baf
  999. #define WCD9335_CDC_RX5_RX_PATH_SEC3 0x0bb0
  1000. #define WCD9335_CDC_RX5_RX_PATH_SEC5 0x0bb2
  1001. #define WCD9335_CDC_RX5_RX_PATH_SEC6 0x0bb3
  1002. #define WCD9335_CDC_RX5_RX_PATH_SEC7 0x0bb4
  1003. #define WCD9335_CDC_RX5_RX_PATH_MIX_SEC0 0x0bb5
  1004. #define WCD9335_CDC_RX5_RX_PATH_MIX_SEC1 0x0bb6
  1005. #define WCD9335_CDC_RX6_RX_PATH_CTL 0x0bb9
  1006. #define WCD9335_CDC_RX6_RX_PATH_CFG0 0x0bba
  1007. #define WCD9335_CDC_RX6_RX_PATH_CFG1 0x0bbb
  1008. #define WCD9335_CDC_RX6_RX_PATH_CFG2 0x0bbc
  1009. #define WCD9335_CDC_RX6_RX_VOL_CTL 0x0bbd
  1010. #define WCD9335_CDC_RX6_RX_PATH_MIX_CTL 0x0bbe
  1011. #define WCD9335_CDC_RX6_RX_PATH_MIX_CFG 0x0bbf
  1012. #define WCD9335_CDC_RX6_RX_VOL_MIX_CTL 0x0bc0
  1013. #define WCD9335_CDC_RX6_RX_PATH_SEC0 0x0bc1
  1014. #define WCD9335_CDC_RX6_RX_PATH_SEC1 0x0bc2
  1015. #define WCD9335_CDC_RX6_RX_PATH_SEC2 0x0bc3
  1016. #define WCD9335_CDC_RX6_RX_PATH_SEC3 0x0bc4
  1017. #define WCD9335_CDC_RX6_RX_PATH_SEC5 0x0bc6
  1018. #define WCD9335_CDC_RX6_RX_PATH_SEC6 0x0bc7
  1019. #define WCD9335_CDC_RX6_RX_PATH_SEC7 0x0bc8
  1020. #define WCD9335_CDC_RX6_RX_PATH_MIX_SEC0 0x0bc9
  1021. #define WCD9335_CDC_RX6_RX_PATH_MIX_SEC1 0x0bca
  1022. #define WCD9335_CDC_RX7_RX_PATH_CTL 0x0bcd
  1023. #define WCD9335_CDC_RX7_RX_PATH_CFG0 0x0bce
  1024. #define WCD9335_CDC_RX7_RX_PATH_CFG1 0x0bcf
  1025. #define WCD9335_CDC_RX7_RX_PATH_CFG2 0x0bd0
  1026. #define WCD9335_CDC_RX7_RX_VOL_CTL 0x0bd1
  1027. #define WCD9335_CDC_RX7_RX_PATH_MIX_CTL 0x0bd2
  1028. #define WCD9335_CDC_RX7_RX_PATH_MIX_CFG 0x0bd3
  1029. #define WCD9335_CDC_RX7_RX_VOL_MIX_CTL 0x0bd4
  1030. #define WCD9335_CDC_RX7_RX_PATH_SEC0 0x0bd5
  1031. #define WCD9335_CDC_RX7_RX_PATH_SEC1 0x0bd6
  1032. #define WCD9335_CDC_RX7_RX_PATH_SEC2 0x0bd7
  1033. #define WCD9335_CDC_RX7_RX_PATH_SEC3 0x0bd8
  1034. #define WCD9335_CDC_RX7_RX_PATH_SEC5 0x0bda
  1035. #define WCD9335_CDC_RX7_RX_PATH_SEC6 0x0bdb
  1036. #define WCD9335_CDC_RX7_RX_PATH_SEC7 0x0bdc
  1037. #define WCD9335_CDC_RX7_RX_PATH_MIX_SEC0 0x0bdd
  1038. #define WCD9335_CDC_RX7_RX_PATH_MIX_SEC1 0x0bde
  1039. #define WCD9335_CDC_RX8_RX_PATH_CTL 0x0be1
  1040. #define WCD9335_CDC_RX8_RX_PATH_CFG0 0x0be2
  1041. #define WCD9335_CDC_RX8_RX_PATH_CFG1 0x0be3
  1042. #define WCD9335_CDC_RX8_RX_PATH_CFG2 0x0be4
  1043. #define WCD9335_CDC_RX8_RX_VOL_CTL 0x0be5
  1044. #define WCD9335_CDC_RX8_RX_PATH_MIX_CTL 0x0be6
  1045. #define WCD9335_CDC_RX8_RX_PATH_MIX_CFG 0x0be7
  1046. #define WCD9335_CDC_RX8_RX_VOL_MIX_CTL 0x0be8
  1047. #define WCD9335_CDC_RX8_RX_PATH_SEC0 0x0be9
  1048. #define WCD9335_CDC_RX8_RX_PATH_SEC1 0x0bea
  1049. #define WCD9335_CDC_RX8_RX_PATH_SEC2 0x0beb
  1050. #define WCD9335_CDC_RX8_RX_PATH_SEC3 0x0bec
  1051. #define WCD9335_CDC_RX8_RX_PATH_SEC5 0x0bee
  1052. #define WCD9335_CDC_RX8_RX_PATH_SEC6 0x0bef
  1053. #define WCD9335_CDC_RX8_RX_PATH_SEC7 0x0bf0
  1054. #define WCD9335_CDC_RX8_RX_PATH_MIX_SEC0 0x0bf1
  1055. #define WCD9335_CDC_RX8_RX_PATH_MIX_SEC1 0x0bf2
  1056. /* Page-12 Registers */
  1057. #define WCD9335_PAGE12_PAGE_REGISTER 0x0c00
  1058. #define WCD9335_CDC_CLSH_CRC 0x0c01
  1059. #define WCD9335_CDC_CLSH_DLY_CTRL 0x0c02
  1060. #define WCD9335_CDC_CLSH_DECAY_CTRL 0x0c03
  1061. #define WCD9335_CDC_CLSH_HPH_V_PA 0x0c04
  1062. #define WCD9335_CDC_CLSH_EAR_V_PA 0x0c05
  1063. #define WCD9335_CDC_CLSH_HPH_V_HD 0x0c06
  1064. #define WCD9335_CDC_CLSH_EAR_V_HD 0x0c07
  1065. #define WCD9335_CDC_CLSH_K1_MSB 0x0c08
  1066. #define WCD9335_CDC_CLSH_K1_LSB 0x0c09
  1067. #define WCD9335_CDC_CLSH_K2_MSB 0x0c0a
  1068. #define WCD9335_CDC_CLSH_K2_LSB 0x0c0b
  1069. #define WCD9335_CDC_CLSH_IDLE_CTRL 0x0c0c
  1070. #define WCD9335_CDC_CLSH_IDLE_HPH 0x0c0d
  1071. #define WCD9335_CDC_CLSH_IDLE_EAR 0x0c0e
  1072. #define WCD9335_CDC_CLSH_TEST0 0x0c0f
  1073. #define WCD9335_CDC_CLSH_TEST1 0x0c10
  1074. #define WCD9335_CDC_CLSH_OVR_VREF 0x0c11
  1075. #define WCD9335_CDC_BOOST0_BOOST_PATH_CTL 0x0c19
  1076. #define WCD9335_CDC_BOOST0_BOOST_CTL 0x0c1a
  1077. #define WCD9335_CDC_BOOST0_BOOST_CFG1 0x0c1b
  1078. #define WCD9335_CDC_BOOST0_BOOST_CFG2 0x0c1c
  1079. #define WCD9335_CDC_BOOST1_BOOST_PATH_CTL 0x0c21
  1080. #define WCD9335_CDC_BOOST1_BOOST_CTL 0x0c22
  1081. #define WCD9335_CDC_BOOST1_BOOST_CFG1 0x0c23
  1082. #define WCD9335_CDC_BOOST1_BOOST_CFG2 0x0c24
  1083. #define WCD9335_SWR_AHB_BRIDGE_WR_DATA_0 0x0c29
  1084. #define WCD9335_SWR_AHB_BRIDGE_WR_DATA_1 0x0c2a
  1085. #define WCD9335_SWR_AHB_BRIDGE_WR_DATA_2 0x0c2b
  1086. #define WCD9335_SWR_AHB_BRIDGE_WR_DATA_3 0x0c2c
  1087. #define WCD9335_SWR_AHB_BRIDGE_WR_ADDR_0 0x0c2d
  1088. #define WCD9335_SWR_AHB_BRIDGE_WR_ADDR_1 0x0c2e
  1089. #define WCD9335_SWR_AHB_BRIDGE_WR_ADDR_2 0x0c2f
  1090. #define WCD9335_SWR_AHB_BRIDGE_WR_ADDR_3 0x0c30
  1091. #define WCD9335_SWR_AHB_BRIDGE_RD_ADDR_0 0x0c31
  1092. #define WCD9335_SWR_AHB_BRIDGE_RD_ADDR_1 0x0c32
  1093. #define WCD9335_SWR_AHB_BRIDGE_RD_ADDR_2 0x0c33
  1094. #define WCD9335_SWR_AHB_BRIDGE_RD_ADDR_3 0x0c34
  1095. #define WCD9335_SWR_AHB_BRIDGE_RD_DATA_0 0x0c35
  1096. #define WCD9335_SWR_AHB_BRIDGE_RD_DATA_1 0x0c36
  1097. #define WCD9335_SWR_AHB_BRIDGE_RD_DATA_2 0x0c37
  1098. #define WCD9335_SWR_AHB_BRIDGE_RD_DATA_3 0x0c38
  1099. #define WCD9335_SWR_AHB_BRIDGE_ACCESS_CFG 0x0c39
  1100. #define WCD9335_SWR_AHB_BRIDGE_ACCESS_STATUS 0x0c3a
  1101. #define WCD9335_CDC_VBAT_VBAT_PATH_CTL 0x0c3d
  1102. #define WCD9335_CDC_VBAT_VBAT_CFG 0x0c3e
  1103. #define WCD9335_CDC_VBAT_VBAT_ADC_CAL1 0x0c3f
  1104. #define WCD9335_CDC_VBAT_VBAT_ADC_CAL2 0x0c40
  1105. #define WCD9335_CDC_VBAT_VBAT_ADC_CAL3 0x0c41
  1106. #define WCD9335_CDC_VBAT_VBAT_PK_EST1 0x0c42
  1107. #define WCD9335_CDC_VBAT_VBAT_PK_EST2 0x0c43
  1108. #define WCD9335_CDC_VBAT_VBAT_PK_EST3 0x0c44
  1109. #define WCD9335_CDC_VBAT_VBAT_RF_PROC1 0x0c45
  1110. #define WCD9335_CDC_VBAT_VBAT_RF_PROC2 0x0c46
  1111. #define WCD9335_CDC_VBAT_VBAT_TAC1 0x0c47
  1112. #define WCD9335_CDC_VBAT_VBAT_TAC2 0x0c48
  1113. #define WCD9335_CDC_VBAT_VBAT_TAC3 0x0c49
  1114. #define WCD9335_CDC_VBAT_VBAT_TAC4 0x0c4a
  1115. #define WCD9335_CDC_VBAT_VBAT_GAIN_UPD1 0x0c4b
  1116. #define WCD9335_CDC_VBAT_VBAT_GAIN_UPD2 0x0c4c
  1117. #define WCD9335_CDC_VBAT_VBAT_GAIN_UPD3 0x0c4d
  1118. #define WCD9335_CDC_VBAT_VBAT_GAIN_UPD4 0x0c4e
  1119. #define WCD9335_CDC_VBAT_VBAT_DEBUG1 0x0c4f
  1120. #define WCD9335_CDC_VBAT_VBAT_GAIN_UPD_MON 0x0c50
  1121. #define WCD9335_CDC_VBAT_VBAT_GAIN_MON_VAL 0x0c51
  1122. #define WCD9335_SPLINE_SRC0_CLK_RST_CTL_0 0x0c55
  1123. #define WCD9335_SPLINE_SRC0_STATUS 0x0c56
  1124. #define WCD9335_SPLINE_SRC1_CLK_RST_CTL_0 0x0c6d
  1125. #define WCD9335_SPLINE_SRC1_STATUS 0x0c6e
  1126. #define WCD9335_SPLINE_SRC2_CLK_RST_CTL_0 0x0c85
  1127. #define WCD9335_SPLINE_SRC2_STATUS 0x0c86
  1128. #define WCD9335_SPLINE_SRC3_CLK_RST_CTL_0 0x0c9d
  1129. #define WCD9335_SPLINE_SRC3_STATUS 0x0c9e
  1130. #define WCD9335_CDC_SIDETONE_SRC0_ST_SRC_PATH_CTL 0x0cb5
  1131. #define WCD9335_CDC_SIDETONE_SRC0_ST_SRC_PATH_CFG1 0x0cb6
  1132. #define WCD9335_CDC_SIDETONE_SRC1_ST_SRC_PATH_CTL 0x0cb9
  1133. #define WCD9335_CDC_SIDETONE_SRC1_ST_SRC_PATH_CFG1 0x0cba
  1134. /* Page-13 Registers */
  1135. #define WCD9335_PAGE13_PAGE_REGISTER 0x0d00
  1136. #define WCD9335_CDC_RX_INP_MUX_RX_INT0_CFG0 0x0d01
  1137. #define WCD9335_CDC_RX_INP_MUX_RX_INT0_CFG1 0x0d02
  1138. #define WCD9335_CDC_RX_INP_MUX_RX_INT1_CFG0 0x0d03
  1139. #define WCD9335_CDC_RX_INP_MUX_RX_INT1_CFG1 0x0d04
  1140. #define WCD9335_CDC_RX_INP_MUX_RX_INT2_CFG0 0x0d05
  1141. #define WCD9335_CDC_RX_INP_MUX_RX_INT2_CFG1 0x0d06
  1142. #define WCD9335_CDC_RX_INP_MUX_RX_INT3_CFG0 0x0d07
  1143. #define WCD9335_CDC_RX_INP_MUX_RX_INT3_CFG1 0x0d08
  1144. #define WCD9335_CDC_RX_INP_MUX_RX_INT4_CFG0 0x0d09
  1145. #define WCD9335_CDC_RX_INP_MUX_RX_INT4_CFG1 0x0d0a
  1146. #define WCD9335_CDC_RX_INP_MUX_RX_INT5_CFG0 0x0d0b
  1147. #define WCD9335_CDC_RX_INP_MUX_RX_INT5_CFG1 0x0d0c
  1148. #define WCD9335_CDC_RX_INP_MUX_RX_INT6_CFG0 0x0d0d
  1149. #define WCD9335_CDC_RX_INP_MUX_RX_INT6_CFG1 0x0d0e
  1150. #define WCD9335_CDC_RX_INP_MUX_RX_INT7_CFG0 0x0d0f
  1151. #define WCD9335_CDC_RX_INP_MUX_RX_INT7_CFG1 0x0d10
  1152. #define WCD9335_CDC_RX_INP_MUX_RX_INT8_CFG0 0x0d11
  1153. #define WCD9335_CDC_RX_INP_MUX_RX_INT8_CFG1 0x0d12
  1154. #define WCD9335_CDC_RX_INP_MUX_RX_MIX_CFG0 0x0d13
  1155. #define WCD9335_CDC_RX_INP_MUX_RX_MIX_CFG1 0x0d14
  1156. #define WCD9335_CDC_RX_INP_MUX_RX_MIX_CFG2 0x0d15
  1157. #define WCD9335_CDC_RX_INP_MUX_RX_MIX_CFG3 0x0d16
  1158. #define WCD9335_CDC_RX_INP_MUX_RX_MIX_CFG4 0x0d17
  1159. #define WCD9335_CDC_RX_INP_MUX_SIDETONE_SRC_CFG0 0x0d18
  1160. #define WCD9335_CDC_RX_INP_MUX_SIDETONE_SRC_CFG1 0x0d19
  1161. #define WCD9335_CDC_RX_INP_MUX_ANC_CFG0 0x0d1a
  1162. #define WCD9335_CDC_RX_INP_MUX_SPLINE_SRC_CFG0 0x0d1b
  1163. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX0_CFG0 0x0d1d
  1164. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX0_CFG1 0x0d1e
  1165. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX1_CFG0 0x0d1f
  1166. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX1_CFG1 0x0d20
  1167. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX2_CFG0 0x0d21
  1168. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX2_CFG1 0x0d22
  1169. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX3_CFG0 0x0d23
  1170. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX3_CFG1 0x0d24
  1171. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX4_CFG0 0x0d25
  1172. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX5_CFG0 0x0d26
  1173. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX6_CFG0 0x0d27
  1174. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX7_CFG0 0x0d28
  1175. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX8_CFG0 0x0d29
  1176. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX10_CFG0 0x0d2b
  1177. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX11_CFG0 0x0d2c
  1178. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX12_CFG0 0x0d2d
  1179. #define WCD9335_CDC_TX_INP_MUX_ADC_MUX13_CFG0 0x0d2e
  1180. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR0_MIX_CFG0 0x0d31
  1181. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR0_MIX_CFG1 0x0d32
  1182. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR0_MIX_CFG2 0x0d33
  1183. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR0_MIX_CFG3 0x0d34
  1184. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR1_MIX_CFG0 0x0d35
  1185. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR1_MIX_CFG1 0x0d36
  1186. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR1_MIX_CFG2 0x0d37
  1187. #define WCD9335_CDC_SIDETONE_IIR_INP_MUX_IIR1_MIX_CFG3 0x0d38
  1188. #define WCD9335_CDC_IF_ROUTER_TX_MUX_CFG0 0x0d3a
  1189. #define WCD9335_CDC_IF_ROUTER_TX_MUX_CFG1 0x0d3b
  1190. #define WCD9335_CDC_IF_ROUTER_TX_MUX_CFG2 0x0d3c
  1191. #define WCD9335_CDC_IF_ROUTER_TX_MUX_CFG3 0x0d3d
  1192. #define WCD9335_CDC_CLK_RST_CTRL_MCLK_CONTROL 0x0d41
  1193. #define WCD9335_CDC_CLK_RST_CTRL_FS_CNT_CONTROL 0x0d42
  1194. #define WCD9335_CDC_CLK_RST_CTRL_SWR_CONTROL 0x0d43
  1195. #define WCD9335_CDC_PROX_DETECT_PROX_CTL 0x0d49
  1196. #define WCD9335_CDC_PROX_DETECT_PROX_POLL_PERIOD0 0x0d4a
  1197. #define WCD9335_CDC_PROX_DETECT_PROX_POLL_PERIOD1 0x0d4b
  1198. #define WCD9335_CDC_PROX_DETECT_PROX_SIG_PATTERN_LSB 0x0d4c
  1199. #define WCD9335_CDC_PROX_DETECT_PROX_SIG_PATTERN_MSB 0x0d4d
  1200. #define WCD9335_CDC_PROX_DETECT_PROX_STATUS 0x0d4e
  1201. #define WCD9335_CDC_PROX_DETECT_PROX_TEST_CTRL 0x0d4f
  1202. #define WCD9335_CDC_PROX_DETECT_PROX_TEST_BUFF_LSB 0x0d50
  1203. #define WCD9335_CDC_PROX_DETECT_PROX_TEST_BUFF_MSB 0x0d51
  1204. #define WCD9335_CDC_PROX_DETECT_PROX_TEST_BUFF_LSB_RD 0x0d52
  1205. #define WCD9335_CDC_PROX_DETECT_PROX_TEST_BUFF_MSB_RD 0x0d53
  1206. #define WCD9335_CDC_PROX_DETECT_PROX_CTL_REPEAT_PAT 0x0d54
  1207. #define WCD9335_CDC_SIDETONE_IIR0_IIR_PATH_CTL 0x0d55
  1208. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B1_CTL 0x0d56
  1209. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B2_CTL 0x0d57
  1210. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B3_CTL 0x0d58
  1211. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B4_CTL 0x0d59
  1212. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B5_CTL 0x0d5a
  1213. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B6_CTL 0x0d5b
  1214. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B7_CTL 0x0d5c
  1215. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_B8_CTL 0x0d5d
  1216. #define WCD9335_CDC_SIDETONE_IIR0_IIR_CTL 0x0d5e
  1217. #define WCD9335_CDC_SIDETONE_IIR0_IIR_GAIN_TIMER_CTL 0x0d5f
  1218. #define WCD9335_CDC_SIDETONE_IIR0_IIR_COEF_B1_CTL 0x0d60
  1219. #define WCD9335_CDC_SIDETONE_IIR0_IIR_COEF_B2_CTL 0x0d61
  1220. #define WCD9335_CDC_SIDETONE_IIR1_IIR_PATH_CTL 0x0d65
  1221. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B1_CTL 0x0d66
  1222. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B2_CTL 0x0d67
  1223. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B3_CTL 0x0d68
  1224. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B4_CTL 0x0d69
  1225. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B5_CTL 0x0d6a
  1226. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B6_CTL 0x0d6b
  1227. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B7_CTL 0x0d6c
  1228. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_B8_CTL 0x0d6d
  1229. #define WCD9335_CDC_SIDETONE_IIR1_IIR_CTL 0x0d6e
  1230. #define WCD9335_CDC_SIDETONE_IIR1_IIR_GAIN_TIMER_CTL 0x0d6f
  1231. #define WCD9335_CDC_SIDETONE_IIR1_IIR_COEF_B1_CTL 0x0d70
  1232. #define WCD9335_CDC_SIDETONE_IIR1_IIR_COEF_B2_CTL 0x0d71
  1233. #define WCD9335_CDC_TOP_TOP_CFG0 0x0d81
  1234. #define WCD9335_CDC_TOP_TOP_CFG1 0x0d82
  1235. #define WCD9335_CDC_TOP_TOP_CFG2 0x0d83
  1236. #define WCD9335_CDC_TOP_TOP_CFG3 0x0d84
  1237. #define WCD9335_CDC_TOP_TOP_CFG4 0x0d85
  1238. #define WCD9335_CDC_TOP_TOP_CFG5 0x0d86
  1239. #define WCD9335_CDC_TOP_TOP_CFG6 0x0d87
  1240. #define WCD9335_CDC_TOP_TOP_CFG7 0x0d88
  1241. #define WCD9335_CDC_TOP_HPHL_COMP_WR_LSB 0x0d89
  1242. #define WCD9335_CDC_TOP_HPHL_COMP_WR_MSB 0x0d8a
  1243. #define WCD9335_CDC_TOP_HPHL_COMP_LUT 0x0d8b
  1244. #define WCD9335_CDC_TOP_HPHL_COMP_RD_LSB 0x0d8c
  1245. #define WCD9335_CDC_TOP_HPHL_COMP_RD_MSB 0x0d8d
  1246. #define WCD9335_CDC_TOP_HPHR_COMP_WR_LSB 0x0d8e
  1247. #define WCD9335_CDC_TOP_HPHR_COMP_WR_MSB 0x0d8f
  1248. #define WCD9335_CDC_TOP_HPHR_COMP_LUT 0x0d90
  1249. #define WCD9335_CDC_TOP_HPHR_COMP_RD_LSB 0x0d91
  1250. #define WCD9335_CDC_TOP_HPHR_COMP_RD_MSB 0x0d92
  1251. #define WCD9335_CDC_TOP_DIFFL_COMP_WR_LSB 0x0d93
  1252. #define WCD9335_CDC_TOP_DIFFL_COMP_WR_MSB 0x0d94
  1253. #define WCD9335_CDC_TOP_DIFFL_COMP_LUT 0x0d95
  1254. #define WCD9335_CDC_TOP_DIFFL_COMP_RD_LSB 0x0d96
  1255. #define WCD9335_CDC_TOP_DIFFL_COMP_RD_MSB 0x0d97
  1256. #define WCD9335_CDC_TOP_DIFFR_COMP_WR_LSB 0x0d98
  1257. #define WCD9335_CDC_TOP_DIFFR_COMP_WR_MSB 0x0d99
  1258. #define WCD9335_CDC_TOP_DIFFR_COMP_LUT 0x0d9a
  1259. #define WCD9335_CDC_TOP_DIFFR_COMP_RD_LSB 0x0d9b
  1260. #define WCD9335_CDC_TOP_DIFFR_COMP_RD_MSB 0x0d9c
  1261. /* Page-0x80 Registers */
  1262. #define WCD9335_PAGE80_PAGE_REGISTER 0x8000
  1263. #define WCD9335_TLMM_BIST_MODE_PINCFG 0x8001
  1264. #define WCD9335_TLMM_RF_PA_ON_PINCFG 0x8002
  1265. #define WCD9335_TLMM_INTR1_PINCFG 0x8003
  1266. #define WCD9335_TLMM_INTR2_PINCFG 0x8004
  1267. #define WCD9335_TLMM_SWR_DATA_PINCFG 0x8005
  1268. #define WCD9335_TLMM_SWR_CLK_PINCFG 0x8006
  1269. #define WCD9335_TLMM_SLIMBUS_DATA2_PINCFG 0x8007
  1270. #define WCD9335_TLMM_I2C_CLK_PINCFG 0x8008
  1271. #define WCD9335_TLMM_I2C_DATA_PINCFG 0x8009
  1272. #define WCD9335_TLMM_I2S_RX_SD0_PINCFG 0x800a
  1273. #define WCD9335_TLMM_I2S_RX_SD1_PINCFG 0x800b
  1274. #define WCD9335_TLMM_I2S_RX_SCK_PINCFG 0x800c
  1275. #define WCD9335_TLMM_I2S_RX_WS_PINCFG 0x800d
  1276. #define WCD9335_TLMM_I2S_TX_SD0_PINCFG 0x800e
  1277. #define WCD9335_TLMM_I2S_TX_SD1_PINCFG 0x800f
  1278. #define WCD9335_TLMM_I2S_TX_SCK_PINCFG 0x8010
  1279. #define WCD9335_TLMM_I2S_TX_WS_PINCFG 0x8011
  1280. #define WCD9335_TLMM_DMIC1_CLK_PINCFG 0x8012
  1281. #define WCD9335_TLMM_DMIC1_DATA_PINCFG 0x8013
  1282. #define WCD9335_TLMM_DMIC2_CLK_PINCFG 0x8014
  1283. #define WCD9335_TLMM_DMIC2_DATA_PINCFG 0x8015
  1284. #define WCD9335_TLMM_DMIC3_CLK_PINCFG 0x8016
  1285. #define WCD9335_TLMM_DMIC3_DATA_PINCFG 0x8017
  1286. #define WCD9335_TLMM_JTDI_PINCFG 0x8018
  1287. #define WCD9335_TLMM_JTDO_PINCFG 0x8019
  1288. #define WCD9335_TLMM_JTMS_PINCFG 0x801a
  1289. #define WCD9335_TLMM_JTCK_PINCFG 0x801b
  1290. #define WCD9335_TLMM_JTRST_PINCFG 0x801c
  1291. #define WCD9335_TEST_DEBUG_PIN_CTL_OE_0 0x8031
  1292. #define WCD9335_TEST_DEBUG_PIN_CTL_OE_1 0x8032
  1293. #define WCD9335_TEST_DEBUG_PIN_CTL_OE_2 0x8033
  1294. #define WCD9335_TEST_DEBUG_PIN_CTL_OE_3 0x8034
  1295. #define WCD9335_TEST_DEBUG_PIN_CTL_DATA_0 0x8035
  1296. #define WCD9335_TEST_DEBUG_PIN_CTL_DATA_1 0x8036
  1297. #define WCD9335_TEST_DEBUG_PIN_CTL_DATA_2 0x8037
  1298. #define WCD9335_TEST_DEBUG_PIN_CTL_DATA_3 0x8038
  1299. #define WCD9335_TEST_DEBUG_PAD_DRVCTL 0x8039
  1300. #define WCD9335_TEST_DEBUG_PIN_STATUS 0x803a
  1301. #define WCD9335_TEST_DEBUG_NPL_DLY_TEST_1 0x803b
  1302. #define WCD9335_TEST_DEBUG_NPL_DLY_TEST_2 0x803c
  1303. #define WCD9335_TEST_DEBUG_MEM_CTRL 0x803d
  1304. #define WCD9335_TEST_DEBUG_DEBUG_BUS_SEL 0x8041
  1305. #define WCD9335_TEST_DEBUG_DEBUG_JTAG 0x8042
  1306. #define WCD9335_TEST_DEBUG_DEBUG_EN_1 0x8043
  1307. #define WCD9335_TEST_DEBUG_DEBUG_EN_2 0x8044
  1308. #define WCD9335_TEST_DEBUG_DEBUG_EN_3 0x8045
  1309. #define WCD9335_MAX_REGISTER 0x80FF
  1310. /* SLIMBUS Slave Registers */
  1311. #define TASHA_SLIM_PGD_PORT_INT_EN0 (0x30)
  1312. #define TASHA_SLIM_PGD_PORT_INT_STATUS_RX_0 (0x34)
  1313. #define TASHA_SLIM_PGD_PORT_INT_STATUS_RX_1 (0x35)
  1314. #define TASHA_SLIM_PGD_PORT_INT_STATUS_TX_0 (0x36)
  1315. #define TASHA_SLIM_PGD_PORT_INT_STATUS_TX_1 (0x37)
  1316. #define TASHA_SLIM_PGD_PORT_INT_CLR_RX_0 (0x38)
  1317. #define TASHA_SLIM_PGD_PORT_INT_CLR_RX_1 (0x39)
  1318. #define TASHA_SLIM_PGD_PORT_INT_CLR_TX_0 (0x3A)
  1319. #define TASHA_SLIM_PGD_PORT_INT_CLR_TX_1 (0x3B)
  1320. #define TASHA_SLIM_PGD_PORT_INT_RX_SOURCE0 (0x60)
  1321. #define TASHA_SLIM_PGD_PORT_INT_TX_SOURCE0 (0x70)
  1322. /* Macros for Packing Register Writes into a U32 */
  1323. #define TASHA_PACKED_REG_SIZE sizeof(u32)
  1324. #define TASHA_CODEC_PACK_ENTRY(reg, mask, val) ((val & 0xff)|\
  1325. ((mask & 0xff) << 8)|((reg & 0xffff) << 16))
  1326. #define TASHA_CODEC_UNPACK_ENTRY(packed, reg, mask, val) \
  1327. do { \
  1328. ((reg) = ((packed >> 16) & (0xffff))); \
  1329. ((mask) = ((packed >> 8) & (0xff))); \
  1330. ((val) = ((packed) & (0xff))); \
  1331. } while (0)
  1332. #endif