wcd9335_registers.h 81 KB

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