regulator.h 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218
  1. /*
  2. * linux/mfd/wm831x/regulator.h -- Regulator definitons for wm831x
  3. *
  4. * Copyright 2009 Wolfson Microelectronics PLC.
  5. *
  6. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #ifndef __MFD_WM831X_REGULATOR_H__
  15. #define __MFD_WM831X_REGULATOR_H__
  16. /*
  17. * R16462 (0x404E) - Current Sink 1
  18. */
  19. #define WM831X_CS1_ENA 0x8000 /* CS1_ENA */
  20. #define WM831X_CS1_ENA_MASK 0x8000 /* CS1_ENA */
  21. #define WM831X_CS1_ENA_SHIFT 15 /* CS1_ENA */
  22. #define WM831X_CS1_ENA_WIDTH 1 /* CS1_ENA */
  23. #define WM831X_CS1_DRIVE 0x4000 /* CS1_DRIVE */
  24. #define WM831X_CS1_DRIVE_MASK 0x4000 /* CS1_DRIVE */
  25. #define WM831X_CS1_DRIVE_SHIFT 14 /* CS1_DRIVE */
  26. #define WM831X_CS1_DRIVE_WIDTH 1 /* CS1_DRIVE */
  27. #define WM831X_CS1_SLPENA 0x1000 /* CS1_SLPENA */
  28. #define WM831X_CS1_SLPENA_MASK 0x1000 /* CS1_SLPENA */
  29. #define WM831X_CS1_SLPENA_SHIFT 12 /* CS1_SLPENA */
  30. #define WM831X_CS1_SLPENA_WIDTH 1 /* CS1_SLPENA */
  31. #define WM831X_CS1_OFF_RAMP_MASK 0x0C00 /* CS1_OFF_RAMP - [11:10] */
  32. #define WM831X_CS1_OFF_RAMP_SHIFT 10 /* CS1_OFF_RAMP - [11:10] */
  33. #define WM831X_CS1_OFF_RAMP_WIDTH 2 /* CS1_OFF_RAMP - [11:10] */
  34. #define WM831X_CS1_ON_RAMP_MASK 0x0300 /* CS1_ON_RAMP - [9:8] */
  35. #define WM831X_CS1_ON_RAMP_SHIFT 8 /* CS1_ON_RAMP - [9:8] */
  36. #define WM831X_CS1_ON_RAMP_WIDTH 2 /* CS1_ON_RAMP - [9:8] */
  37. #define WM831X_CS1_ISEL_MASK 0x003F /* CS1_ISEL - [5:0] */
  38. #define WM831X_CS1_ISEL_SHIFT 0 /* CS1_ISEL - [5:0] */
  39. #define WM831X_CS1_ISEL_WIDTH 6 /* CS1_ISEL - [5:0] */
  40. /*
  41. * R16463 (0x404F) - Current Sink 2
  42. */
  43. #define WM831X_CS2_ENA 0x8000 /* CS2_ENA */
  44. #define WM831X_CS2_ENA_MASK 0x8000 /* CS2_ENA */
  45. #define WM831X_CS2_ENA_SHIFT 15 /* CS2_ENA */
  46. #define WM831X_CS2_ENA_WIDTH 1 /* CS2_ENA */
  47. #define WM831X_CS2_DRIVE 0x4000 /* CS2_DRIVE */
  48. #define WM831X_CS2_DRIVE_MASK 0x4000 /* CS2_DRIVE */
  49. #define WM831X_CS2_DRIVE_SHIFT 14 /* CS2_DRIVE */
  50. #define WM831X_CS2_DRIVE_WIDTH 1 /* CS2_DRIVE */
  51. #define WM831X_CS2_SLPENA 0x1000 /* CS2_SLPENA */
  52. #define WM831X_CS2_SLPENA_MASK 0x1000 /* CS2_SLPENA */
  53. #define WM831X_CS2_SLPENA_SHIFT 12 /* CS2_SLPENA */
  54. #define WM831X_CS2_SLPENA_WIDTH 1 /* CS2_SLPENA */
  55. #define WM831X_CS2_OFF_RAMP_MASK 0x0C00 /* CS2_OFF_RAMP - [11:10] */
  56. #define WM831X_CS2_OFF_RAMP_SHIFT 10 /* CS2_OFF_RAMP - [11:10] */
  57. #define WM831X_CS2_OFF_RAMP_WIDTH 2 /* CS2_OFF_RAMP - [11:10] */
  58. #define WM831X_CS2_ON_RAMP_MASK 0x0300 /* CS2_ON_RAMP - [9:8] */
  59. #define WM831X_CS2_ON_RAMP_SHIFT 8 /* CS2_ON_RAMP - [9:8] */
  60. #define WM831X_CS2_ON_RAMP_WIDTH 2 /* CS2_ON_RAMP - [9:8] */
  61. #define WM831X_CS2_ISEL_MASK 0x003F /* CS2_ISEL - [5:0] */
  62. #define WM831X_CS2_ISEL_SHIFT 0 /* CS2_ISEL - [5:0] */
  63. #define WM831X_CS2_ISEL_WIDTH 6 /* CS2_ISEL - [5:0] */
  64. /*
  65. * R16464 (0x4050) - DCDC Enable
  66. */
  67. #define WM831X_EPE2_ENA 0x0080 /* EPE2_ENA */
  68. #define WM831X_EPE2_ENA_MASK 0x0080 /* EPE2_ENA */
  69. #define WM831X_EPE2_ENA_SHIFT 7 /* EPE2_ENA */
  70. #define WM831X_EPE2_ENA_WIDTH 1 /* EPE2_ENA */
  71. #define WM831X_EPE1_ENA 0x0040 /* EPE1_ENA */
  72. #define WM831X_EPE1_ENA_MASK 0x0040 /* EPE1_ENA */
  73. #define WM831X_EPE1_ENA_SHIFT 6 /* EPE1_ENA */
  74. #define WM831X_EPE1_ENA_WIDTH 1 /* EPE1_ENA */
  75. #define WM831X_DC4_ENA 0x0008 /* DC4_ENA */
  76. #define WM831X_DC4_ENA_MASK 0x0008 /* DC4_ENA */
  77. #define WM831X_DC4_ENA_SHIFT 3 /* DC4_ENA */
  78. #define WM831X_DC4_ENA_WIDTH 1 /* DC4_ENA */
  79. #define WM831X_DC3_ENA 0x0004 /* DC3_ENA */
  80. #define WM831X_DC3_ENA_MASK 0x0004 /* DC3_ENA */
  81. #define WM831X_DC3_ENA_SHIFT 2 /* DC3_ENA */
  82. #define WM831X_DC3_ENA_WIDTH 1 /* DC3_ENA */
  83. #define WM831X_DC2_ENA 0x0002 /* DC2_ENA */
  84. #define WM831X_DC2_ENA_MASK 0x0002 /* DC2_ENA */
  85. #define WM831X_DC2_ENA_SHIFT 1 /* DC2_ENA */
  86. #define WM831X_DC2_ENA_WIDTH 1 /* DC2_ENA */
  87. #define WM831X_DC1_ENA 0x0001 /* DC1_ENA */
  88. #define WM831X_DC1_ENA_MASK 0x0001 /* DC1_ENA */
  89. #define WM831X_DC1_ENA_SHIFT 0 /* DC1_ENA */
  90. #define WM831X_DC1_ENA_WIDTH 1 /* DC1_ENA */
  91. /*
  92. * R16465 (0x4051) - LDO Enable
  93. */
  94. #define WM831X_LDO11_ENA 0x0400 /* LDO11_ENA */
  95. #define WM831X_LDO11_ENA_MASK 0x0400 /* LDO11_ENA */
  96. #define WM831X_LDO11_ENA_SHIFT 10 /* LDO11_ENA */
  97. #define WM831X_LDO11_ENA_WIDTH 1 /* LDO11_ENA */
  98. #define WM831X_LDO10_ENA 0x0200 /* LDO10_ENA */
  99. #define WM831X_LDO10_ENA_MASK 0x0200 /* LDO10_ENA */
  100. #define WM831X_LDO10_ENA_SHIFT 9 /* LDO10_ENA */
  101. #define WM831X_LDO10_ENA_WIDTH 1 /* LDO10_ENA */
  102. #define WM831X_LDO9_ENA 0x0100 /* LDO9_ENA */
  103. #define WM831X_LDO9_ENA_MASK 0x0100 /* LDO9_ENA */
  104. #define WM831X_LDO9_ENA_SHIFT 8 /* LDO9_ENA */
  105. #define WM831X_LDO9_ENA_WIDTH 1 /* LDO9_ENA */
  106. #define WM831X_LDO8_ENA 0x0080 /* LDO8_ENA */
  107. #define WM831X_LDO8_ENA_MASK 0x0080 /* LDO8_ENA */
  108. #define WM831X_LDO8_ENA_SHIFT 7 /* LDO8_ENA */
  109. #define WM831X_LDO8_ENA_WIDTH 1 /* LDO8_ENA */
  110. #define WM831X_LDO7_ENA 0x0040 /* LDO7_ENA */
  111. #define WM831X_LDO7_ENA_MASK 0x0040 /* LDO7_ENA */
  112. #define WM831X_LDO7_ENA_SHIFT 6 /* LDO7_ENA */
  113. #define WM831X_LDO7_ENA_WIDTH 1 /* LDO7_ENA */
  114. #define WM831X_LDO6_ENA 0x0020 /* LDO6_ENA */
  115. #define WM831X_LDO6_ENA_MASK 0x0020 /* LDO6_ENA */
  116. #define WM831X_LDO6_ENA_SHIFT 5 /* LDO6_ENA */
  117. #define WM831X_LDO6_ENA_WIDTH 1 /* LDO6_ENA */
  118. #define WM831X_LDO5_ENA 0x0010 /* LDO5_ENA */
  119. #define WM831X_LDO5_ENA_MASK 0x0010 /* LDO5_ENA */
  120. #define WM831X_LDO5_ENA_SHIFT 4 /* LDO5_ENA */
  121. #define WM831X_LDO5_ENA_WIDTH 1 /* LDO5_ENA */
  122. #define WM831X_LDO4_ENA 0x0008 /* LDO4_ENA */
  123. #define WM831X_LDO4_ENA_MASK 0x0008 /* LDO4_ENA */
  124. #define WM831X_LDO4_ENA_SHIFT 3 /* LDO4_ENA */
  125. #define WM831X_LDO4_ENA_WIDTH 1 /* LDO4_ENA */
  126. #define WM831X_LDO3_ENA 0x0004 /* LDO3_ENA */
  127. #define WM831X_LDO3_ENA_MASK 0x0004 /* LDO3_ENA */
  128. #define WM831X_LDO3_ENA_SHIFT 2 /* LDO3_ENA */
  129. #define WM831X_LDO3_ENA_WIDTH 1 /* LDO3_ENA */
  130. #define WM831X_LDO2_ENA 0x0002 /* LDO2_ENA */
  131. #define WM831X_LDO2_ENA_MASK 0x0002 /* LDO2_ENA */
  132. #define WM831X_LDO2_ENA_SHIFT 1 /* LDO2_ENA */
  133. #define WM831X_LDO2_ENA_WIDTH 1 /* LDO2_ENA */
  134. #define WM831X_LDO1_ENA 0x0001 /* LDO1_ENA */
  135. #define WM831X_LDO1_ENA_MASK 0x0001 /* LDO1_ENA */
  136. #define WM831X_LDO1_ENA_SHIFT 0 /* LDO1_ENA */
  137. #define WM831X_LDO1_ENA_WIDTH 1 /* LDO1_ENA */
  138. /*
  139. * R16466 (0x4052) - DCDC Status
  140. */
  141. #define WM831X_EPE2_STS 0x0080 /* EPE2_STS */
  142. #define WM831X_EPE2_STS_MASK 0x0080 /* EPE2_STS */
  143. #define WM831X_EPE2_STS_SHIFT 7 /* EPE2_STS */
  144. #define WM831X_EPE2_STS_WIDTH 1 /* EPE2_STS */
  145. #define WM831X_EPE1_STS 0x0040 /* EPE1_STS */
  146. #define WM831X_EPE1_STS_MASK 0x0040 /* EPE1_STS */
  147. #define WM831X_EPE1_STS_SHIFT 6 /* EPE1_STS */
  148. #define WM831X_EPE1_STS_WIDTH 1 /* EPE1_STS */
  149. #define WM831X_DC4_STS 0x0008 /* DC4_STS */
  150. #define WM831X_DC4_STS_MASK 0x0008 /* DC4_STS */
  151. #define WM831X_DC4_STS_SHIFT 3 /* DC4_STS */
  152. #define WM831X_DC4_STS_WIDTH 1 /* DC4_STS */
  153. #define WM831X_DC3_STS 0x0004 /* DC3_STS */
  154. #define WM831X_DC3_STS_MASK 0x0004 /* DC3_STS */
  155. #define WM831X_DC3_STS_SHIFT 2 /* DC3_STS */
  156. #define WM831X_DC3_STS_WIDTH 1 /* DC3_STS */
  157. #define WM831X_DC2_STS 0x0002 /* DC2_STS */
  158. #define WM831X_DC2_STS_MASK 0x0002 /* DC2_STS */
  159. #define WM831X_DC2_STS_SHIFT 1 /* DC2_STS */
  160. #define WM831X_DC2_STS_WIDTH 1 /* DC2_STS */
  161. #define WM831X_DC1_STS 0x0001 /* DC1_STS */
  162. #define WM831X_DC1_STS_MASK 0x0001 /* DC1_STS */
  163. #define WM831X_DC1_STS_SHIFT 0 /* DC1_STS */
  164. #define WM831X_DC1_STS_WIDTH 1 /* DC1_STS */
  165. /*
  166. * R16467 (0x4053) - LDO Status
  167. */
  168. #define WM831X_LDO11_STS 0x0400 /* LDO11_STS */
  169. #define WM831X_LDO11_STS_MASK 0x0400 /* LDO11_STS */
  170. #define WM831X_LDO11_STS_SHIFT 10 /* LDO11_STS */
  171. #define WM831X_LDO11_STS_WIDTH 1 /* LDO11_STS */
  172. #define WM831X_LDO10_STS 0x0200 /* LDO10_STS */
  173. #define WM831X_LDO10_STS_MASK 0x0200 /* LDO10_STS */
  174. #define WM831X_LDO10_STS_SHIFT 9 /* LDO10_STS */
  175. #define WM831X_LDO10_STS_WIDTH 1 /* LDO10_STS */
  176. #define WM831X_LDO9_STS 0x0100 /* LDO9_STS */
  177. #define WM831X_LDO9_STS_MASK 0x0100 /* LDO9_STS */
  178. #define WM831X_LDO9_STS_SHIFT 8 /* LDO9_STS */
  179. #define WM831X_LDO9_STS_WIDTH 1 /* LDO9_STS */
  180. #define WM831X_LDO8_STS 0x0080 /* LDO8_STS */
  181. #define WM831X_LDO8_STS_MASK 0x0080 /* LDO8_STS */
  182. #define WM831X_LDO8_STS_SHIFT 7 /* LDO8_STS */
  183. #define WM831X_LDO8_STS_WIDTH 1 /* LDO8_STS */
  184. #define WM831X_LDO7_STS 0x0040 /* LDO7_STS */
  185. #define WM831X_LDO7_STS_MASK 0x0040 /* LDO7_STS */
  186. #define WM831X_LDO7_STS_SHIFT 6 /* LDO7_STS */
  187. #define WM831X_LDO7_STS_WIDTH 1 /* LDO7_STS */
  188. #define WM831X_LDO6_STS 0x0020 /* LDO6_STS */
  189. #define WM831X_LDO6_STS_MASK 0x0020 /* LDO6_STS */
  190. #define WM831X_LDO6_STS_SHIFT 5 /* LDO6_STS */
  191. #define WM831X_LDO6_STS_WIDTH 1 /* LDO6_STS */
  192. #define WM831X_LDO5_STS 0x0010 /* LDO5_STS */
  193. #define WM831X_LDO5_STS_MASK 0x0010 /* LDO5_STS */
  194. #define WM831X_LDO5_STS_SHIFT 4 /* LDO5_STS */
  195. #define WM831X_LDO5_STS_WIDTH 1 /* LDO5_STS */
  196. #define WM831X_LDO4_STS 0x0008 /* LDO4_STS */
  197. #define WM831X_LDO4_STS_MASK 0x0008 /* LDO4_STS */
  198. #define WM831X_LDO4_STS_SHIFT 3 /* LDO4_STS */
  199. #define WM831X_LDO4_STS_WIDTH 1 /* LDO4_STS */
  200. #define WM831X_LDO3_STS 0x0004 /* LDO3_STS */
  201. #define WM831X_LDO3_STS_MASK 0x0004 /* LDO3_STS */
  202. #define WM831X_LDO3_STS_SHIFT 2 /* LDO3_STS */
  203. #define WM831X_LDO3_STS_WIDTH 1 /* LDO3_STS */
  204. #define WM831X_LDO2_STS 0x0002 /* LDO2_STS */
  205. #define WM831X_LDO2_STS_MASK 0x0002 /* LDO2_STS */
  206. #define WM831X_LDO2_STS_SHIFT 1 /* LDO2_STS */
  207. #define WM831X_LDO2_STS_WIDTH 1 /* LDO2_STS */
  208. #define WM831X_LDO1_STS 0x0001 /* LDO1_STS */
  209. #define WM831X_LDO1_STS_MASK 0x0001 /* LDO1_STS */
  210. #define WM831X_LDO1_STS_SHIFT 0 /* LDO1_STS */
  211. #define WM831X_LDO1_STS_WIDTH 1 /* LDO1_STS */
  212. /*
  213. * R16468 (0x4054) - DCDC UV Status
  214. */
  215. #define WM831X_DC2_OV_STS 0x2000 /* DC2_OV_STS */
  216. #define WM831X_DC2_OV_STS_MASK 0x2000 /* DC2_OV_STS */
  217. #define WM831X_DC2_OV_STS_SHIFT 13 /* DC2_OV_STS */
  218. #define WM831X_DC2_OV_STS_WIDTH 1 /* DC2_OV_STS */
  219. #define WM831X_DC1_OV_STS 0x1000 /* DC1_OV_STS */
  220. #define WM831X_DC1_OV_STS_MASK 0x1000 /* DC1_OV_STS */
  221. #define WM831X_DC1_OV_STS_SHIFT 12 /* DC1_OV_STS */
  222. #define WM831X_DC1_OV_STS_WIDTH 1 /* DC1_OV_STS */
  223. #define WM831X_DC2_HC_STS 0x0200 /* DC2_HC_STS */
  224. #define WM831X_DC2_HC_STS_MASK 0x0200 /* DC2_HC_STS */
  225. #define WM831X_DC2_HC_STS_SHIFT 9 /* DC2_HC_STS */
  226. #define WM831X_DC2_HC_STS_WIDTH 1 /* DC2_HC_STS */
  227. #define WM831X_DC1_HC_STS 0x0100 /* DC1_HC_STS */
  228. #define WM831X_DC1_HC_STS_MASK 0x0100 /* DC1_HC_STS */
  229. #define WM831X_DC1_HC_STS_SHIFT 8 /* DC1_HC_STS */
  230. #define WM831X_DC1_HC_STS_WIDTH 1 /* DC1_HC_STS */
  231. #define WM831X_DC4_UV_STS 0x0008 /* DC4_UV_STS */
  232. #define WM831X_DC4_UV_STS_MASK 0x0008 /* DC4_UV_STS */
  233. #define WM831X_DC4_UV_STS_SHIFT 3 /* DC4_UV_STS */
  234. #define WM831X_DC4_UV_STS_WIDTH 1 /* DC4_UV_STS */
  235. #define WM831X_DC3_UV_STS 0x0004 /* DC3_UV_STS */
  236. #define WM831X_DC3_UV_STS_MASK 0x0004 /* DC3_UV_STS */
  237. #define WM831X_DC3_UV_STS_SHIFT 2 /* DC3_UV_STS */
  238. #define WM831X_DC3_UV_STS_WIDTH 1 /* DC3_UV_STS */
  239. #define WM831X_DC2_UV_STS 0x0002 /* DC2_UV_STS */
  240. #define WM831X_DC2_UV_STS_MASK 0x0002 /* DC2_UV_STS */
  241. #define WM831X_DC2_UV_STS_SHIFT 1 /* DC2_UV_STS */
  242. #define WM831X_DC2_UV_STS_WIDTH 1 /* DC2_UV_STS */
  243. #define WM831X_DC1_UV_STS 0x0001 /* DC1_UV_STS */
  244. #define WM831X_DC1_UV_STS_MASK 0x0001 /* DC1_UV_STS */
  245. #define WM831X_DC1_UV_STS_SHIFT 0 /* DC1_UV_STS */
  246. #define WM831X_DC1_UV_STS_WIDTH 1 /* DC1_UV_STS */
  247. /*
  248. * R16469 (0x4055) - LDO UV Status
  249. */
  250. #define WM831X_INTLDO_UV_STS 0x8000 /* INTLDO_UV_STS */
  251. #define WM831X_INTLDO_UV_STS_MASK 0x8000 /* INTLDO_UV_STS */
  252. #define WM831X_INTLDO_UV_STS_SHIFT 15 /* INTLDO_UV_STS */
  253. #define WM831X_INTLDO_UV_STS_WIDTH 1 /* INTLDO_UV_STS */
  254. #define WM831X_LDO10_UV_STS 0x0200 /* LDO10_UV_STS */
  255. #define WM831X_LDO10_UV_STS_MASK 0x0200 /* LDO10_UV_STS */
  256. #define WM831X_LDO10_UV_STS_SHIFT 9 /* LDO10_UV_STS */
  257. #define WM831X_LDO10_UV_STS_WIDTH 1 /* LDO10_UV_STS */
  258. #define WM831X_LDO9_UV_STS 0x0100 /* LDO9_UV_STS */
  259. #define WM831X_LDO9_UV_STS_MASK 0x0100 /* LDO9_UV_STS */
  260. #define WM831X_LDO9_UV_STS_SHIFT 8 /* LDO9_UV_STS */
  261. #define WM831X_LDO9_UV_STS_WIDTH 1 /* LDO9_UV_STS */
  262. #define WM831X_LDO8_UV_STS 0x0080 /* LDO8_UV_STS */
  263. #define WM831X_LDO8_UV_STS_MASK 0x0080 /* LDO8_UV_STS */
  264. #define WM831X_LDO8_UV_STS_SHIFT 7 /* LDO8_UV_STS */
  265. #define WM831X_LDO8_UV_STS_WIDTH 1 /* LDO8_UV_STS */
  266. #define WM831X_LDO7_UV_STS 0x0040 /* LDO7_UV_STS */
  267. #define WM831X_LDO7_UV_STS_MASK 0x0040 /* LDO7_UV_STS */
  268. #define WM831X_LDO7_UV_STS_SHIFT 6 /* LDO7_UV_STS */
  269. #define WM831X_LDO7_UV_STS_WIDTH 1 /* LDO7_UV_STS */
  270. #define WM831X_LDO6_UV_STS 0x0020 /* LDO6_UV_STS */
  271. #define WM831X_LDO6_UV_STS_MASK 0x0020 /* LDO6_UV_STS */
  272. #define WM831X_LDO6_UV_STS_SHIFT 5 /* LDO6_UV_STS */
  273. #define WM831X_LDO6_UV_STS_WIDTH 1 /* LDO6_UV_STS */
  274. #define WM831X_LDO5_UV_STS 0x0010 /* LDO5_UV_STS */
  275. #define WM831X_LDO5_UV_STS_MASK 0x0010 /* LDO5_UV_STS */
  276. #define WM831X_LDO5_UV_STS_SHIFT 4 /* LDO5_UV_STS */
  277. #define WM831X_LDO5_UV_STS_WIDTH 1 /* LDO5_UV_STS */
  278. #define WM831X_LDO4_UV_STS 0x0008 /* LDO4_UV_STS */
  279. #define WM831X_LDO4_UV_STS_MASK 0x0008 /* LDO4_UV_STS */
  280. #define WM831X_LDO4_UV_STS_SHIFT 3 /* LDO4_UV_STS */
  281. #define WM831X_LDO4_UV_STS_WIDTH 1 /* LDO4_UV_STS */
  282. #define WM831X_LDO3_UV_STS 0x0004 /* LDO3_UV_STS */
  283. #define WM831X_LDO3_UV_STS_MASK 0x0004 /* LDO3_UV_STS */
  284. #define WM831X_LDO3_UV_STS_SHIFT 2 /* LDO3_UV_STS */
  285. #define WM831X_LDO3_UV_STS_WIDTH 1 /* LDO3_UV_STS */
  286. #define WM831X_LDO2_UV_STS 0x0002 /* LDO2_UV_STS */
  287. #define WM831X_LDO2_UV_STS_MASK 0x0002 /* LDO2_UV_STS */
  288. #define WM831X_LDO2_UV_STS_SHIFT 1 /* LDO2_UV_STS */
  289. #define WM831X_LDO2_UV_STS_WIDTH 1 /* LDO2_UV_STS */
  290. #define WM831X_LDO1_UV_STS 0x0001 /* LDO1_UV_STS */
  291. #define WM831X_LDO1_UV_STS_MASK 0x0001 /* LDO1_UV_STS */
  292. #define WM831X_LDO1_UV_STS_SHIFT 0 /* LDO1_UV_STS */
  293. #define WM831X_LDO1_UV_STS_WIDTH 1 /* LDO1_UV_STS */
  294. /*
  295. * R16470 (0x4056) - DC1 Control 1
  296. */
  297. #define WM831X_DC1_RATE_MASK 0xC000 /* DC1_RATE - [15:14] */
  298. #define WM831X_DC1_RATE_SHIFT 14 /* DC1_RATE - [15:14] */
  299. #define WM831X_DC1_RATE_WIDTH 2 /* DC1_RATE - [15:14] */
  300. #define WM831X_DC1_PHASE 0x1000 /* DC1_PHASE */
  301. #define WM831X_DC1_PHASE_MASK 0x1000 /* DC1_PHASE */
  302. #define WM831X_DC1_PHASE_SHIFT 12 /* DC1_PHASE */
  303. #define WM831X_DC1_PHASE_WIDTH 1 /* DC1_PHASE */
  304. #define WM831X_DC1_FREQ_MASK 0x0300 /* DC1_FREQ - [9:8] */
  305. #define WM831X_DC1_FREQ_SHIFT 8 /* DC1_FREQ - [9:8] */
  306. #define WM831X_DC1_FREQ_WIDTH 2 /* DC1_FREQ - [9:8] */
  307. #define WM831X_DC1_FLT 0x0080 /* DC1_FLT */
  308. #define WM831X_DC1_FLT_MASK 0x0080 /* DC1_FLT */
  309. #define WM831X_DC1_FLT_SHIFT 7 /* DC1_FLT */
  310. #define WM831X_DC1_FLT_WIDTH 1 /* DC1_FLT */
  311. #define WM831X_DC1_SOFT_START_MASK 0x0030 /* DC1_SOFT_START - [5:4] */
  312. #define WM831X_DC1_SOFT_START_SHIFT 4 /* DC1_SOFT_START - [5:4] */
  313. #define WM831X_DC1_SOFT_START_WIDTH 2 /* DC1_SOFT_START - [5:4] */
  314. #define WM831X_DC1_CAP_MASK 0x0003 /* DC1_CAP - [1:0] */
  315. #define WM831X_DC1_CAP_SHIFT 0 /* DC1_CAP - [1:0] */
  316. #define WM831X_DC1_CAP_WIDTH 2 /* DC1_CAP - [1:0] */
  317. /*
  318. * R16471 (0x4057) - DC1 Control 2
  319. */
  320. #define WM831X_DC1_ERR_ACT_MASK 0xC000 /* DC1_ERR_ACT - [15:14] */
  321. #define WM831X_DC1_ERR_ACT_SHIFT 14 /* DC1_ERR_ACT - [15:14] */
  322. #define WM831X_DC1_ERR_ACT_WIDTH 2 /* DC1_ERR_ACT - [15:14] */
  323. #define WM831X_DC1_HWC_SRC_MASK 0x1800 /* DC1_HWC_SRC - [12:11] */
  324. #define WM831X_DC1_HWC_SRC_SHIFT 11 /* DC1_HWC_SRC - [12:11] */
  325. #define WM831X_DC1_HWC_SRC_WIDTH 2 /* DC1_HWC_SRC - [12:11] */
  326. #define WM831X_DC1_HWC_VSEL 0x0400 /* DC1_HWC_VSEL */
  327. #define WM831X_DC1_HWC_VSEL_MASK 0x0400 /* DC1_HWC_VSEL */
  328. #define WM831X_DC1_HWC_VSEL_SHIFT 10 /* DC1_HWC_VSEL */
  329. #define WM831X_DC1_HWC_VSEL_WIDTH 1 /* DC1_HWC_VSEL */
  330. #define WM831X_DC1_HWC_MODE_MASK 0x0300 /* DC1_HWC_MODE - [9:8] */
  331. #define WM831X_DC1_HWC_MODE_SHIFT 8 /* DC1_HWC_MODE - [9:8] */
  332. #define WM831X_DC1_HWC_MODE_WIDTH 2 /* DC1_HWC_MODE - [9:8] */
  333. #define WM831X_DC1_HC_THR_MASK 0x0070 /* DC1_HC_THR - [6:4] */
  334. #define WM831X_DC1_HC_THR_SHIFT 4 /* DC1_HC_THR - [6:4] */
  335. #define WM831X_DC1_HC_THR_WIDTH 3 /* DC1_HC_THR - [6:4] */
  336. #define WM831X_DC1_HC_IND_ENA 0x0001 /* DC1_HC_IND_ENA */
  337. #define WM831X_DC1_HC_IND_ENA_MASK 0x0001 /* DC1_HC_IND_ENA */
  338. #define WM831X_DC1_HC_IND_ENA_SHIFT 0 /* DC1_HC_IND_ENA */
  339. #define WM831X_DC1_HC_IND_ENA_WIDTH 1 /* DC1_HC_IND_ENA */
  340. /*
  341. * R16472 (0x4058) - DC1 ON Config
  342. */
  343. #define WM831X_DC1_ON_SLOT_MASK 0xE000 /* DC1_ON_SLOT - [15:13] */
  344. #define WM831X_DC1_ON_SLOT_SHIFT 13 /* DC1_ON_SLOT - [15:13] */
  345. #define WM831X_DC1_ON_SLOT_WIDTH 3 /* DC1_ON_SLOT - [15:13] */
  346. #define WM831X_DC1_ON_MODE_MASK 0x0300 /* DC1_ON_MODE - [9:8] */
  347. #define WM831X_DC1_ON_MODE_SHIFT 8 /* DC1_ON_MODE - [9:8] */
  348. #define WM831X_DC1_ON_MODE_WIDTH 2 /* DC1_ON_MODE - [9:8] */
  349. #define WM831X_DC1_ON_VSEL_MASK 0x007F /* DC1_ON_VSEL - [6:0] */
  350. #define WM831X_DC1_ON_VSEL_SHIFT 0 /* DC1_ON_VSEL - [6:0] */
  351. #define WM831X_DC1_ON_VSEL_WIDTH 7 /* DC1_ON_VSEL - [6:0] */
  352. /*
  353. * R16473 (0x4059) - DC1 SLEEP Control
  354. */
  355. #define WM831X_DC1_SLP_SLOT_MASK 0xE000 /* DC1_SLP_SLOT - [15:13] */
  356. #define WM831X_DC1_SLP_SLOT_SHIFT 13 /* DC1_SLP_SLOT - [15:13] */
  357. #define WM831X_DC1_SLP_SLOT_WIDTH 3 /* DC1_SLP_SLOT - [15:13] */
  358. #define WM831X_DC1_SLP_MODE_MASK 0x0300 /* DC1_SLP_MODE - [9:8] */
  359. #define WM831X_DC1_SLP_MODE_SHIFT 8 /* DC1_SLP_MODE - [9:8] */
  360. #define WM831X_DC1_SLP_MODE_WIDTH 2 /* DC1_SLP_MODE - [9:8] */
  361. #define WM831X_DC1_SLP_VSEL_MASK 0x007F /* DC1_SLP_VSEL - [6:0] */
  362. #define WM831X_DC1_SLP_VSEL_SHIFT 0 /* DC1_SLP_VSEL - [6:0] */
  363. #define WM831X_DC1_SLP_VSEL_WIDTH 7 /* DC1_SLP_VSEL - [6:0] */
  364. /*
  365. * R16474 (0x405A) - DC1 DVS Control
  366. */
  367. #define WM831X_DC1_DVS_SRC_MASK 0x1800 /* DC1_DVS_SRC - [12:11] */
  368. #define WM831X_DC1_DVS_SRC_SHIFT 11 /* DC1_DVS_SRC - [12:11] */
  369. #define WM831X_DC1_DVS_SRC_WIDTH 2 /* DC1_DVS_SRC - [12:11] */
  370. #define WM831X_DC1_DVS_VSEL_MASK 0x007F /* DC1_DVS_VSEL - [6:0] */
  371. #define WM831X_DC1_DVS_VSEL_SHIFT 0 /* DC1_DVS_VSEL - [6:0] */
  372. #define WM831X_DC1_DVS_VSEL_WIDTH 7 /* DC1_DVS_VSEL - [6:0] */
  373. /*
  374. * R16475 (0x405B) - DC2 Control 1
  375. */
  376. #define WM831X_DC2_RATE_MASK 0xC000 /* DC2_RATE - [15:14] */
  377. #define WM831X_DC2_RATE_SHIFT 14 /* DC2_RATE - [15:14] */
  378. #define WM831X_DC2_RATE_WIDTH 2 /* DC2_RATE - [15:14] */
  379. #define WM831X_DC2_PHASE 0x1000 /* DC2_PHASE */
  380. #define WM831X_DC2_PHASE_MASK 0x1000 /* DC2_PHASE */
  381. #define WM831X_DC2_PHASE_SHIFT 12 /* DC2_PHASE */
  382. #define WM831X_DC2_PHASE_WIDTH 1 /* DC2_PHASE */
  383. #define WM831X_DC2_FREQ_MASK 0x0300 /* DC2_FREQ - [9:8] */
  384. #define WM831X_DC2_FREQ_SHIFT 8 /* DC2_FREQ - [9:8] */
  385. #define WM831X_DC2_FREQ_WIDTH 2 /* DC2_FREQ - [9:8] */
  386. #define WM831X_DC2_FLT 0x0080 /* DC2_FLT */
  387. #define WM831X_DC2_FLT_MASK 0x0080 /* DC2_FLT */
  388. #define WM831X_DC2_FLT_SHIFT 7 /* DC2_FLT */
  389. #define WM831X_DC2_FLT_WIDTH 1 /* DC2_FLT */
  390. #define WM831X_DC2_SOFT_START_MASK 0x0030 /* DC2_SOFT_START - [5:4] */
  391. #define WM831X_DC2_SOFT_START_SHIFT 4 /* DC2_SOFT_START - [5:4] */
  392. #define WM831X_DC2_SOFT_START_WIDTH 2 /* DC2_SOFT_START - [5:4] */
  393. #define WM831X_DC2_CAP_MASK 0x0003 /* DC2_CAP - [1:0] */
  394. #define WM831X_DC2_CAP_SHIFT 0 /* DC2_CAP - [1:0] */
  395. #define WM831X_DC2_CAP_WIDTH 2 /* DC2_CAP - [1:0] */
  396. /*
  397. * R16476 (0x405C) - DC2 Control 2
  398. */
  399. #define WM831X_DC2_ERR_ACT_MASK 0xC000 /* DC2_ERR_ACT - [15:14] */
  400. #define WM831X_DC2_ERR_ACT_SHIFT 14 /* DC2_ERR_ACT - [15:14] */
  401. #define WM831X_DC2_ERR_ACT_WIDTH 2 /* DC2_ERR_ACT - [15:14] */
  402. #define WM831X_DC2_HWC_SRC_MASK 0x1800 /* DC2_HWC_SRC - [12:11] */
  403. #define WM831X_DC2_HWC_SRC_SHIFT 11 /* DC2_HWC_SRC - [12:11] */
  404. #define WM831X_DC2_HWC_SRC_WIDTH 2 /* DC2_HWC_SRC - [12:11] */
  405. #define WM831X_DC2_HWC_VSEL 0x0400 /* DC2_HWC_VSEL */
  406. #define WM831X_DC2_HWC_VSEL_MASK 0x0400 /* DC2_HWC_VSEL */
  407. #define WM831X_DC2_HWC_VSEL_SHIFT 10 /* DC2_HWC_VSEL */
  408. #define WM831X_DC2_HWC_VSEL_WIDTH 1 /* DC2_HWC_VSEL */
  409. #define WM831X_DC2_HWC_MODE_MASK 0x0300 /* DC2_HWC_MODE - [9:8] */
  410. #define WM831X_DC2_HWC_MODE_SHIFT 8 /* DC2_HWC_MODE - [9:8] */
  411. #define WM831X_DC2_HWC_MODE_WIDTH 2 /* DC2_HWC_MODE - [9:8] */
  412. #define WM831X_DC2_HC_THR_MASK 0x0070 /* DC2_HC_THR - [6:4] */
  413. #define WM831X_DC2_HC_THR_SHIFT 4 /* DC2_HC_THR - [6:4] */
  414. #define WM831X_DC2_HC_THR_WIDTH 3 /* DC2_HC_THR - [6:4] */
  415. #define WM831X_DC2_HC_IND_ENA 0x0001 /* DC2_HC_IND_ENA */
  416. #define WM831X_DC2_HC_IND_ENA_MASK 0x0001 /* DC2_HC_IND_ENA */
  417. #define WM831X_DC2_HC_IND_ENA_SHIFT 0 /* DC2_HC_IND_ENA */
  418. #define WM831X_DC2_HC_IND_ENA_WIDTH 1 /* DC2_HC_IND_ENA */
  419. /*
  420. * R16477 (0x405D) - DC2 ON Config
  421. */
  422. #define WM831X_DC2_ON_SLOT_MASK 0xE000 /* DC2_ON_SLOT - [15:13] */
  423. #define WM831X_DC2_ON_SLOT_SHIFT 13 /* DC2_ON_SLOT - [15:13] */
  424. #define WM831X_DC2_ON_SLOT_WIDTH 3 /* DC2_ON_SLOT - [15:13] */
  425. #define WM831X_DC2_ON_MODE_MASK 0x0300 /* DC2_ON_MODE - [9:8] */
  426. #define WM831X_DC2_ON_MODE_SHIFT 8 /* DC2_ON_MODE - [9:8] */
  427. #define WM831X_DC2_ON_MODE_WIDTH 2 /* DC2_ON_MODE - [9:8] */
  428. #define WM831X_DC2_ON_VSEL_MASK 0x007F /* DC2_ON_VSEL - [6:0] */
  429. #define WM831X_DC2_ON_VSEL_SHIFT 0 /* DC2_ON_VSEL - [6:0] */
  430. #define WM831X_DC2_ON_VSEL_WIDTH 7 /* DC2_ON_VSEL - [6:0] */
  431. /*
  432. * R16478 (0x405E) - DC2 SLEEP Control
  433. */
  434. #define WM831X_DC2_SLP_SLOT_MASK 0xE000 /* DC2_SLP_SLOT - [15:13] */
  435. #define WM831X_DC2_SLP_SLOT_SHIFT 13 /* DC2_SLP_SLOT - [15:13] */
  436. #define WM831X_DC2_SLP_SLOT_WIDTH 3 /* DC2_SLP_SLOT - [15:13] */
  437. #define WM831X_DC2_SLP_MODE_MASK 0x0300 /* DC2_SLP_MODE - [9:8] */
  438. #define WM831X_DC2_SLP_MODE_SHIFT 8 /* DC2_SLP_MODE - [9:8] */
  439. #define WM831X_DC2_SLP_MODE_WIDTH 2 /* DC2_SLP_MODE - [9:8] */
  440. #define WM831X_DC2_SLP_VSEL_MASK 0x007F /* DC2_SLP_VSEL - [6:0] */
  441. #define WM831X_DC2_SLP_VSEL_SHIFT 0 /* DC2_SLP_VSEL - [6:0] */
  442. #define WM831X_DC2_SLP_VSEL_WIDTH 7 /* DC2_SLP_VSEL - [6:0] */
  443. /*
  444. * R16479 (0x405F) - DC2 DVS Control
  445. */
  446. #define WM831X_DC2_DVS_SRC_MASK 0x1800 /* DC2_DVS_SRC - [12:11] */
  447. #define WM831X_DC2_DVS_SRC_SHIFT 11 /* DC2_DVS_SRC - [12:11] */
  448. #define WM831X_DC2_DVS_SRC_WIDTH 2 /* DC2_DVS_SRC - [12:11] */
  449. #define WM831X_DC2_DVS_VSEL_MASK 0x007F /* DC2_DVS_VSEL - [6:0] */
  450. #define WM831X_DC2_DVS_VSEL_SHIFT 0 /* DC2_DVS_VSEL - [6:0] */
  451. #define WM831X_DC2_DVS_VSEL_WIDTH 7 /* DC2_DVS_VSEL - [6:0] */
  452. /*
  453. * R16480 (0x4060) - DC3 Control 1
  454. */
  455. #define WM831X_DC3_PHASE 0x1000 /* DC3_PHASE */
  456. #define WM831X_DC3_PHASE_MASK 0x1000 /* DC3_PHASE */
  457. #define WM831X_DC3_PHASE_SHIFT 12 /* DC3_PHASE */
  458. #define WM831X_DC3_PHASE_WIDTH 1 /* DC3_PHASE */
  459. #define WM831X_DC3_FLT 0x0080 /* DC3_FLT */
  460. #define WM831X_DC3_FLT_MASK 0x0080 /* DC3_FLT */
  461. #define WM831X_DC3_FLT_SHIFT 7 /* DC3_FLT */
  462. #define WM831X_DC3_FLT_WIDTH 1 /* DC3_FLT */
  463. #define WM831X_DC3_SOFT_START_MASK 0x0030 /* DC3_SOFT_START - [5:4] */
  464. #define WM831X_DC3_SOFT_START_SHIFT 4 /* DC3_SOFT_START - [5:4] */
  465. #define WM831X_DC3_SOFT_START_WIDTH 2 /* DC3_SOFT_START - [5:4] */
  466. #define WM831X_DC3_STNBY_LIM_MASK 0x000C /* DC3_STNBY_LIM - [3:2] */
  467. #define WM831X_DC3_STNBY_LIM_SHIFT 2 /* DC3_STNBY_LIM - [3:2] */
  468. #define WM831X_DC3_STNBY_LIM_WIDTH 2 /* DC3_STNBY_LIM - [3:2] */
  469. #define WM831X_DC3_CAP_MASK 0x0003 /* DC3_CAP - [1:0] */
  470. #define WM831X_DC3_CAP_SHIFT 0 /* DC3_CAP - [1:0] */
  471. #define WM831X_DC3_CAP_WIDTH 2 /* DC3_CAP - [1:0] */
  472. /*
  473. * R16481 (0x4061) - DC3 Control 2
  474. */
  475. #define WM831X_DC3_ERR_ACT_MASK 0xC000 /* DC3_ERR_ACT - [15:14] */
  476. #define WM831X_DC3_ERR_ACT_SHIFT 14 /* DC3_ERR_ACT - [15:14] */
  477. #define WM831X_DC3_ERR_ACT_WIDTH 2 /* DC3_ERR_ACT - [15:14] */
  478. #define WM831X_DC3_HWC_SRC_MASK 0x1800 /* DC3_HWC_SRC - [12:11] */
  479. #define WM831X_DC3_HWC_SRC_SHIFT 11 /* DC3_HWC_SRC - [12:11] */
  480. #define WM831X_DC3_HWC_SRC_WIDTH 2 /* DC3_HWC_SRC - [12:11] */
  481. #define WM831X_DC3_HWC_VSEL 0x0400 /* DC3_HWC_VSEL */
  482. #define WM831X_DC3_HWC_VSEL_MASK 0x0400 /* DC3_HWC_VSEL */
  483. #define WM831X_DC3_HWC_VSEL_SHIFT 10 /* DC3_HWC_VSEL */
  484. #define WM831X_DC3_HWC_VSEL_WIDTH 1 /* DC3_HWC_VSEL */
  485. #define WM831X_DC3_HWC_MODE_MASK 0x0300 /* DC3_HWC_MODE - [9:8] */
  486. #define WM831X_DC3_HWC_MODE_SHIFT 8 /* DC3_HWC_MODE - [9:8] */
  487. #define WM831X_DC3_HWC_MODE_WIDTH 2 /* DC3_HWC_MODE - [9:8] */
  488. #define WM831X_DC3_OVP 0x0080 /* DC3_OVP */
  489. #define WM831X_DC3_OVP_MASK 0x0080 /* DC3_OVP */
  490. #define WM831X_DC3_OVP_SHIFT 7 /* DC3_OVP */
  491. #define WM831X_DC3_OVP_WIDTH 1 /* DC3_OVP */
  492. /*
  493. * R16482 (0x4062) - DC3 ON Config
  494. */
  495. #define WM831X_DC3_ON_SLOT_MASK 0xE000 /* DC3_ON_SLOT - [15:13] */
  496. #define WM831X_DC3_ON_SLOT_SHIFT 13 /* DC3_ON_SLOT - [15:13] */
  497. #define WM831X_DC3_ON_SLOT_WIDTH 3 /* DC3_ON_SLOT - [15:13] */
  498. #define WM831X_DC3_ON_MODE_MASK 0x0300 /* DC3_ON_MODE - [9:8] */
  499. #define WM831X_DC3_ON_MODE_SHIFT 8 /* DC3_ON_MODE - [9:8] */
  500. #define WM831X_DC3_ON_MODE_WIDTH 2 /* DC3_ON_MODE - [9:8] */
  501. #define WM831X_DC3_ON_VSEL_MASK 0x007F /* DC3_ON_VSEL - [6:0] */
  502. #define WM831X_DC3_ON_VSEL_SHIFT 0 /* DC3_ON_VSEL - [6:0] */
  503. #define WM831X_DC3_ON_VSEL_WIDTH 7 /* DC3_ON_VSEL - [6:0] */
  504. /*
  505. * R16483 (0x4063) - DC3 SLEEP Control
  506. */
  507. #define WM831X_DC3_SLP_SLOT_MASK 0xE000 /* DC3_SLP_SLOT - [15:13] */
  508. #define WM831X_DC3_SLP_SLOT_SHIFT 13 /* DC3_SLP_SLOT - [15:13] */
  509. #define WM831X_DC3_SLP_SLOT_WIDTH 3 /* DC3_SLP_SLOT - [15:13] */
  510. #define WM831X_DC3_SLP_MODE_MASK 0x0300 /* DC3_SLP_MODE - [9:8] */
  511. #define WM831X_DC3_SLP_MODE_SHIFT 8 /* DC3_SLP_MODE - [9:8] */
  512. #define WM831X_DC3_SLP_MODE_WIDTH 2 /* DC3_SLP_MODE - [9:8] */
  513. #define WM831X_DC3_SLP_VSEL_MASK 0x007F /* DC3_SLP_VSEL - [6:0] */
  514. #define WM831X_DC3_SLP_VSEL_SHIFT 0 /* DC3_SLP_VSEL - [6:0] */
  515. #define WM831X_DC3_SLP_VSEL_WIDTH 7 /* DC3_SLP_VSEL - [6:0] */
  516. /*
  517. * R16484 (0x4064) - DC4 Control
  518. */
  519. #define WM831X_DC4_ERR_ACT_MASK 0xC000 /* DC4_ERR_ACT - [15:14] */
  520. #define WM831X_DC4_ERR_ACT_SHIFT 14 /* DC4_ERR_ACT - [15:14] */
  521. #define WM831X_DC4_ERR_ACT_WIDTH 2 /* DC4_ERR_ACT - [15:14] */
  522. #define WM831X_DC4_HWC_SRC_MASK 0x1800 /* DC4_HWC_SRC - [12:11] */
  523. #define WM831X_DC4_HWC_SRC_SHIFT 11 /* DC4_HWC_SRC - [12:11] */
  524. #define WM831X_DC4_HWC_SRC_WIDTH 2 /* DC4_HWC_SRC - [12:11] */
  525. #define WM831X_DC4_HWC_MODE 0x0100 /* DC4_HWC_MODE */
  526. #define WM831X_DC4_HWC_MODE_MASK 0x0100 /* DC4_HWC_MODE */
  527. #define WM831X_DC4_HWC_MODE_SHIFT 8 /* DC4_HWC_MODE */
  528. #define WM831X_DC4_HWC_MODE_WIDTH 1 /* DC4_HWC_MODE */
  529. #define WM831X_DC4_RANGE_MASK 0x000C /* DC4_RANGE - [3:2] */
  530. #define WM831X_DC4_RANGE_SHIFT 2 /* DC4_RANGE - [3:2] */
  531. #define WM831X_DC4_RANGE_WIDTH 2 /* DC4_RANGE - [3:2] */
  532. #define WM831X_DC4_FBSRC 0x0001 /* DC4_FBSRC */
  533. #define WM831X_DC4_FBSRC_MASK 0x0001 /* DC4_FBSRC */
  534. #define WM831X_DC4_FBSRC_SHIFT 0 /* DC4_FBSRC */
  535. #define WM831X_DC4_FBSRC_WIDTH 1 /* DC4_FBSRC */
  536. /*
  537. * R16485 (0x4065) - DC4 SLEEP Control
  538. */
  539. #define WM831X_DC4_SLPENA 0x0100 /* DC4_SLPENA */
  540. #define WM831X_DC4_SLPENA_MASK 0x0100 /* DC4_SLPENA */
  541. #define WM831X_DC4_SLPENA_SHIFT 8 /* DC4_SLPENA */
  542. #define WM831X_DC4_SLPENA_WIDTH 1 /* DC4_SLPENA */
  543. /*
  544. * R16488 (0x4068) - LDO1 Control
  545. */
  546. #define WM831X_LDO1_ERR_ACT_MASK 0xC000 /* LDO1_ERR_ACT - [15:14] */
  547. #define WM831X_LDO1_ERR_ACT_SHIFT 14 /* LDO1_ERR_ACT - [15:14] */
  548. #define WM831X_LDO1_ERR_ACT_WIDTH 2 /* LDO1_ERR_ACT - [15:14] */
  549. #define WM831X_LDO1_HWC_SRC_MASK 0x1800 /* LDO1_HWC_SRC - [12:11] */
  550. #define WM831X_LDO1_HWC_SRC_SHIFT 11 /* LDO1_HWC_SRC - [12:11] */
  551. #define WM831X_LDO1_HWC_SRC_WIDTH 2 /* LDO1_HWC_SRC - [12:11] */
  552. #define WM831X_LDO1_HWC_VSEL 0x0400 /* LDO1_HWC_VSEL */
  553. #define WM831X_LDO1_HWC_VSEL_MASK 0x0400 /* LDO1_HWC_VSEL */
  554. #define WM831X_LDO1_HWC_VSEL_SHIFT 10 /* LDO1_HWC_VSEL */
  555. #define WM831X_LDO1_HWC_VSEL_WIDTH 1 /* LDO1_HWC_VSEL */
  556. #define WM831X_LDO1_HWC_MODE_MASK 0x0300 /* LDO1_HWC_MODE - [9:8] */
  557. #define WM831X_LDO1_HWC_MODE_SHIFT 8 /* LDO1_HWC_MODE - [9:8] */
  558. #define WM831X_LDO1_HWC_MODE_WIDTH 2 /* LDO1_HWC_MODE - [9:8] */
  559. #define WM831X_LDO1_FLT 0x0080 /* LDO1_FLT */
  560. #define WM831X_LDO1_FLT_MASK 0x0080 /* LDO1_FLT */
  561. #define WM831X_LDO1_FLT_SHIFT 7 /* LDO1_FLT */
  562. #define WM831X_LDO1_FLT_WIDTH 1 /* LDO1_FLT */
  563. #define WM831X_LDO1_SWI 0x0040 /* LDO1_SWI */
  564. #define WM831X_LDO1_SWI_MASK 0x0040 /* LDO1_SWI */
  565. #define WM831X_LDO1_SWI_SHIFT 6 /* LDO1_SWI */
  566. #define WM831X_LDO1_SWI_WIDTH 1 /* LDO1_SWI */
  567. #define WM831X_LDO1_LP_MODE 0x0001 /* LDO1_LP_MODE */
  568. #define WM831X_LDO1_LP_MODE_MASK 0x0001 /* LDO1_LP_MODE */
  569. #define WM831X_LDO1_LP_MODE_SHIFT 0 /* LDO1_LP_MODE */
  570. #define WM831X_LDO1_LP_MODE_WIDTH 1 /* LDO1_LP_MODE */
  571. /*
  572. * R16489 (0x4069) - LDO1 ON Control
  573. */
  574. #define WM831X_LDO1_ON_SLOT_MASK 0xE000 /* LDO1_ON_SLOT - [15:13] */
  575. #define WM831X_LDO1_ON_SLOT_SHIFT 13 /* LDO1_ON_SLOT - [15:13] */
  576. #define WM831X_LDO1_ON_SLOT_WIDTH 3 /* LDO1_ON_SLOT - [15:13] */
  577. #define WM831X_LDO1_ON_MODE 0x0100 /* LDO1_ON_MODE */
  578. #define WM831X_LDO1_ON_MODE_MASK 0x0100 /* LDO1_ON_MODE */
  579. #define WM831X_LDO1_ON_MODE_SHIFT 8 /* LDO1_ON_MODE */
  580. #define WM831X_LDO1_ON_MODE_WIDTH 1 /* LDO1_ON_MODE */
  581. #define WM831X_LDO1_ON_VSEL_MASK 0x001F /* LDO1_ON_VSEL - [4:0] */
  582. #define WM831X_LDO1_ON_VSEL_SHIFT 0 /* LDO1_ON_VSEL - [4:0] */
  583. #define WM831X_LDO1_ON_VSEL_WIDTH 5 /* LDO1_ON_VSEL - [4:0] */
  584. /*
  585. * R16490 (0x406A) - LDO1 SLEEP Control
  586. */
  587. #define WM831X_LDO1_SLP_SLOT_MASK 0xE000 /* LDO1_SLP_SLOT - [15:13] */
  588. #define WM831X_LDO1_SLP_SLOT_SHIFT 13 /* LDO1_SLP_SLOT - [15:13] */
  589. #define WM831X_LDO1_SLP_SLOT_WIDTH 3 /* LDO1_SLP_SLOT - [15:13] */
  590. #define WM831X_LDO1_SLP_MODE 0x0100 /* LDO1_SLP_MODE */
  591. #define WM831X_LDO1_SLP_MODE_MASK 0x0100 /* LDO1_SLP_MODE */
  592. #define WM831X_LDO1_SLP_MODE_SHIFT 8 /* LDO1_SLP_MODE */
  593. #define WM831X_LDO1_SLP_MODE_WIDTH 1 /* LDO1_SLP_MODE */
  594. #define WM831X_LDO1_SLP_VSEL_MASK 0x001F /* LDO1_SLP_VSEL - [4:0] */
  595. #define WM831X_LDO1_SLP_VSEL_SHIFT 0 /* LDO1_SLP_VSEL - [4:0] */
  596. #define WM831X_LDO1_SLP_VSEL_WIDTH 5 /* LDO1_SLP_VSEL - [4:0] */
  597. /*
  598. * R16491 (0x406B) - LDO2 Control
  599. */
  600. #define WM831X_LDO2_ERR_ACT_MASK 0xC000 /* LDO2_ERR_ACT - [15:14] */
  601. #define WM831X_LDO2_ERR_ACT_SHIFT 14 /* LDO2_ERR_ACT - [15:14] */
  602. #define WM831X_LDO2_ERR_ACT_WIDTH 2 /* LDO2_ERR_ACT - [15:14] */
  603. #define WM831X_LDO2_HWC_SRC_MASK 0x1800 /* LDO2_HWC_SRC - [12:11] */
  604. #define WM831X_LDO2_HWC_SRC_SHIFT 11 /* LDO2_HWC_SRC - [12:11] */
  605. #define WM831X_LDO2_HWC_SRC_WIDTH 2 /* LDO2_HWC_SRC - [12:11] */
  606. #define WM831X_LDO2_HWC_VSEL 0x0400 /* LDO2_HWC_VSEL */
  607. #define WM831X_LDO2_HWC_VSEL_MASK 0x0400 /* LDO2_HWC_VSEL */
  608. #define WM831X_LDO2_HWC_VSEL_SHIFT 10 /* LDO2_HWC_VSEL */
  609. #define WM831X_LDO2_HWC_VSEL_WIDTH 1 /* LDO2_HWC_VSEL */
  610. #define WM831X_LDO2_HWC_MODE_MASK 0x0300 /* LDO2_HWC_MODE - [9:8] */
  611. #define WM831X_LDO2_HWC_MODE_SHIFT 8 /* LDO2_HWC_MODE - [9:8] */
  612. #define WM831X_LDO2_HWC_MODE_WIDTH 2 /* LDO2_HWC_MODE - [9:8] */
  613. #define WM831X_LDO2_FLT 0x0080 /* LDO2_FLT */
  614. #define WM831X_LDO2_FLT_MASK 0x0080 /* LDO2_FLT */
  615. #define WM831X_LDO2_FLT_SHIFT 7 /* LDO2_FLT */
  616. #define WM831X_LDO2_FLT_WIDTH 1 /* LDO2_FLT */
  617. #define WM831X_LDO2_SWI 0x0040 /* LDO2_SWI */
  618. #define WM831X_LDO2_SWI_MASK 0x0040 /* LDO2_SWI */
  619. #define WM831X_LDO2_SWI_SHIFT 6 /* LDO2_SWI */
  620. #define WM831X_LDO2_SWI_WIDTH 1 /* LDO2_SWI */
  621. #define WM831X_LDO2_LP_MODE 0x0001 /* LDO2_LP_MODE */
  622. #define WM831X_LDO2_LP_MODE_MASK 0x0001 /* LDO2_LP_MODE */
  623. #define WM831X_LDO2_LP_MODE_SHIFT 0 /* LDO2_LP_MODE */
  624. #define WM831X_LDO2_LP_MODE_WIDTH 1 /* LDO2_LP_MODE */
  625. /*
  626. * R16492 (0x406C) - LDO2 ON Control
  627. */
  628. #define WM831X_LDO2_ON_SLOT_MASK 0xE000 /* LDO2_ON_SLOT - [15:13] */
  629. #define WM831X_LDO2_ON_SLOT_SHIFT 13 /* LDO2_ON_SLOT - [15:13] */
  630. #define WM831X_LDO2_ON_SLOT_WIDTH 3 /* LDO2_ON_SLOT - [15:13] */
  631. #define WM831X_LDO2_ON_MODE 0x0100 /* LDO2_ON_MODE */
  632. #define WM831X_LDO2_ON_MODE_MASK 0x0100 /* LDO2_ON_MODE */
  633. #define WM831X_LDO2_ON_MODE_SHIFT 8 /* LDO2_ON_MODE */
  634. #define WM831X_LDO2_ON_MODE_WIDTH 1 /* LDO2_ON_MODE */
  635. #define WM831X_LDO2_ON_VSEL_MASK 0x001F /* LDO2_ON_VSEL - [4:0] */
  636. #define WM831X_LDO2_ON_VSEL_SHIFT 0 /* LDO2_ON_VSEL - [4:0] */
  637. #define WM831X_LDO2_ON_VSEL_WIDTH 5 /* LDO2_ON_VSEL - [4:0] */
  638. /*
  639. * R16493 (0x406D) - LDO2 SLEEP Control
  640. */
  641. #define WM831X_LDO2_SLP_SLOT_MASK 0xE000 /* LDO2_SLP_SLOT - [15:13] */
  642. #define WM831X_LDO2_SLP_SLOT_SHIFT 13 /* LDO2_SLP_SLOT - [15:13] */
  643. #define WM831X_LDO2_SLP_SLOT_WIDTH 3 /* LDO2_SLP_SLOT - [15:13] */
  644. #define WM831X_LDO2_SLP_MODE 0x0100 /* LDO2_SLP_MODE */
  645. #define WM831X_LDO2_SLP_MODE_MASK 0x0100 /* LDO2_SLP_MODE */
  646. #define WM831X_LDO2_SLP_MODE_SHIFT 8 /* LDO2_SLP_MODE */
  647. #define WM831X_LDO2_SLP_MODE_WIDTH 1 /* LDO2_SLP_MODE */
  648. #define WM831X_LDO2_SLP_VSEL_MASK 0x001F /* LDO2_SLP_VSEL - [4:0] */
  649. #define WM831X_LDO2_SLP_VSEL_SHIFT 0 /* LDO2_SLP_VSEL - [4:0] */
  650. #define WM831X_LDO2_SLP_VSEL_WIDTH 5 /* LDO2_SLP_VSEL - [4:0] */
  651. /*
  652. * R16494 (0x406E) - LDO3 Control
  653. */
  654. #define WM831X_LDO3_ERR_ACT_MASK 0xC000 /* LDO3_ERR_ACT - [15:14] */
  655. #define WM831X_LDO3_ERR_ACT_SHIFT 14 /* LDO3_ERR_ACT - [15:14] */
  656. #define WM831X_LDO3_ERR_ACT_WIDTH 2 /* LDO3_ERR_ACT - [15:14] */
  657. #define WM831X_LDO3_HWC_SRC_MASK 0x1800 /* LDO3_HWC_SRC - [12:11] */
  658. #define WM831X_LDO3_HWC_SRC_SHIFT 11 /* LDO3_HWC_SRC - [12:11] */
  659. #define WM831X_LDO3_HWC_SRC_WIDTH 2 /* LDO3_HWC_SRC - [12:11] */
  660. #define WM831X_LDO3_HWC_VSEL 0x0400 /* LDO3_HWC_VSEL */
  661. #define WM831X_LDO3_HWC_VSEL_MASK 0x0400 /* LDO3_HWC_VSEL */
  662. #define WM831X_LDO3_HWC_VSEL_SHIFT 10 /* LDO3_HWC_VSEL */
  663. #define WM831X_LDO3_HWC_VSEL_WIDTH 1 /* LDO3_HWC_VSEL */
  664. #define WM831X_LDO3_HWC_MODE_MASK 0x0300 /* LDO3_HWC_MODE - [9:8] */
  665. #define WM831X_LDO3_HWC_MODE_SHIFT 8 /* LDO3_HWC_MODE - [9:8] */
  666. #define WM831X_LDO3_HWC_MODE_WIDTH 2 /* LDO3_HWC_MODE - [9:8] */
  667. #define WM831X_LDO3_FLT 0x0080 /* LDO3_FLT */
  668. #define WM831X_LDO3_FLT_MASK 0x0080 /* LDO3_FLT */
  669. #define WM831X_LDO3_FLT_SHIFT 7 /* LDO3_FLT */
  670. #define WM831X_LDO3_FLT_WIDTH 1 /* LDO3_FLT */
  671. #define WM831X_LDO3_SWI 0x0040 /* LDO3_SWI */
  672. #define WM831X_LDO3_SWI_MASK 0x0040 /* LDO3_SWI */
  673. #define WM831X_LDO3_SWI_SHIFT 6 /* LDO3_SWI */
  674. #define WM831X_LDO3_SWI_WIDTH 1 /* LDO3_SWI */
  675. #define WM831X_LDO3_LP_MODE 0x0001 /* LDO3_LP_MODE */
  676. #define WM831X_LDO3_LP_MODE_MASK 0x0001 /* LDO3_LP_MODE */
  677. #define WM831X_LDO3_LP_MODE_SHIFT 0 /* LDO3_LP_MODE */
  678. #define WM831X_LDO3_LP_MODE_WIDTH 1 /* LDO3_LP_MODE */
  679. /*
  680. * R16495 (0x406F) - LDO3 ON Control
  681. */
  682. #define WM831X_LDO3_ON_SLOT_MASK 0xE000 /* LDO3_ON_SLOT - [15:13] */
  683. #define WM831X_LDO3_ON_SLOT_SHIFT 13 /* LDO3_ON_SLOT - [15:13] */
  684. #define WM831X_LDO3_ON_SLOT_WIDTH 3 /* LDO3_ON_SLOT - [15:13] */
  685. #define WM831X_LDO3_ON_MODE 0x0100 /* LDO3_ON_MODE */
  686. #define WM831X_LDO3_ON_MODE_MASK 0x0100 /* LDO3_ON_MODE */
  687. #define WM831X_LDO3_ON_MODE_SHIFT 8 /* LDO3_ON_MODE */
  688. #define WM831X_LDO3_ON_MODE_WIDTH 1 /* LDO3_ON_MODE */
  689. #define WM831X_LDO3_ON_VSEL_MASK 0x001F /* LDO3_ON_VSEL - [4:0] */
  690. #define WM831X_LDO3_ON_VSEL_SHIFT 0 /* LDO3_ON_VSEL - [4:0] */
  691. #define WM831X_LDO3_ON_VSEL_WIDTH 5 /* LDO3_ON_VSEL - [4:0] */
  692. /*
  693. * R16496 (0x4070) - LDO3 SLEEP Control
  694. */
  695. #define WM831X_LDO3_SLP_SLOT_MASK 0xE000 /* LDO3_SLP_SLOT - [15:13] */
  696. #define WM831X_LDO3_SLP_SLOT_SHIFT 13 /* LDO3_SLP_SLOT - [15:13] */
  697. #define WM831X_LDO3_SLP_SLOT_WIDTH 3 /* LDO3_SLP_SLOT - [15:13] */
  698. #define WM831X_LDO3_SLP_MODE 0x0100 /* LDO3_SLP_MODE */
  699. #define WM831X_LDO3_SLP_MODE_MASK 0x0100 /* LDO3_SLP_MODE */
  700. #define WM831X_LDO3_SLP_MODE_SHIFT 8 /* LDO3_SLP_MODE */
  701. #define WM831X_LDO3_SLP_MODE_WIDTH 1 /* LDO3_SLP_MODE */
  702. #define WM831X_LDO3_SLP_VSEL_MASK 0x001F /* LDO3_SLP_VSEL - [4:0] */
  703. #define WM831X_LDO3_SLP_VSEL_SHIFT 0 /* LDO3_SLP_VSEL - [4:0] */
  704. #define WM831X_LDO3_SLP_VSEL_WIDTH 5 /* LDO3_SLP_VSEL - [4:0] */
  705. /*
  706. * R16497 (0x4071) - LDO4 Control
  707. */
  708. #define WM831X_LDO4_ERR_ACT_MASK 0xC000 /* LDO4_ERR_ACT - [15:14] */
  709. #define WM831X_LDO4_ERR_ACT_SHIFT 14 /* LDO4_ERR_ACT - [15:14] */
  710. #define WM831X_LDO4_ERR_ACT_WIDTH 2 /* LDO4_ERR_ACT - [15:14] */
  711. #define WM831X_LDO4_HWC_SRC_MASK 0x1800 /* LDO4_HWC_SRC - [12:11] */
  712. #define WM831X_LDO4_HWC_SRC_SHIFT 11 /* LDO4_HWC_SRC - [12:11] */
  713. #define WM831X_LDO4_HWC_SRC_WIDTH 2 /* LDO4_HWC_SRC - [12:11] */
  714. #define WM831X_LDO4_HWC_VSEL 0x0400 /* LDO4_HWC_VSEL */
  715. #define WM831X_LDO4_HWC_VSEL_MASK 0x0400 /* LDO4_HWC_VSEL */
  716. #define WM831X_LDO4_HWC_VSEL_SHIFT 10 /* LDO4_HWC_VSEL */
  717. #define WM831X_LDO4_HWC_VSEL_WIDTH 1 /* LDO4_HWC_VSEL */
  718. #define WM831X_LDO4_HWC_MODE_MASK 0x0300 /* LDO4_HWC_MODE - [9:8] */
  719. #define WM831X_LDO4_HWC_MODE_SHIFT 8 /* LDO4_HWC_MODE - [9:8] */
  720. #define WM831X_LDO4_HWC_MODE_WIDTH 2 /* LDO4_HWC_MODE - [9:8] */
  721. #define WM831X_LDO4_FLT 0x0080 /* LDO4_FLT */
  722. #define WM831X_LDO4_FLT_MASK 0x0080 /* LDO4_FLT */
  723. #define WM831X_LDO4_FLT_SHIFT 7 /* LDO4_FLT */
  724. #define WM831X_LDO4_FLT_WIDTH 1 /* LDO4_FLT */
  725. #define WM831X_LDO4_SWI 0x0040 /* LDO4_SWI */
  726. #define WM831X_LDO4_SWI_MASK 0x0040 /* LDO4_SWI */
  727. #define WM831X_LDO4_SWI_SHIFT 6 /* LDO4_SWI */
  728. #define WM831X_LDO4_SWI_WIDTH 1 /* LDO4_SWI */
  729. #define WM831X_LDO4_LP_MODE 0x0001 /* LDO4_LP_MODE */
  730. #define WM831X_LDO4_LP_MODE_MASK 0x0001 /* LDO4_LP_MODE */
  731. #define WM831X_LDO4_LP_MODE_SHIFT 0 /* LDO4_LP_MODE */
  732. #define WM831X_LDO4_LP_MODE_WIDTH 1 /* LDO4_LP_MODE */
  733. /*
  734. * R16498 (0x4072) - LDO4 ON Control
  735. */
  736. #define WM831X_LDO4_ON_SLOT_MASK 0xE000 /* LDO4_ON_SLOT - [15:13] */
  737. #define WM831X_LDO4_ON_SLOT_SHIFT 13 /* LDO4_ON_SLOT - [15:13] */
  738. #define WM831X_LDO4_ON_SLOT_WIDTH 3 /* LDO4_ON_SLOT - [15:13] */
  739. #define WM831X_LDO4_ON_MODE 0x0100 /* LDO4_ON_MODE */
  740. #define WM831X_LDO4_ON_MODE_MASK 0x0100 /* LDO4_ON_MODE */
  741. #define WM831X_LDO4_ON_MODE_SHIFT 8 /* LDO4_ON_MODE */
  742. #define WM831X_LDO4_ON_MODE_WIDTH 1 /* LDO4_ON_MODE */
  743. #define WM831X_LDO4_ON_VSEL_MASK 0x001F /* LDO4_ON_VSEL - [4:0] */
  744. #define WM831X_LDO4_ON_VSEL_SHIFT 0 /* LDO4_ON_VSEL - [4:0] */
  745. #define WM831X_LDO4_ON_VSEL_WIDTH 5 /* LDO4_ON_VSEL - [4:0] */
  746. /*
  747. * R16499 (0x4073) - LDO4 SLEEP Control
  748. */
  749. #define WM831X_LDO4_SLP_SLOT_MASK 0xE000 /* LDO4_SLP_SLOT - [15:13] */
  750. #define WM831X_LDO4_SLP_SLOT_SHIFT 13 /* LDO4_SLP_SLOT - [15:13] */
  751. #define WM831X_LDO4_SLP_SLOT_WIDTH 3 /* LDO4_SLP_SLOT - [15:13] */
  752. #define WM831X_LDO4_SLP_MODE 0x0100 /* LDO4_SLP_MODE */
  753. #define WM831X_LDO4_SLP_MODE_MASK 0x0100 /* LDO4_SLP_MODE */
  754. #define WM831X_LDO4_SLP_MODE_SHIFT 8 /* LDO4_SLP_MODE */
  755. #define WM831X_LDO4_SLP_MODE_WIDTH 1 /* LDO4_SLP_MODE */
  756. #define WM831X_LDO4_SLP_VSEL_MASK 0x001F /* LDO4_SLP_VSEL - [4:0] */
  757. #define WM831X_LDO4_SLP_VSEL_SHIFT 0 /* LDO4_SLP_VSEL - [4:0] */
  758. #define WM831X_LDO4_SLP_VSEL_WIDTH 5 /* LDO4_SLP_VSEL - [4:0] */
  759. /*
  760. * R16500 (0x4074) - LDO5 Control
  761. */
  762. #define WM831X_LDO5_ERR_ACT_MASK 0xC000 /* LDO5_ERR_ACT - [15:14] */
  763. #define WM831X_LDO5_ERR_ACT_SHIFT 14 /* LDO5_ERR_ACT - [15:14] */
  764. #define WM831X_LDO5_ERR_ACT_WIDTH 2 /* LDO5_ERR_ACT - [15:14] */
  765. #define WM831X_LDO5_HWC_SRC_MASK 0x1800 /* LDO5_HWC_SRC - [12:11] */
  766. #define WM831X_LDO5_HWC_SRC_SHIFT 11 /* LDO5_HWC_SRC - [12:11] */
  767. #define WM831X_LDO5_HWC_SRC_WIDTH 2 /* LDO5_HWC_SRC - [12:11] */
  768. #define WM831X_LDO5_HWC_VSEL 0x0400 /* LDO5_HWC_VSEL */
  769. #define WM831X_LDO5_HWC_VSEL_MASK 0x0400 /* LDO5_HWC_VSEL */
  770. #define WM831X_LDO5_HWC_VSEL_SHIFT 10 /* LDO5_HWC_VSEL */
  771. #define WM831X_LDO5_HWC_VSEL_WIDTH 1 /* LDO5_HWC_VSEL */
  772. #define WM831X_LDO5_HWC_MODE_MASK 0x0300 /* LDO5_HWC_MODE - [9:8] */
  773. #define WM831X_LDO5_HWC_MODE_SHIFT 8 /* LDO5_HWC_MODE - [9:8] */
  774. #define WM831X_LDO5_HWC_MODE_WIDTH 2 /* LDO5_HWC_MODE - [9:8] */
  775. #define WM831X_LDO5_FLT 0x0080 /* LDO5_FLT */
  776. #define WM831X_LDO5_FLT_MASK 0x0080 /* LDO5_FLT */
  777. #define WM831X_LDO5_FLT_SHIFT 7 /* LDO5_FLT */
  778. #define WM831X_LDO5_FLT_WIDTH 1 /* LDO5_FLT */
  779. #define WM831X_LDO5_SWI 0x0040 /* LDO5_SWI */
  780. #define WM831X_LDO5_SWI_MASK 0x0040 /* LDO5_SWI */
  781. #define WM831X_LDO5_SWI_SHIFT 6 /* LDO5_SWI */
  782. #define WM831X_LDO5_SWI_WIDTH 1 /* LDO5_SWI */
  783. #define WM831X_LDO5_LP_MODE 0x0001 /* LDO5_LP_MODE */
  784. #define WM831X_LDO5_LP_MODE_MASK 0x0001 /* LDO5_LP_MODE */
  785. #define WM831X_LDO5_LP_MODE_SHIFT 0 /* LDO5_LP_MODE */
  786. #define WM831X_LDO5_LP_MODE_WIDTH 1 /* LDO5_LP_MODE */
  787. /*
  788. * R16501 (0x4075) - LDO5 ON Control
  789. */
  790. #define WM831X_LDO5_ON_SLOT_MASK 0xE000 /* LDO5_ON_SLOT - [15:13] */
  791. #define WM831X_LDO5_ON_SLOT_SHIFT 13 /* LDO5_ON_SLOT - [15:13] */
  792. #define WM831X_LDO5_ON_SLOT_WIDTH 3 /* LDO5_ON_SLOT - [15:13] */
  793. #define WM831X_LDO5_ON_MODE 0x0100 /* LDO5_ON_MODE */
  794. #define WM831X_LDO5_ON_MODE_MASK 0x0100 /* LDO5_ON_MODE */
  795. #define WM831X_LDO5_ON_MODE_SHIFT 8 /* LDO5_ON_MODE */
  796. #define WM831X_LDO5_ON_MODE_WIDTH 1 /* LDO5_ON_MODE */
  797. #define WM831X_LDO5_ON_VSEL_MASK 0x001F /* LDO5_ON_VSEL - [4:0] */
  798. #define WM831X_LDO5_ON_VSEL_SHIFT 0 /* LDO5_ON_VSEL - [4:0] */
  799. #define WM831X_LDO5_ON_VSEL_WIDTH 5 /* LDO5_ON_VSEL - [4:0] */
  800. /*
  801. * R16502 (0x4076) - LDO5 SLEEP Control
  802. */
  803. #define WM831X_LDO5_SLP_SLOT_MASK 0xE000 /* LDO5_SLP_SLOT - [15:13] */
  804. #define WM831X_LDO5_SLP_SLOT_SHIFT 13 /* LDO5_SLP_SLOT - [15:13] */
  805. #define WM831X_LDO5_SLP_SLOT_WIDTH 3 /* LDO5_SLP_SLOT - [15:13] */
  806. #define WM831X_LDO5_SLP_MODE 0x0100 /* LDO5_SLP_MODE */
  807. #define WM831X_LDO5_SLP_MODE_MASK 0x0100 /* LDO5_SLP_MODE */
  808. #define WM831X_LDO5_SLP_MODE_SHIFT 8 /* LDO5_SLP_MODE */
  809. #define WM831X_LDO5_SLP_MODE_WIDTH 1 /* LDO5_SLP_MODE */
  810. #define WM831X_LDO5_SLP_VSEL_MASK 0x001F /* LDO5_SLP_VSEL - [4:0] */
  811. #define WM831X_LDO5_SLP_VSEL_SHIFT 0 /* LDO5_SLP_VSEL - [4:0] */
  812. #define WM831X_LDO5_SLP_VSEL_WIDTH 5 /* LDO5_SLP_VSEL - [4:0] */
  813. /*
  814. * R16503 (0x4077) - LDO6 Control
  815. */
  816. #define WM831X_LDO6_ERR_ACT_MASK 0xC000 /* LDO6_ERR_ACT - [15:14] */
  817. #define WM831X_LDO6_ERR_ACT_SHIFT 14 /* LDO6_ERR_ACT - [15:14] */
  818. #define WM831X_LDO6_ERR_ACT_WIDTH 2 /* LDO6_ERR_ACT - [15:14] */
  819. #define WM831X_LDO6_HWC_SRC_MASK 0x1800 /* LDO6_HWC_SRC - [12:11] */
  820. #define WM831X_LDO6_HWC_SRC_SHIFT 11 /* LDO6_HWC_SRC - [12:11] */
  821. #define WM831X_LDO6_HWC_SRC_WIDTH 2 /* LDO6_HWC_SRC - [12:11] */
  822. #define WM831X_LDO6_HWC_VSEL 0x0400 /* LDO6_HWC_VSEL */
  823. #define WM831X_LDO6_HWC_VSEL_MASK 0x0400 /* LDO6_HWC_VSEL */
  824. #define WM831X_LDO6_HWC_VSEL_SHIFT 10 /* LDO6_HWC_VSEL */
  825. #define WM831X_LDO6_HWC_VSEL_WIDTH 1 /* LDO6_HWC_VSEL */
  826. #define WM831X_LDO6_HWC_MODE_MASK 0x0300 /* LDO6_HWC_MODE - [9:8] */
  827. #define WM831X_LDO6_HWC_MODE_SHIFT 8 /* LDO6_HWC_MODE - [9:8] */
  828. #define WM831X_LDO6_HWC_MODE_WIDTH 2 /* LDO6_HWC_MODE - [9:8] */
  829. #define WM831X_LDO6_FLT 0x0080 /* LDO6_FLT */
  830. #define WM831X_LDO6_FLT_MASK 0x0080 /* LDO6_FLT */
  831. #define WM831X_LDO6_FLT_SHIFT 7 /* LDO6_FLT */
  832. #define WM831X_LDO6_FLT_WIDTH 1 /* LDO6_FLT */
  833. #define WM831X_LDO6_SWI 0x0040 /* LDO6_SWI */
  834. #define WM831X_LDO6_SWI_MASK 0x0040 /* LDO6_SWI */
  835. #define WM831X_LDO6_SWI_SHIFT 6 /* LDO6_SWI */
  836. #define WM831X_LDO6_SWI_WIDTH 1 /* LDO6_SWI */
  837. #define WM831X_LDO6_LP_MODE 0x0001 /* LDO6_LP_MODE */
  838. #define WM831X_LDO6_LP_MODE_MASK 0x0001 /* LDO6_LP_MODE */
  839. #define WM831X_LDO6_LP_MODE_SHIFT 0 /* LDO6_LP_MODE */
  840. #define WM831X_LDO6_LP_MODE_WIDTH 1 /* LDO6_LP_MODE */
  841. /*
  842. * R16504 (0x4078) - LDO6 ON Control
  843. */
  844. #define WM831X_LDO6_ON_SLOT_MASK 0xE000 /* LDO6_ON_SLOT - [15:13] */
  845. #define WM831X_LDO6_ON_SLOT_SHIFT 13 /* LDO6_ON_SLOT - [15:13] */
  846. #define WM831X_LDO6_ON_SLOT_WIDTH 3 /* LDO6_ON_SLOT - [15:13] */
  847. #define WM831X_LDO6_ON_MODE 0x0100 /* LDO6_ON_MODE */
  848. #define WM831X_LDO6_ON_MODE_MASK 0x0100 /* LDO6_ON_MODE */
  849. #define WM831X_LDO6_ON_MODE_SHIFT 8 /* LDO6_ON_MODE */
  850. #define WM831X_LDO6_ON_MODE_WIDTH 1 /* LDO6_ON_MODE */
  851. #define WM831X_LDO6_ON_VSEL_MASK 0x001F /* LDO6_ON_VSEL - [4:0] */
  852. #define WM831X_LDO6_ON_VSEL_SHIFT 0 /* LDO6_ON_VSEL - [4:0] */
  853. #define WM831X_LDO6_ON_VSEL_WIDTH 5 /* LDO6_ON_VSEL - [4:0] */
  854. /*
  855. * R16505 (0x4079) - LDO6 SLEEP Control
  856. */
  857. #define WM831X_LDO6_SLP_SLOT_MASK 0xE000 /* LDO6_SLP_SLOT - [15:13] */
  858. #define WM831X_LDO6_SLP_SLOT_SHIFT 13 /* LDO6_SLP_SLOT - [15:13] */
  859. #define WM831X_LDO6_SLP_SLOT_WIDTH 3 /* LDO6_SLP_SLOT - [15:13] */
  860. #define WM831X_LDO6_SLP_MODE 0x0100 /* LDO6_SLP_MODE */
  861. #define WM831X_LDO6_SLP_MODE_MASK 0x0100 /* LDO6_SLP_MODE */
  862. #define WM831X_LDO6_SLP_MODE_SHIFT 8 /* LDO6_SLP_MODE */
  863. #define WM831X_LDO6_SLP_MODE_WIDTH 1 /* LDO6_SLP_MODE */
  864. #define WM831X_LDO6_SLP_VSEL_MASK 0x001F /* LDO6_SLP_VSEL - [4:0] */
  865. #define WM831X_LDO6_SLP_VSEL_SHIFT 0 /* LDO6_SLP_VSEL - [4:0] */
  866. #define WM831X_LDO6_SLP_VSEL_WIDTH 5 /* LDO6_SLP_VSEL - [4:0] */
  867. /*
  868. * R16506 (0x407A) - LDO7 Control
  869. */
  870. #define WM831X_LDO7_ERR_ACT_MASK 0xC000 /* LDO7_ERR_ACT - [15:14] */
  871. #define WM831X_LDO7_ERR_ACT_SHIFT 14 /* LDO7_ERR_ACT - [15:14] */
  872. #define WM831X_LDO7_ERR_ACT_WIDTH 2 /* LDO7_ERR_ACT - [15:14] */
  873. #define WM831X_LDO7_HWC_SRC_MASK 0x1800 /* LDO7_HWC_SRC - [12:11] */
  874. #define WM831X_LDO7_HWC_SRC_SHIFT 11 /* LDO7_HWC_SRC - [12:11] */
  875. #define WM831X_LDO7_HWC_SRC_WIDTH 2 /* LDO7_HWC_SRC - [12:11] */
  876. #define WM831X_LDO7_HWC_VSEL 0x0400 /* LDO7_HWC_VSEL */
  877. #define WM831X_LDO7_HWC_VSEL_MASK 0x0400 /* LDO7_HWC_VSEL */
  878. #define WM831X_LDO7_HWC_VSEL_SHIFT 10 /* LDO7_HWC_VSEL */
  879. #define WM831X_LDO7_HWC_VSEL_WIDTH 1 /* LDO7_HWC_VSEL */
  880. #define WM831X_LDO7_HWC_MODE_MASK 0x0300 /* LDO7_HWC_MODE - [9:8] */
  881. #define WM831X_LDO7_HWC_MODE_SHIFT 8 /* LDO7_HWC_MODE - [9:8] */
  882. #define WM831X_LDO7_HWC_MODE_WIDTH 2 /* LDO7_HWC_MODE - [9:8] */
  883. #define WM831X_LDO7_FLT 0x0080 /* LDO7_FLT */
  884. #define WM831X_LDO7_FLT_MASK 0x0080 /* LDO7_FLT */
  885. #define WM831X_LDO7_FLT_SHIFT 7 /* LDO7_FLT */
  886. #define WM831X_LDO7_FLT_WIDTH 1 /* LDO7_FLT */
  887. #define WM831X_LDO7_SWI 0x0040 /* LDO7_SWI */
  888. #define WM831X_LDO7_SWI_MASK 0x0040 /* LDO7_SWI */
  889. #define WM831X_LDO7_SWI_SHIFT 6 /* LDO7_SWI */
  890. #define WM831X_LDO7_SWI_WIDTH 1 /* LDO7_SWI */
  891. /*
  892. * R16507 (0x407B) - LDO7 ON Control
  893. */
  894. #define WM831X_LDO7_ON_SLOT_MASK 0xE000 /* LDO7_ON_SLOT - [15:13] */
  895. #define WM831X_LDO7_ON_SLOT_SHIFT 13 /* LDO7_ON_SLOT - [15:13] */
  896. #define WM831X_LDO7_ON_SLOT_WIDTH 3 /* LDO7_ON_SLOT - [15:13] */
  897. #define WM831X_LDO7_ON_MODE 0x0100 /* LDO7_ON_MODE */
  898. #define WM831X_LDO7_ON_MODE_MASK 0x0100 /* LDO7_ON_MODE */
  899. #define WM831X_LDO7_ON_MODE_SHIFT 8 /* LDO7_ON_MODE */
  900. #define WM831X_LDO7_ON_MODE_WIDTH 1 /* LDO7_ON_MODE */
  901. #define WM831X_LDO7_ON_VSEL_MASK 0x001F /* LDO7_ON_VSEL - [4:0] */
  902. #define WM831X_LDO7_ON_VSEL_SHIFT 0 /* LDO7_ON_VSEL - [4:0] */
  903. #define WM831X_LDO7_ON_VSEL_WIDTH 5 /* LDO7_ON_VSEL - [4:0] */
  904. /*
  905. * R16508 (0x407C) - LDO7 SLEEP Control
  906. */
  907. #define WM831X_LDO7_SLP_SLOT_MASK 0xE000 /* LDO7_SLP_SLOT - [15:13] */
  908. #define WM831X_LDO7_SLP_SLOT_SHIFT 13 /* LDO7_SLP_SLOT - [15:13] */
  909. #define WM831X_LDO7_SLP_SLOT_WIDTH 3 /* LDO7_SLP_SLOT - [15:13] */
  910. #define WM831X_LDO7_SLP_MODE 0x0100 /* LDO7_SLP_MODE */
  911. #define WM831X_LDO7_SLP_MODE_MASK 0x0100 /* LDO7_SLP_MODE */
  912. #define WM831X_LDO7_SLP_MODE_SHIFT 8 /* LDO7_SLP_MODE */
  913. #define WM831X_LDO7_SLP_MODE_WIDTH 1 /* LDO7_SLP_MODE */
  914. #define WM831X_LDO7_SLP_VSEL_MASK 0x001F /* LDO7_SLP_VSEL - [4:0] */
  915. #define WM831X_LDO7_SLP_VSEL_SHIFT 0 /* LDO7_SLP_VSEL - [4:0] */
  916. #define WM831X_LDO7_SLP_VSEL_WIDTH 5 /* LDO7_SLP_VSEL - [4:0] */
  917. /*
  918. * R16509 (0x407D) - LDO8 Control
  919. */
  920. #define WM831X_LDO8_ERR_ACT_MASK 0xC000 /* LDO8_ERR_ACT - [15:14] */
  921. #define WM831X_LDO8_ERR_ACT_SHIFT 14 /* LDO8_ERR_ACT - [15:14] */
  922. #define WM831X_LDO8_ERR_ACT_WIDTH 2 /* LDO8_ERR_ACT - [15:14] */
  923. #define WM831X_LDO8_HWC_SRC_MASK 0x1800 /* LDO8_HWC_SRC - [12:11] */
  924. #define WM831X_LDO8_HWC_SRC_SHIFT 11 /* LDO8_HWC_SRC - [12:11] */
  925. #define WM831X_LDO8_HWC_SRC_WIDTH 2 /* LDO8_HWC_SRC - [12:11] */
  926. #define WM831X_LDO8_HWC_VSEL 0x0400 /* LDO8_HWC_VSEL */
  927. #define WM831X_LDO8_HWC_VSEL_MASK 0x0400 /* LDO8_HWC_VSEL */
  928. #define WM831X_LDO8_HWC_VSEL_SHIFT 10 /* LDO8_HWC_VSEL */
  929. #define WM831X_LDO8_HWC_VSEL_WIDTH 1 /* LDO8_HWC_VSEL */
  930. #define WM831X_LDO8_HWC_MODE_MASK 0x0300 /* LDO8_HWC_MODE - [9:8] */
  931. #define WM831X_LDO8_HWC_MODE_SHIFT 8 /* LDO8_HWC_MODE - [9:8] */
  932. #define WM831X_LDO8_HWC_MODE_WIDTH 2 /* LDO8_HWC_MODE - [9:8] */
  933. #define WM831X_LDO8_FLT 0x0080 /* LDO8_FLT */
  934. #define WM831X_LDO8_FLT_MASK 0x0080 /* LDO8_FLT */
  935. #define WM831X_LDO8_FLT_SHIFT 7 /* LDO8_FLT */
  936. #define WM831X_LDO8_FLT_WIDTH 1 /* LDO8_FLT */
  937. #define WM831X_LDO8_SWI 0x0040 /* LDO8_SWI */
  938. #define WM831X_LDO8_SWI_MASK 0x0040 /* LDO8_SWI */
  939. #define WM831X_LDO8_SWI_SHIFT 6 /* LDO8_SWI */
  940. #define WM831X_LDO8_SWI_WIDTH 1 /* LDO8_SWI */
  941. /*
  942. * R16510 (0x407E) - LDO8 ON Control
  943. */
  944. #define WM831X_LDO8_ON_SLOT_MASK 0xE000 /* LDO8_ON_SLOT - [15:13] */
  945. #define WM831X_LDO8_ON_SLOT_SHIFT 13 /* LDO8_ON_SLOT - [15:13] */
  946. #define WM831X_LDO8_ON_SLOT_WIDTH 3 /* LDO8_ON_SLOT - [15:13] */
  947. #define WM831X_LDO8_ON_MODE 0x0100 /* LDO8_ON_MODE */
  948. #define WM831X_LDO8_ON_MODE_MASK 0x0100 /* LDO8_ON_MODE */
  949. #define WM831X_LDO8_ON_MODE_SHIFT 8 /* LDO8_ON_MODE */
  950. #define WM831X_LDO8_ON_MODE_WIDTH 1 /* LDO8_ON_MODE */
  951. #define WM831X_LDO8_ON_VSEL_MASK 0x001F /* LDO8_ON_VSEL - [4:0] */
  952. #define WM831X_LDO8_ON_VSEL_SHIFT 0 /* LDO8_ON_VSEL - [4:0] */
  953. #define WM831X_LDO8_ON_VSEL_WIDTH 5 /* LDO8_ON_VSEL - [4:0] */
  954. /*
  955. * R16511 (0x407F) - LDO8 SLEEP Control
  956. */
  957. #define WM831X_LDO8_SLP_SLOT_MASK 0xE000 /* LDO8_SLP_SLOT - [15:13] */
  958. #define WM831X_LDO8_SLP_SLOT_SHIFT 13 /* LDO8_SLP_SLOT - [15:13] */
  959. #define WM831X_LDO8_SLP_SLOT_WIDTH 3 /* LDO8_SLP_SLOT - [15:13] */
  960. #define WM831X_LDO8_SLP_MODE 0x0100 /* LDO8_SLP_MODE */
  961. #define WM831X_LDO8_SLP_MODE_MASK 0x0100 /* LDO8_SLP_MODE */
  962. #define WM831X_LDO8_SLP_MODE_SHIFT 8 /* LDO8_SLP_MODE */
  963. #define WM831X_LDO8_SLP_MODE_WIDTH 1 /* LDO8_SLP_MODE */
  964. #define WM831X_LDO8_SLP_VSEL_MASK 0x001F /* LDO8_SLP_VSEL - [4:0] */
  965. #define WM831X_LDO8_SLP_VSEL_SHIFT 0 /* LDO8_SLP_VSEL - [4:0] */
  966. #define WM831X_LDO8_SLP_VSEL_WIDTH 5 /* LDO8_SLP_VSEL - [4:0] */
  967. /*
  968. * R16512 (0x4080) - LDO9 Control
  969. */
  970. #define WM831X_LDO9_ERR_ACT_MASK 0xC000 /* LDO9_ERR_ACT - [15:14] */
  971. #define WM831X_LDO9_ERR_ACT_SHIFT 14 /* LDO9_ERR_ACT - [15:14] */
  972. #define WM831X_LDO9_ERR_ACT_WIDTH 2 /* LDO9_ERR_ACT - [15:14] */
  973. #define WM831X_LDO9_HWC_SRC_MASK 0x1800 /* LDO9_HWC_SRC - [12:11] */
  974. #define WM831X_LDO9_HWC_SRC_SHIFT 11 /* LDO9_HWC_SRC - [12:11] */
  975. #define WM831X_LDO9_HWC_SRC_WIDTH 2 /* LDO9_HWC_SRC - [12:11] */
  976. #define WM831X_LDO9_HWC_VSEL 0x0400 /* LDO9_HWC_VSEL */
  977. #define WM831X_LDO9_HWC_VSEL_MASK 0x0400 /* LDO9_HWC_VSEL */
  978. #define WM831X_LDO9_HWC_VSEL_SHIFT 10 /* LDO9_HWC_VSEL */
  979. #define WM831X_LDO9_HWC_VSEL_WIDTH 1 /* LDO9_HWC_VSEL */
  980. #define WM831X_LDO9_HWC_MODE_MASK 0x0300 /* LDO9_HWC_MODE - [9:8] */
  981. #define WM831X_LDO9_HWC_MODE_SHIFT 8 /* LDO9_HWC_MODE - [9:8] */
  982. #define WM831X_LDO9_HWC_MODE_WIDTH 2 /* LDO9_HWC_MODE - [9:8] */
  983. #define WM831X_LDO9_FLT 0x0080 /* LDO9_FLT */
  984. #define WM831X_LDO9_FLT_MASK 0x0080 /* LDO9_FLT */
  985. #define WM831X_LDO9_FLT_SHIFT 7 /* LDO9_FLT */
  986. #define WM831X_LDO9_FLT_WIDTH 1 /* LDO9_FLT */
  987. #define WM831X_LDO9_SWI 0x0040 /* LDO9_SWI */
  988. #define WM831X_LDO9_SWI_MASK 0x0040 /* LDO9_SWI */
  989. #define WM831X_LDO9_SWI_SHIFT 6 /* LDO9_SWI */
  990. #define WM831X_LDO9_SWI_WIDTH 1 /* LDO9_SWI */
  991. /*
  992. * R16513 (0x4081) - LDO9 ON Control
  993. */
  994. #define WM831X_LDO9_ON_SLOT_MASK 0xE000 /* LDO9_ON_SLOT - [15:13] */
  995. #define WM831X_LDO9_ON_SLOT_SHIFT 13 /* LDO9_ON_SLOT - [15:13] */
  996. #define WM831X_LDO9_ON_SLOT_WIDTH 3 /* LDO9_ON_SLOT - [15:13] */
  997. #define WM831X_LDO9_ON_MODE 0x0100 /* LDO9_ON_MODE */
  998. #define WM831X_LDO9_ON_MODE_MASK 0x0100 /* LDO9_ON_MODE */
  999. #define WM831X_LDO9_ON_MODE_SHIFT 8 /* LDO9_ON_MODE */
  1000. #define WM831X_LDO9_ON_MODE_WIDTH 1 /* LDO9_ON_MODE */
  1001. #define WM831X_LDO9_ON_VSEL_MASK 0x001F /* LDO9_ON_VSEL - [4:0] */
  1002. #define WM831X_LDO9_ON_VSEL_SHIFT 0 /* LDO9_ON_VSEL - [4:0] */
  1003. #define WM831X_LDO9_ON_VSEL_WIDTH 5 /* LDO9_ON_VSEL - [4:0] */
  1004. /*
  1005. * R16514 (0x4082) - LDO9 SLEEP Control
  1006. */
  1007. #define WM831X_LDO9_SLP_SLOT_MASK 0xE000 /* LDO9_SLP_SLOT - [15:13] */
  1008. #define WM831X_LDO9_SLP_SLOT_SHIFT 13 /* LDO9_SLP_SLOT - [15:13] */
  1009. #define WM831X_LDO9_SLP_SLOT_WIDTH 3 /* LDO9_SLP_SLOT - [15:13] */
  1010. #define WM831X_LDO9_SLP_MODE 0x0100 /* LDO9_SLP_MODE */
  1011. #define WM831X_LDO9_SLP_MODE_MASK 0x0100 /* LDO9_SLP_MODE */
  1012. #define WM831X_LDO9_SLP_MODE_SHIFT 8 /* LDO9_SLP_MODE */
  1013. #define WM831X_LDO9_SLP_MODE_WIDTH 1 /* LDO9_SLP_MODE */
  1014. #define WM831X_LDO9_SLP_VSEL_MASK 0x001F /* LDO9_SLP_VSEL - [4:0] */
  1015. #define WM831X_LDO9_SLP_VSEL_SHIFT 0 /* LDO9_SLP_VSEL - [4:0] */
  1016. #define WM831X_LDO9_SLP_VSEL_WIDTH 5 /* LDO9_SLP_VSEL - [4:0] */
  1017. /*
  1018. * R16515 (0x4083) - LDO10 Control
  1019. */
  1020. #define WM831X_LDO10_ERR_ACT_MASK 0xC000 /* LDO10_ERR_ACT - [15:14] */
  1021. #define WM831X_LDO10_ERR_ACT_SHIFT 14 /* LDO10_ERR_ACT - [15:14] */
  1022. #define WM831X_LDO10_ERR_ACT_WIDTH 2 /* LDO10_ERR_ACT - [15:14] */
  1023. #define WM831X_LDO10_HWC_SRC_MASK 0x1800 /* LDO10_HWC_SRC - [12:11] */
  1024. #define WM831X_LDO10_HWC_SRC_SHIFT 11 /* LDO10_HWC_SRC - [12:11] */
  1025. #define WM831X_LDO10_HWC_SRC_WIDTH 2 /* LDO10_HWC_SRC - [12:11] */
  1026. #define WM831X_LDO10_HWC_VSEL 0x0400 /* LDO10_HWC_VSEL */
  1027. #define WM831X_LDO10_HWC_VSEL_MASK 0x0400 /* LDO10_HWC_VSEL */
  1028. #define WM831X_LDO10_HWC_VSEL_SHIFT 10 /* LDO10_HWC_VSEL */
  1029. #define WM831X_LDO10_HWC_VSEL_WIDTH 1 /* LDO10_HWC_VSEL */
  1030. #define WM831X_LDO10_HWC_MODE_MASK 0x0300 /* LDO10_HWC_MODE - [9:8] */
  1031. #define WM831X_LDO10_HWC_MODE_SHIFT 8 /* LDO10_HWC_MODE - [9:8] */
  1032. #define WM831X_LDO10_HWC_MODE_WIDTH 2 /* LDO10_HWC_MODE - [9:8] */
  1033. #define WM831X_LDO10_FLT 0x0080 /* LDO10_FLT */
  1034. #define WM831X_LDO10_FLT_MASK 0x0080 /* LDO10_FLT */
  1035. #define WM831X_LDO10_FLT_SHIFT 7 /* LDO10_FLT */
  1036. #define WM831X_LDO10_FLT_WIDTH 1 /* LDO10_FLT */
  1037. #define WM831X_LDO10_SWI 0x0040 /* LDO10_SWI */
  1038. #define WM831X_LDO10_SWI_MASK 0x0040 /* LDO10_SWI */
  1039. #define WM831X_LDO10_SWI_SHIFT 6 /* LDO10_SWI */
  1040. #define WM831X_LDO10_SWI_WIDTH 1 /* LDO10_SWI */
  1041. /*
  1042. * R16516 (0x4084) - LDO10 ON Control
  1043. */
  1044. #define WM831X_LDO10_ON_SLOT_MASK 0xE000 /* LDO10_ON_SLOT - [15:13] */
  1045. #define WM831X_LDO10_ON_SLOT_SHIFT 13 /* LDO10_ON_SLOT - [15:13] */
  1046. #define WM831X_LDO10_ON_SLOT_WIDTH 3 /* LDO10_ON_SLOT - [15:13] */
  1047. #define WM831X_LDO10_ON_MODE 0x0100 /* LDO10_ON_MODE */
  1048. #define WM831X_LDO10_ON_MODE_MASK 0x0100 /* LDO10_ON_MODE */
  1049. #define WM831X_LDO10_ON_MODE_SHIFT 8 /* LDO10_ON_MODE */
  1050. #define WM831X_LDO10_ON_MODE_WIDTH 1 /* LDO10_ON_MODE */
  1051. #define WM831X_LDO10_ON_VSEL_MASK 0x001F /* LDO10_ON_VSEL - [4:0] */
  1052. #define WM831X_LDO10_ON_VSEL_SHIFT 0 /* LDO10_ON_VSEL - [4:0] */
  1053. #define WM831X_LDO10_ON_VSEL_WIDTH 5 /* LDO10_ON_VSEL - [4:0] */
  1054. /*
  1055. * R16517 (0x4085) - LDO10 SLEEP Control
  1056. */
  1057. #define WM831X_LDO10_SLP_SLOT_MASK 0xE000 /* LDO10_SLP_SLOT - [15:13] */
  1058. #define WM831X_LDO10_SLP_SLOT_SHIFT 13 /* LDO10_SLP_SLOT - [15:13] */
  1059. #define WM831X_LDO10_SLP_SLOT_WIDTH 3 /* LDO10_SLP_SLOT - [15:13] */
  1060. #define WM831X_LDO10_SLP_MODE 0x0100 /* LDO10_SLP_MODE */
  1061. #define WM831X_LDO10_SLP_MODE_MASK 0x0100 /* LDO10_SLP_MODE */
  1062. #define WM831X_LDO10_SLP_MODE_SHIFT 8 /* LDO10_SLP_MODE */
  1063. #define WM831X_LDO10_SLP_MODE_WIDTH 1 /* LDO10_SLP_MODE */
  1064. #define WM831X_LDO10_SLP_VSEL_MASK 0x001F /* LDO10_SLP_VSEL - [4:0] */
  1065. #define WM831X_LDO10_SLP_VSEL_SHIFT 0 /* LDO10_SLP_VSEL - [4:0] */
  1066. #define WM831X_LDO10_SLP_VSEL_WIDTH 5 /* LDO10_SLP_VSEL - [4:0] */
  1067. /*
  1068. * R16519 (0x4087) - LDO11 ON Control
  1069. */
  1070. #define WM831X_LDO11_ON_SLOT_MASK 0xE000 /* LDO11_ON_SLOT - [15:13] */
  1071. #define WM831X_LDO11_ON_SLOT_SHIFT 13 /* LDO11_ON_SLOT - [15:13] */
  1072. #define WM831X_LDO11_ON_SLOT_WIDTH 3 /* LDO11_ON_SLOT - [15:13] */
  1073. #define WM831X_LDO11_OFFENA 0x1000 /* LDO11_OFFENA */
  1074. #define WM831X_LDO11_OFFENA_MASK 0x1000 /* LDO11_OFFENA */
  1075. #define WM831X_LDO11_OFFENA_SHIFT 12 /* LDO11_OFFENA */
  1076. #define WM831X_LDO11_OFFENA_WIDTH 1 /* LDO11_OFFENA */
  1077. #define WM831X_LDO11_VSEL_SRC 0x0080 /* LDO11_VSEL_SRC */
  1078. #define WM831X_LDO11_VSEL_SRC_MASK 0x0080 /* LDO11_VSEL_SRC */
  1079. #define WM831X_LDO11_VSEL_SRC_SHIFT 7 /* LDO11_VSEL_SRC */
  1080. #define WM831X_LDO11_VSEL_SRC_WIDTH 1 /* LDO11_VSEL_SRC */
  1081. #define WM831X_LDO11_ON_VSEL_MASK 0x000F /* LDO11_ON_VSEL - [3:0] */
  1082. #define WM831X_LDO11_ON_VSEL_SHIFT 0 /* LDO11_ON_VSEL - [3:0] */
  1083. #define WM831X_LDO11_ON_VSEL_WIDTH 4 /* LDO11_ON_VSEL - [3:0] */
  1084. /*
  1085. * R16520 (0x4088) - LDO11 SLEEP Control
  1086. */
  1087. #define WM831X_LDO11_SLP_SLOT_MASK 0xE000 /* LDO11_SLP_SLOT - [15:13] */
  1088. #define WM831X_LDO11_SLP_SLOT_SHIFT 13 /* LDO11_SLP_SLOT - [15:13] */
  1089. #define WM831X_LDO11_SLP_SLOT_WIDTH 3 /* LDO11_SLP_SLOT - [15:13] */
  1090. #define WM831X_LDO11_SLP_VSEL_MASK 0x000F /* LDO11_SLP_VSEL - [3:0] */
  1091. #define WM831X_LDO11_SLP_VSEL_SHIFT 0 /* LDO11_SLP_VSEL - [3:0] */
  1092. #define WM831X_LDO11_SLP_VSEL_WIDTH 4 /* LDO11_SLP_VSEL - [3:0] */
  1093. /*
  1094. * R16526 (0x408E) - Power Good Source 1
  1095. */
  1096. #define WM831X_DC4_OK 0x0008 /* DC4_OK */
  1097. #define WM831X_DC4_OK_MASK 0x0008 /* DC4_OK */
  1098. #define WM831X_DC4_OK_SHIFT 3 /* DC4_OK */
  1099. #define WM831X_DC4_OK_WIDTH 1 /* DC4_OK */
  1100. #define WM831X_DC3_OK 0x0004 /* DC3_OK */
  1101. #define WM831X_DC3_OK_MASK 0x0004 /* DC3_OK */
  1102. #define WM831X_DC3_OK_SHIFT 2 /* DC3_OK */
  1103. #define WM831X_DC3_OK_WIDTH 1 /* DC3_OK */
  1104. #define WM831X_DC2_OK 0x0002 /* DC2_OK */
  1105. #define WM831X_DC2_OK_MASK 0x0002 /* DC2_OK */
  1106. #define WM831X_DC2_OK_SHIFT 1 /* DC2_OK */
  1107. #define WM831X_DC2_OK_WIDTH 1 /* DC2_OK */
  1108. #define WM831X_DC1_OK 0x0001 /* DC1_OK */
  1109. #define WM831X_DC1_OK_MASK 0x0001 /* DC1_OK */
  1110. #define WM831X_DC1_OK_SHIFT 0 /* DC1_OK */
  1111. #define WM831X_DC1_OK_WIDTH 1 /* DC1_OK */
  1112. /*
  1113. * R16527 (0x408F) - Power Good Source 2
  1114. */
  1115. #define WM831X_LDO10_OK 0x0200 /* LDO10_OK */
  1116. #define WM831X_LDO10_OK_MASK 0x0200 /* LDO10_OK */
  1117. #define WM831X_LDO10_OK_SHIFT 9 /* LDO10_OK */
  1118. #define WM831X_LDO10_OK_WIDTH 1 /* LDO10_OK */
  1119. #define WM831X_LDO9_OK 0x0100 /* LDO9_OK */
  1120. #define WM831X_LDO9_OK_MASK 0x0100 /* LDO9_OK */
  1121. #define WM831X_LDO9_OK_SHIFT 8 /* LDO9_OK */
  1122. #define WM831X_LDO9_OK_WIDTH 1 /* LDO9_OK */
  1123. #define WM831X_LDO8_OK 0x0080 /* LDO8_OK */
  1124. #define WM831X_LDO8_OK_MASK 0x0080 /* LDO8_OK */
  1125. #define WM831X_LDO8_OK_SHIFT 7 /* LDO8_OK */
  1126. #define WM831X_LDO8_OK_WIDTH 1 /* LDO8_OK */
  1127. #define WM831X_LDO7_OK 0x0040 /* LDO7_OK */
  1128. #define WM831X_LDO7_OK_MASK 0x0040 /* LDO7_OK */
  1129. #define WM831X_LDO7_OK_SHIFT 6 /* LDO7_OK */
  1130. #define WM831X_LDO7_OK_WIDTH 1 /* LDO7_OK */
  1131. #define WM831X_LDO6_OK 0x0020 /* LDO6_OK */
  1132. #define WM831X_LDO6_OK_MASK 0x0020 /* LDO6_OK */
  1133. #define WM831X_LDO6_OK_SHIFT 5 /* LDO6_OK */
  1134. #define WM831X_LDO6_OK_WIDTH 1 /* LDO6_OK */
  1135. #define WM831X_LDO5_OK 0x0010 /* LDO5_OK */
  1136. #define WM831X_LDO5_OK_MASK 0x0010 /* LDO5_OK */
  1137. #define WM831X_LDO5_OK_SHIFT 4 /* LDO5_OK */
  1138. #define WM831X_LDO5_OK_WIDTH 1 /* LDO5_OK */
  1139. #define WM831X_LDO4_OK 0x0008 /* LDO4_OK */
  1140. #define WM831X_LDO4_OK_MASK 0x0008 /* LDO4_OK */
  1141. #define WM831X_LDO4_OK_SHIFT 3 /* LDO4_OK */
  1142. #define WM831X_LDO4_OK_WIDTH 1 /* LDO4_OK */
  1143. #define WM831X_LDO3_OK 0x0004 /* LDO3_OK */
  1144. #define WM831X_LDO3_OK_MASK 0x0004 /* LDO3_OK */
  1145. #define WM831X_LDO3_OK_SHIFT 2 /* LDO3_OK */
  1146. #define WM831X_LDO3_OK_WIDTH 1 /* LDO3_OK */
  1147. #define WM831X_LDO2_OK 0x0002 /* LDO2_OK */
  1148. #define WM831X_LDO2_OK_MASK 0x0002 /* LDO2_OK */
  1149. #define WM831X_LDO2_OK_SHIFT 1 /* LDO2_OK */
  1150. #define WM831X_LDO2_OK_WIDTH 1 /* LDO2_OK */
  1151. #define WM831X_LDO1_OK 0x0001 /* LDO1_OK */
  1152. #define WM831X_LDO1_OK_MASK 0x0001 /* LDO1_OK */
  1153. #define WM831X_LDO1_OK_SHIFT 0 /* LDO1_OK */
  1154. #define WM831X_LDO1_OK_WIDTH 1 /* LDO1_OK */
  1155. #define WM831X_ISINK_MAX_ISEL 55
  1156. extern int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL + 1];
  1157. #endif