0045-mfd-mt6397-add-MT6323-support-to-MT6397-driver.patch 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. From 0ae7153c9f00361c3e6dac9da0c2d994557953f5 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Fri, 8 Jan 2016 04:09:43 +0100
  4. Subject: [PATCH 045/102] mfd: mt6397: add MT6323 support to MT6397 driver
  5. Signed-off-by: John Crispin <blogic@openwrt.org>
  6. ---
  7. drivers/mfd/mt6397-core.c | 20 ++
  8. include/linux/mfd/mt6323/core.h | 36 +++
  9. include/linux/mfd/mt6323/registers.h | 408 ++++++++++++++++++++++++++++++++++
  10. 3 files changed, 464 insertions(+)
  11. create mode 100644 include/linux/mfd/mt6323/core.h
  12. create mode 100644 include/linux/mfd/mt6323/registers.h
  13. --- a/drivers/mfd/mt6397-core.c
  14. +++ b/drivers/mfd/mt6397-core.c
  15. @@ -19,11 +19,14 @@
  16. #include <linux/regmap.h>
  17. #include <linux/mfd/core.h>
  18. #include <linux/mfd/mt6397/core.h>
  19. +#include <linux/mfd/mt6323/core.h>
  20. #include <linux/mfd/mt6397/registers.h>
  21. +#include <linux/mfd/mt6323/registers.h>
  22. #define MT6397_RTC_BASE 0xe000
  23. #define MT6397_RTC_SIZE 0x3e
  24. +#define MT6323_CID_CODE 0x23
  25. #define MT6391_CID_CODE 0x91
  26. #define MT6397_CID_CODE 0x97
  27. @@ -40,6 +43,13 @@ static const struct resource mt6397_rtc_
  28. },
  29. };
  30. +static const struct mfd_cell mt6323_devs[] = {
  31. + {
  32. + .name = "mt6323-regulator",
  33. + .of_compatible = "mediatek,mt6323-regulator"
  34. + },
  35. +};
  36. +
  37. static const struct mfd_cell mt6397_devs[] = {
  38. {
  39. .name = "mt6397-rtc",
  40. @@ -261,6 +271,15 @@ static int mt6397_probe(struct platform_
  41. }
  42. switch (id & 0xff) {
  43. + case MT6323_CID_CODE:
  44. + pmic->int_con[0] = MT6323_INT_CON0;
  45. + pmic->int_con[1] = MT6323_INT_CON1;
  46. + pmic->int_status[0] = MT6323_INT_STATUS0;
  47. + pmic->int_status[1] = MT6323_INT_STATUS1;
  48. + ret = mfd_add_devices(&pdev->dev, -1, mt6323_devs,
  49. + ARRAY_SIZE(mt6323_devs), NULL, 0, NULL);
  50. + break;
  51. +
  52. case MT6397_CID_CODE:
  53. case MT6391_CID_CODE:
  54. pmic->int_con[0] = MT6397_INT_CON0;
  55. @@ -302,6 +321,7 @@ static int mt6397_remove(struct platform
  56. static const struct of_device_id mt6397_of_match[] = {
  57. { .compatible = "mediatek,mt6397" },
  58. + { .compatible = "mediatek,mt6323" },
  59. { }
  60. };
  61. MODULE_DEVICE_TABLE(of, mt6397_of_match);
  62. --- /dev/null
  63. +++ b/include/linux/mfd/mt6323/core.h
  64. @@ -0,0 +1,36 @@
  65. +/*
  66. + * Copyright (c) 2016 Chen Zhong <chen.zhong@mediatek.com>
  67. + *
  68. + * This program is free software; you can redistribute it and/or modify
  69. + * it under the terms of the GNU General Public License version 2 as
  70. + * published by the Free Software Foundation.
  71. + */
  72. +
  73. +#ifndef __MFD_MT6323_CORE_H__
  74. +#define __MFD_MT6323_CORE_H__
  75. +
  76. +enum MT6323_IRQ_STATUS_numbers {
  77. + MT6323_IRQ_STATUS_SPKL_AB = 0,
  78. + MT6323_IRQ_STATUS_SPKL,
  79. + MT6323_IRQ_STATUS_BAT_L,
  80. + MT6323_IRQ_STATUS_BAT_H,
  81. + MT6323_IRQ_STATUS_WATCHDOG,
  82. + MT6323_IRQ_STATUS_PWRKEY,
  83. + MT6323_IRQ_STATUS_THR_L,
  84. + MT6323_IRQ_STATUS_THR_H,
  85. + MT6323_IRQ_STATUS_VBATON_UNDET,
  86. + MT6323_IRQ_STATUS_BVALID_DET,
  87. + MT6323_IRQ_STATUS_CHRDET,
  88. + MT6323_IRQ_STATUS_OV,
  89. + MT6323_IRQ_STATUS_LDO = 16,
  90. + MT6323_IRQ_STATUS_FCHRKEY,
  91. + MT6323_IRQ_STATUS_ACCDET,
  92. + MT6323_IRQ_STATUS_AUDIO,
  93. + MT6323_IRQ_STATUS_RTC,
  94. + MT6323_IRQ_STATUS_VPROC,
  95. + MT6323_IRQ_STATUS_VSYS,
  96. + MT6323_IRQ_STATUS_VPA,
  97. + MT6323_IRQ_STATUS_NR,
  98. +};
  99. +
  100. +#endif /* __MFD_MT6323_CORE_H__ */
  101. --- /dev/null
  102. +++ b/include/linux/mfd/mt6323/registers.h
  103. @@ -0,0 +1,408 @@
  104. +/*
  105. + * Copyright (c) 2016 Chen Zhong <chen.zhong@mediatek.com>
  106. + *
  107. + * This program is free software; you can redistribute it and/or modify
  108. + * it under the terms of the GNU General Public License version 2 as
  109. + * published by the Free Software Foundation.
  110. + */
  111. +
  112. +#ifndef __MFD_MT6323_REGISTERS_H__
  113. +#define __MFD_MT6323_REGISTERS_H__
  114. +
  115. +/* PMIC Registers */
  116. +#define MT6323_CHR_CON0 0x0000
  117. +#define MT6323_CHR_CON1 0x0002
  118. +#define MT6323_CHR_CON2 0x0004
  119. +#define MT6323_CHR_CON3 0x0006
  120. +#define MT6323_CHR_CON4 0x0008
  121. +#define MT6323_CHR_CON5 0x000A
  122. +#define MT6323_CHR_CON6 0x000C
  123. +#define MT6323_CHR_CON7 0x000E
  124. +#define MT6323_CHR_CON8 0x0010
  125. +#define MT6323_CHR_CON9 0x0012
  126. +#define MT6323_CHR_CON10 0x0014
  127. +#define MT6323_CHR_CON11 0x0016
  128. +#define MT6323_CHR_CON12 0x0018
  129. +#define MT6323_CHR_CON13 0x001A
  130. +#define MT6323_CHR_CON14 0x001C
  131. +#define MT6323_CHR_CON15 0x001E
  132. +#define MT6323_CHR_CON16 0x0020
  133. +#define MT6323_CHR_CON17 0x0022
  134. +#define MT6323_CHR_CON18 0x0024
  135. +#define MT6323_CHR_CON19 0x0026
  136. +#define MT6323_CHR_CON20 0x0028
  137. +#define MT6323_CHR_CON21 0x002A
  138. +#define MT6323_CHR_CON22 0x002C
  139. +#define MT6323_CHR_CON23 0x002E
  140. +#define MT6323_CHR_CON24 0x0030
  141. +#define MT6323_CHR_CON25 0x0032
  142. +#define MT6323_CHR_CON26 0x0034
  143. +#define MT6323_CHR_CON27 0x0036
  144. +#define MT6323_CHR_CON28 0x0038
  145. +#define MT6323_CHR_CON29 0x003A
  146. +#define MT6323_STRUP_CON0 0x003C
  147. +#define MT6323_STRUP_CON2 0x003E
  148. +#define MT6323_STRUP_CON3 0x0040
  149. +#define MT6323_STRUP_CON4 0x0042
  150. +#define MT6323_STRUP_CON5 0x0044
  151. +#define MT6323_STRUP_CON6 0x0046
  152. +#define MT6323_STRUP_CON7 0x0048
  153. +#define MT6323_STRUP_CON8 0x004A
  154. +#define MT6323_STRUP_CON9 0x004C
  155. +#define MT6323_STRUP_CON10 0x004E
  156. +#define MT6323_STRUP_CON11 0x0050
  157. +#define MT6323_SPK_CON0 0x0052
  158. +#define MT6323_SPK_CON1 0x0054
  159. +#define MT6323_SPK_CON2 0x0056
  160. +#define MT6323_SPK_CON6 0x005E
  161. +#define MT6323_SPK_CON7 0x0060
  162. +#define MT6323_SPK_CON8 0x0062
  163. +#define MT6323_SPK_CON9 0x0064
  164. +#define MT6323_SPK_CON10 0x0066
  165. +#define MT6323_SPK_CON11 0x0068
  166. +#define MT6323_SPK_CON12 0x006A
  167. +#define MT6323_CID 0x0100
  168. +#define MT6323_TOP_CKPDN0 0x0102
  169. +#define MT6323_TOP_CKPDN0_SET 0x0104
  170. +#define MT6323_TOP_CKPDN0_CLR 0x0106
  171. +#define MT6323_TOP_CKPDN1 0x0108
  172. +#define MT6323_TOP_CKPDN1_SET 0x010A
  173. +#define MT6323_TOP_CKPDN1_CLR 0x010C
  174. +#define MT6323_TOP_CKPDN2 0x010E
  175. +#define MT6323_TOP_CKPDN2_SET 0x0110
  176. +#define MT6323_TOP_CKPDN2_CLR 0x0112
  177. +#define MT6323_TOP_RST_CON 0x0114
  178. +#define MT6323_TOP_RST_CON_SET 0x0116
  179. +#define MT6323_TOP_RST_CON_CLR 0x0118
  180. +#define MT6323_TOP_RST_MISC 0x011A
  181. +#define MT6323_TOP_RST_MISC_SET 0x011C
  182. +#define MT6323_TOP_RST_MISC_CLR 0x011E
  183. +#define MT6323_TOP_CKCON0 0x0120
  184. +#define MT6323_TOP_CKCON0_SET 0x0122
  185. +#define MT6323_TOP_CKCON0_CLR 0x0124
  186. +#define MT6323_TOP_CKCON1 0x0126
  187. +#define MT6323_TOP_CKCON1_SET 0x0128
  188. +#define MT6323_TOP_CKCON1_CLR 0x012A
  189. +#define MT6323_TOP_CKTST0 0x012C
  190. +#define MT6323_TOP_CKTST1 0x012E
  191. +#define MT6323_TOP_CKTST2 0x0130
  192. +#define MT6323_TEST_OUT 0x0132
  193. +#define MT6323_TEST_CON0 0x0134
  194. +#define MT6323_TEST_CON1 0x0136
  195. +#define MT6323_EN_STATUS0 0x0138
  196. +#define MT6323_EN_STATUS1 0x013A
  197. +#define MT6323_OCSTATUS0 0x013C
  198. +#define MT6323_OCSTATUS1 0x013E
  199. +#define MT6323_PGSTATUS 0x0140
  200. +#define MT6323_CHRSTATUS 0x0142
  201. +#define MT6323_TDSEL_CON 0x0144
  202. +#define MT6323_RDSEL_CON 0x0146
  203. +#define MT6323_SMT_CON0 0x0148
  204. +#define MT6323_SMT_CON1 0x014A
  205. +#define MT6323_SMT_CON2 0x014C
  206. +#define MT6323_SMT_CON3 0x014E
  207. +#define MT6323_SMT_CON4 0x0150
  208. +#define MT6323_DRV_CON0 0x0152
  209. +#define MT6323_DRV_CON1 0x0154
  210. +#define MT6323_DRV_CON2 0x0156
  211. +#define MT6323_DRV_CON3 0x0158
  212. +#define MT6323_DRV_CON4 0x015A
  213. +#define MT6323_SIMLS1_CON 0x015C
  214. +#define MT6323_SIMLS2_CON 0x015E
  215. +#define MT6323_INT_CON0 0x0160
  216. +#define MT6323_INT_CON0_SET 0x0162
  217. +#define MT6323_INT_CON0_CLR 0x0164
  218. +#define MT6323_INT_CON1 0x0166
  219. +#define MT6323_INT_CON1_SET 0x0168
  220. +#define MT6323_INT_CON1_CLR 0x016A
  221. +#define MT6323_INT_MISC_CON 0x016C
  222. +#define MT6323_INT_MISC_CON_SET 0x016E
  223. +#define MT6323_INT_MISC_CON_CLR 0x0170
  224. +#define MT6323_INT_STATUS0 0x0172
  225. +#define MT6323_INT_STATUS1 0x0174
  226. +#define MT6323_OC_GEAR_0 0x0176
  227. +#define MT6323_OC_GEAR_1 0x0178
  228. +#define MT6323_OC_GEAR_2 0x017A
  229. +#define MT6323_OC_CTL_VPROC 0x017C
  230. +#define MT6323_OC_CTL_VSYS 0x017E
  231. +#define MT6323_OC_CTL_VPA 0x0180
  232. +#define MT6323_FQMTR_CON0 0x0182
  233. +#define MT6323_FQMTR_CON1 0x0184
  234. +#define MT6323_FQMTR_CON2 0x0186
  235. +#define MT6323_RG_SPI_CON 0x0188
  236. +#define MT6323_DEW_DIO_EN 0x018A
  237. +#define MT6323_DEW_READ_TEST 0x018C
  238. +#define MT6323_DEW_WRITE_TEST 0x018E
  239. +#define MT6323_DEW_CRC_SWRST 0x0190
  240. +#define MT6323_DEW_CRC_EN 0x0192
  241. +#define MT6323_DEW_CRC_VAL 0x0194
  242. +#define MT6323_DEW_DBG_MON_SEL 0x0196
  243. +#define MT6323_DEW_CIPHER_KEY_SEL 0x0198
  244. +#define MT6323_DEW_CIPHER_IV_SEL 0x019A
  245. +#define MT6323_DEW_CIPHER_EN 0x019C
  246. +#define MT6323_DEW_CIPHER_RDY 0x019E
  247. +#define MT6323_DEW_CIPHER_MODE 0x01A0
  248. +#define MT6323_DEW_CIPHER_SWRST 0x01A2
  249. +#define MT6323_DEW_RDDMY_NO 0x01A4
  250. +#define MT6323_DEW_RDATA_DLY_SEL 0x01A6
  251. +#define MT6323_BUCK_CON0 0x0200
  252. +#define MT6323_BUCK_CON1 0x0202
  253. +#define MT6323_BUCK_CON2 0x0204
  254. +#define MT6323_BUCK_CON3 0x0206
  255. +#define MT6323_BUCK_CON4 0x0208
  256. +#define MT6323_BUCK_CON5 0x020A
  257. +#define MT6323_VPROC_CON0 0x020C
  258. +#define MT6323_VPROC_CON1 0x020E
  259. +#define MT6323_VPROC_CON2 0x0210
  260. +#define MT6323_VPROC_CON3 0x0212
  261. +#define MT6323_VPROC_CON4 0x0214
  262. +#define MT6323_VPROC_CON5 0x0216
  263. +#define MT6323_VPROC_CON7 0x021A
  264. +#define MT6323_VPROC_CON8 0x021C
  265. +#define MT6323_VPROC_CON9 0x021E
  266. +#define MT6323_VPROC_CON10 0x0220
  267. +#define MT6323_VPROC_CON11 0x0222
  268. +#define MT6323_VPROC_CON12 0x0224
  269. +#define MT6323_VPROC_CON13 0x0226
  270. +#define MT6323_VPROC_CON14 0x0228
  271. +#define MT6323_VPROC_CON15 0x022A
  272. +#define MT6323_VPROC_CON18 0x0230
  273. +#define MT6323_VSYS_CON0 0x0232
  274. +#define MT6323_VSYS_CON1 0x0234
  275. +#define MT6323_VSYS_CON2 0x0236
  276. +#define MT6323_VSYS_CON3 0x0238
  277. +#define MT6323_VSYS_CON4 0x023A
  278. +#define MT6323_VSYS_CON5 0x023C
  279. +#define MT6323_VSYS_CON7 0x0240
  280. +#define MT6323_VSYS_CON8 0x0242
  281. +#define MT6323_VSYS_CON9 0x0244
  282. +#define MT6323_VSYS_CON10 0x0246
  283. +#define MT6323_VSYS_CON11 0x0248
  284. +#define MT6323_VSYS_CON12 0x024A
  285. +#define MT6323_VSYS_CON13 0x024C
  286. +#define MT6323_VSYS_CON14 0x024E
  287. +#define MT6323_VSYS_CON15 0x0250
  288. +#define MT6323_VSYS_CON18 0x0256
  289. +#define MT6323_VPA_CON0 0x0300
  290. +#define MT6323_VPA_CON1 0x0302
  291. +#define MT6323_VPA_CON2 0x0304
  292. +#define MT6323_VPA_CON3 0x0306
  293. +#define MT6323_VPA_CON4 0x0308
  294. +#define MT6323_VPA_CON5 0x030A
  295. +#define MT6323_VPA_CON7 0x030E
  296. +#define MT6323_VPA_CON8 0x0310
  297. +#define MT6323_VPA_CON9 0x0312
  298. +#define MT6323_VPA_CON10 0x0314
  299. +#define MT6323_VPA_CON11 0x0316
  300. +#define MT6323_VPA_CON12 0x0318
  301. +#define MT6323_VPA_CON14 0x031C
  302. +#define MT6323_VPA_CON16 0x0320
  303. +#define MT6323_VPA_CON17 0x0322
  304. +#define MT6323_VPA_CON18 0x0324
  305. +#define MT6323_VPA_CON19 0x0326
  306. +#define MT6323_VPA_CON20 0x0328
  307. +#define MT6323_BUCK_K_CON0 0x032A
  308. +#define MT6323_BUCK_K_CON1 0x032C
  309. +#define MT6323_BUCK_K_CON2 0x032E
  310. +#define MT6323_ISINK0_CON0 0x0330
  311. +#define MT6323_ISINK0_CON1 0x0332
  312. +#define MT6323_ISINK0_CON2 0x0334
  313. +#define MT6323_ISINK0_CON3 0x0336
  314. +#define MT6323_ISINK1_CON0 0x0338
  315. +#define MT6323_ISINK1_CON1 0x033A
  316. +#define MT6323_ISINK1_CON2 0x033C
  317. +#define MT6323_ISINK1_CON3 0x033E
  318. +#define MT6323_ISINK2_CON0 0x0340
  319. +#define MT6323_ISINK2_CON1 0x0342
  320. +#define MT6323_ISINK2_CON2 0x0344
  321. +#define MT6323_ISINK2_CON3 0x0346
  322. +#define MT6323_ISINK3_CON0 0x0348
  323. +#define MT6323_ISINK3_CON1 0x034A
  324. +#define MT6323_ISINK3_CON2 0x034C
  325. +#define MT6323_ISINK3_CON3 0x034E
  326. +#define MT6323_ISINK_ANA0 0x0350
  327. +#define MT6323_ISINK_ANA1 0x0352
  328. +#define MT6323_ISINK_PHASE_DLY 0x0354
  329. +#define MT6323_ISINK_EN_CTRL 0x0356
  330. +#define MT6323_ANALDO_CON0 0x0400
  331. +#define MT6323_ANALDO_CON1 0x0402
  332. +#define MT6323_ANALDO_CON2 0x0404
  333. +#define MT6323_ANALDO_CON3 0x0406
  334. +#define MT6323_ANALDO_CON4 0x0408
  335. +#define MT6323_ANALDO_CON5 0x040A
  336. +#define MT6323_ANALDO_CON6 0x040C
  337. +#define MT6323_ANALDO_CON7 0x040E
  338. +#define MT6323_ANALDO_CON8 0x0410
  339. +#define MT6323_ANALDO_CON10 0x0412
  340. +#define MT6323_ANALDO_CON15 0x0414
  341. +#define MT6323_ANALDO_CON16 0x0416
  342. +#define MT6323_ANALDO_CON17 0x0418
  343. +#define MT6323_ANALDO_CON18 0x041A
  344. +#define MT6323_ANALDO_CON19 0x041C
  345. +#define MT6323_ANALDO_CON20 0x041E
  346. +#define MT6323_ANALDO_CON21 0x0420
  347. +#define MT6323_DIGLDO_CON0 0x0500
  348. +#define MT6323_DIGLDO_CON2 0x0502
  349. +#define MT6323_DIGLDO_CON3 0x0504
  350. +#define MT6323_DIGLDO_CON5 0x0506
  351. +#define MT6323_DIGLDO_CON6 0x0508
  352. +#define MT6323_DIGLDO_CON7 0x050A
  353. +#define MT6323_DIGLDO_CON8 0x050C
  354. +#define MT6323_DIGLDO_CON9 0x050E
  355. +#define MT6323_DIGLDO_CON10 0x0510
  356. +#define MT6323_DIGLDO_CON11 0x0512
  357. +#define MT6323_DIGLDO_CON12 0x0514
  358. +#define MT6323_DIGLDO_CON13 0x0516
  359. +#define MT6323_DIGLDO_CON14 0x0518
  360. +#define MT6323_DIGLDO_CON15 0x051A
  361. +#define MT6323_DIGLDO_CON16 0x051C
  362. +#define MT6323_DIGLDO_CON17 0x051E
  363. +#define MT6323_DIGLDO_CON18 0x0520
  364. +#define MT6323_DIGLDO_CON19 0x0522
  365. +#define MT6323_DIGLDO_CON20 0x0524
  366. +#define MT6323_DIGLDO_CON21 0x0526
  367. +#define MT6323_DIGLDO_CON23 0x0528
  368. +#define MT6323_DIGLDO_CON24 0x052A
  369. +#define MT6323_DIGLDO_CON26 0x052C
  370. +#define MT6323_DIGLDO_CON27 0x052E
  371. +#define MT6323_DIGLDO_CON28 0x0530
  372. +#define MT6323_DIGLDO_CON29 0x0532
  373. +#define MT6323_DIGLDO_CON30 0x0534
  374. +#define MT6323_DIGLDO_CON31 0x0536
  375. +#define MT6323_DIGLDO_CON32 0x0538
  376. +#define MT6323_DIGLDO_CON33 0x053A
  377. +#define MT6323_DIGLDO_CON34 0x053C
  378. +#define MT6323_DIGLDO_CON35 0x053E
  379. +#define MT6323_DIGLDO_CON36 0x0540
  380. +#define MT6323_DIGLDO_CON39 0x0542
  381. +#define MT6323_DIGLDO_CON40 0x0544
  382. +#define MT6323_DIGLDO_CON41 0x0546
  383. +#define MT6323_DIGLDO_CON42 0x0548
  384. +#define MT6323_DIGLDO_CON43 0x054A
  385. +#define MT6323_DIGLDO_CON44 0x054C
  386. +#define MT6323_DIGLDO_CON45 0x054E
  387. +#define MT6323_DIGLDO_CON46 0x0550
  388. +#define MT6323_DIGLDO_CON47 0x0552
  389. +#define MT6323_DIGLDO_CON48 0x0554
  390. +#define MT6323_DIGLDO_CON49 0x0556
  391. +#define MT6323_DIGLDO_CON50 0x0558
  392. +#define MT6323_DIGLDO_CON51 0x055A
  393. +#define MT6323_DIGLDO_CON52 0x055C
  394. +#define MT6323_DIGLDO_CON53 0x055E
  395. +#define MT6323_DIGLDO_CON54 0x0560
  396. +#define MT6323_EFUSE_CON0 0x0600
  397. +#define MT6323_EFUSE_CON1 0x0602
  398. +#define MT6323_EFUSE_CON2 0x0604
  399. +#define MT6323_EFUSE_CON3 0x0606
  400. +#define MT6323_EFUSE_CON4 0x0608
  401. +#define MT6323_EFUSE_CON5 0x060A
  402. +#define MT6323_EFUSE_CON6 0x060C
  403. +#define MT6323_EFUSE_VAL_0_15 0x060E
  404. +#define MT6323_EFUSE_VAL_16_31 0x0610
  405. +#define MT6323_EFUSE_VAL_32_47 0x0612
  406. +#define MT6323_EFUSE_VAL_48_63 0x0614
  407. +#define MT6323_EFUSE_VAL_64_79 0x0616
  408. +#define MT6323_EFUSE_VAL_80_95 0x0618
  409. +#define MT6323_EFUSE_VAL_96_111 0x061A
  410. +#define MT6323_EFUSE_VAL_112_127 0x061C
  411. +#define MT6323_EFUSE_VAL_128_143 0x061E
  412. +#define MT6323_EFUSE_VAL_144_159 0x0620
  413. +#define MT6323_EFUSE_VAL_160_175 0x0622
  414. +#define MT6323_EFUSE_VAL_176_191 0x0624
  415. +#define MT6323_EFUSE_DOUT_0_15 0x0626
  416. +#define MT6323_EFUSE_DOUT_16_31 0x0628
  417. +#define MT6323_EFUSE_DOUT_32_47 0x062A
  418. +#define MT6323_EFUSE_DOUT_48_63 0x062C
  419. +#define MT6323_EFUSE_DOUT_64_79 0x062E
  420. +#define MT6323_EFUSE_DOUT_80_95 0x0630
  421. +#define MT6323_EFUSE_DOUT_96_111 0x0632
  422. +#define MT6323_EFUSE_DOUT_112_127 0x0634
  423. +#define MT6323_EFUSE_DOUT_128_143 0x0636
  424. +#define MT6323_EFUSE_DOUT_144_159 0x0638
  425. +#define MT6323_EFUSE_DOUT_160_175 0x063A
  426. +#define MT6323_EFUSE_DOUT_176_191 0x063C
  427. +#define MT6323_EFUSE_CON7 0x063E
  428. +#define MT6323_EFUSE_CON8 0x0640
  429. +#define MT6323_EFUSE_CON9 0x0642
  430. +#define MT6323_RTC_MIX_CON0 0x0644
  431. +#define MT6323_RTC_MIX_CON1 0x0646
  432. +#define MT6323_AUDTOP_CON0 0x0700
  433. +#define MT6323_AUDTOP_CON1 0x0702
  434. +#define MT6323_AUDTOP_CON2 0x0704
  435. +#define MT6323_AUDTOP_CON3 0x0706
  436. +#define MT6323_AUDTOP_CON4 0x0708
  437. +#define MT6323_AUDTOP_CON5 0x070A
  438. +#define MT6323_AUDTOP_CON6 0x070C
  439. +#define MT6323_AUDTOP_CON7 0x070E
  440. +#define MT6323_AUDTOP_CON8 0x0710
  441. +#define MT6323_AUDTOP_CON9 0x0712
  442. +#define MT6323_AUXADC_ADC0 0x0714
  443. +#define MT6323_AUXADC_ADC1 0x0716
  444. +#define MT6323_AUXADC_ADC2 0x0718
  445. +#define MT6323_AUXADC_ADC3 0x071A
  446. +#define MT6323_AUXADC_ADC4 0x071C
  447. +#define MT6323_AUXADC_ADC5 0x071E
  448. +#define MT6323_AUXADC_ADC6 0x0720
  449. +#define MT6323_AUXADC_ADC7 0x0722
  450. +#define MT6323_AUXADC_ADC8 0x0724
  451. +#define MT6323_AUXADC_ADC9 0x0726
  452. +#define MT6323_AUXADC_ADC10 0x0728
  453. +#define MT6323_AUXADC_ADC11 0x072A
  454. +#define MT6323_AUXADC_ADC12 0x072C
  455. +#define MT6323_AUXADC_ADC13 0x072E
  456. +#define MT6323_AUXADC_ADC14 0x0730
  457. +#define MT6323_AUXADC_ADC15 0x0732
  458. +#define MT6323_AUXADC_ADC16 0x0734
  459. +#define MT6323_AUXADC_ADC17 0x0736
  460. +#define MT6323_AUXADC_ADC18 0x0738
  461. +#define MT6323_AUXADC_ADC19 0x073A
  462. +#define MT6323_AUXADC_ADC20 0x073C
  463. +#define MT6323_AUXADC_RSV1 0x073E
  464. +#define MT6323_AUXADC_RSV2 0x0740
  465. +#define MT6323_AUXADC_CON0 0x0742
  466. +#define MT6323_AUXADC_CON1 0x0744
  467. +#define MT6323_AUXADC_CON2 0x0746
  468. +#define MT6323_AUXADC_CON3 0x0748
  469. +#define MT6323_AUXADC_CON4 0x074A
  470. +#define MT6323_AUXADC_CON5 0x074C
  471. +#define MT6323_AUXADC_CON6 0x074E
  472. +#define MT6323_AUXADC_CON7 0x0750
  473. +#define MT6323_AUXADC_CON8 0x0752
  474. +#define MT6323_AUXADC_CON9 0x0754
  475. +#define MT6323_AUXADC_CON10 0x0756
  476. +#define MT6323_AUXADC_CON11 0x0758
  477. +#define MT6323_AUXADC_CON12 0x075A
  478. +#define MT6323_AUXADC_CON13 0x075C
  479. +#define MT6323_AUXADC_CON14 0x075E
  480. +#define MT6323_AUXADC_CON15 0x0760
  481. +#define MT6323_AUXADC_CON16 0x0762
  482. +#define MT6323_AUXADC_CON17 0x0764
  483. +#define MT6323_AUXADC_CON18 0x0766
  484. +#define MT6323_AUXADC_CON19 0x0768
  485. +#define MT6323_AUXADC_CON20 0x076A
  486. +#define MT6323_AUXADC_CON21 0x076C
  487. +#define MT6323_AUXADC_CON22 0x076E
  488. +#define MT6323_AUXADC_CON23 0x0770
  489. +#define MT6323_AUXADC_CON24 0x0772
  490. +#define MT6323_AUXADC_CON25 0x0774
  491. +#define MT6323_AUXADC_CON26 0x0776
  492. +#define MT6323_AUXADC_CON27 0x0778
  493. +#define MT6323_ACCDET_CON0 0x077A
  494. +#define MT6323_ACCDET_CON1 0x077C
  495. +#define MT6323_ACCDET_CON2 0x077E
  496. +#define MT6323_ACCDET_CON3 0x0780
  497. +#define MT6323_ACCDET_CON4 0x0782
  498. +#define MT6323_ACCDET_CON5 0x0784
  499. +#define MT6323_ACCDET_CON6 0x0786
  500. +#define MT6323_ACCDET_CON7 0x0788
  501. +#define MT6323_ACCDET_CON8 0x078A
  502. +#define MT6323_ACCDET_CON9 0x078C
  503. +#define MT6323_ACCDET_CON10 0x078E
  504. +#define MT6323_ACCDET_CON11 0x0790
  505. +#define MT6323_ACCDET_CON12 0x0792
  506. +#define MT6323_ACCDET_CON13 0x0794
  507. +#define MT6323_ACCDET_CON14 0x0796
  508. +#define MT6323_ACCDET_CON15 0x0798
  509. +#define MT6323_ACCDET_CON16 0x079A
  510. +
  511. +#endif /* __MFD_MT6323_REGISTERS_H__ */