dsi.xml.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. #ifndef DSI_XML
  2. #define DSI_XML
  3. /* Autogenerated file, DO NOT EDIT manually!
  4. This file was generated by the rules-ng-ng headergen tool in this git repository:
  5. http://github.com/freedreno/envytools/
  6. git clone https://github.com/freedreno/envytools.git
  7. The rules-ng-ng source files this header was generated from are:
  8. - /home/robclark/src/freedreno/envytools/rnndb/msm.xml ( 647 bytes, from 2013-11-30 14:45:35)
  9. - /home/robclark/src/freedreno/envytools/rnndb/freedreno_copyright.xml ( 1453 bytes, from 2013-03-31 16:51:27)
  10. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp4.xml ( 17996 bytes, from 2013-12-01 19:10:31)
  11. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp_common.xml ( 1615 bytes, from 2013-11-30 15:00:52)
  12. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp5.xml ( 22517 bytes, from 2013-12-03 20:59:13)
  13. - /home/robclark/src/freedreno/envytools/rnndb/dsi/dsi.xml ( 11712 bytes, from 2013-08-17 17:13:43)
  14. - /home/robclark/src/freedreno/envytools/rnndb/dsi/sfpb.xml ( 344 bytes, from 2013-08-11 19:26:32)
  15. - /home/robclark/src/freedreno/envytools/rnndb/dsi/mmss_cc.xml ( 1544 bytes, from 2013-08-16 19:17:05)
  16. - /home/robclark/src/freedreno/envytools/rnndb/hdmi/qfprom.xml ( 600 bytes, from 2013-07-05 19:21:12)
  17. - /home/robclark/src/freedreno/envytools/rnndb/hdmi/hdmi.xml ( 20932 bytes, from 2013-12-01 15:13:04)
  18. Copyright (C) 2013 by the following authors:
  19. - Rob Clark <robdclark@gmail.com> (robclark)
  20. Permission is hereby granted, free of charge, to any person obtaining
  21. a copy of this software and associated documentation files (the
  22. "Software"), to deal in the Software without restriction, including
  23. without limitation the rights to use, copy, modify, merge, publish,
  24. distribute, sublicense, and/or sell copies of the Software, and to
  25. permit persons to whom the Software is furnished to do so, subject to
  26. the following conditions:
  27. The above copyright notice and this permission notice (including the
  28. next paragraph) shall be included in all copies or substantial
  29. portions of the Software.
  30. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  31. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  32. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  33. IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
  34. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  35. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  36. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  37. */
  38. enum dsi_traffic_mode {
  39. NON_BURST_SYNCH_PULSE = 0,
  40. NON_BURST_SYNCH_EVENT = 1,
  41. BURST_MODE = 2,
  42. };
  43. enum dsi_dst_format {
  44. DST_FORMAT_RGB565 = 0,
  45. DST_FORMAT_RGB666 = 1,
  46. DST_FORMAT_RGB666_LOOSE = 2,
  47. DST_FORMAT_RGB888 = 3,
  48. };
  49. enum dsi_rgb_swap {
  50. SWAP_RGB = 0,
  51. SWAP_RBG = 1,
  52. SWAP_BGR = 2,
  53. SWAP_BRG = 3,
  54. SWAP_GRB = 4,
  55. SWAP_GBR = 5,
  56. };
  57. enum dsi_cmd_trigger {
  58. TRIGGER_NONE = 0,
  59. TRIGGER_TE = 2,
  60. TRIGGER_SW = 4,
  61. TRIGGER_SW_SEOF = 5,
  62. TRIGGER_SW_TE = 6,
  63. };
  64. #define DSI_IRQ_CMD_DMA_DONE 0x00000001
  65. #define DSI_IRQ_MASK_CMD_DMA_DONE 0x00000002
  66. #define DSI_IRQ_CMD_MDP_DONE 0x00000100
  67. #define DSI_IRQ_MASK_CMD_MDP_DONE 0x00000200
  68. #define DSI_IRQ_VIDEO_DONE 0x00010000
  69. #define DSI_IRQ_MASK_VIDEO_DONE 0x00020000
  70. #define DSI_IRQ_ERROR 0x01000000
  71. #define DSI_IRQ_MASK_ERROR 0x02000000
  72. #define REG_DSI_CTRL 0x00000000
  73. #define DSI_CTRL_ENABLE 0x00000001
  74. #define DSI_CTRL_VID_MODE_EN 0x00000002
  75. #define DSI_CTRL_CMD_MODE_EN 0x00000004
  76. #define DSI_CTRL_LANE0 0x00000010
  77. #define DSI_CTRL_LANE1 0x00000020
  78. #define DSI_CTRL_LANE2 0x00000040
  79. #define DSI_CTRL_LANE3 0x00000080
  80. #define DSI_CTRL_CLK_EN 0x00000100
  81. #define DSI_CTRL_ECC_CHECK 0x00100000
  82. #define DSI_CTRL_CRC_CHECK 0x01000000
  83. #define REG_DSI_STATUS0 0x00000004
  84. #define DSI_STATUS0_CMD_MODE_DMA_BUSY 0x00000002
  85. #define DSI_STATUS0_VIDEO_MODE_ENGINE_BUSY 0x00000008
  86. #define DSI_STATUS0_DSI_BUSY 0x00000010
  87. #define REG_DSI_FIFO_STATUS 0x00000008
  88. #define REG_DSI_VID_CFG0 0x0000000c
  89. #define DSI_VID_CFG0_VIRT_CHANNEL__MASK 0x00000003
  90. #define DSI_VID_CFG0_VIRT_CHANNEL__SHIFT 0
  91. static inline uint32_t DSI_VID_CFG0_VIRT_CHANNEL(uint32_t val)
  92. {
  93. return ((val) << DSI_VID_CFG0_VIRT_CHANNEL__SHIFT) & DSI_VID_CFG0_VIRT_CHANNEL__MASK;
  94. }
  95. #define DSI_VID_CFG0_DST_FORMAT__MASK 0x00000030
  96. #define DSI_VID_CFG0_DST_FORMAT__SHIFT 4
  97. static inline uint32_t DSI_VID_CFG0_DST_FORMAT(enum dsi_dst_format val)
  98. {
  99. return ((val) << DSI_VID_CFG0_DST_FORMAT__SHIFT) & DSI_VID_CFG0_DST_FORMAT__MASK;
  100. }
  101. #define DSI_VID_CFG0_TRAFFIC_MODE__MASK 0x00000300
  102. #define DSI_VID_CFG0_TRAFFIC_MODE__SHIFT 8
  103. static inline uint32_t DSI_VID_CFG0_TRAFFIC_MODE(enum dsi_traffic_mode val)
  104. {
  105. return ((val) << DSI_VID_CFG0_TRAFFIC_MODE__SHIFT) & DSI_VID_CFG0_TRAFFIC_MODE__MASK;
  106. }
  107. #define DSI_VID_CFG0_BLLP_POWER_STOP 0x00001000
  108. #define DSI_VID_CFG0_EOF_BLLP_POWER_STOP 0x00008000
  109. #define DSI_VID_CFG0_HSA_POWER_STOP 0x00010000
  110. #define DSI_VID_CFG0_HBP_POWER_STOP 0x00100000
  111. #define DSI_VID_CFG0_HFP_POWER_STOP 0x01000000
  112. #define DSI_VID_CFG0_PULSE_MODE_HSA_HE 0x10000000
  113. #define REG_DSI_VID_CFG1 0x0000001c
  114. #define DSI_VID_CFG1_R_SEL 0x00000010
  115. #define DSI_VID_CFG1_G_SEL 0x00000100
  116. #define DSI_VID_CFG1_B_SEL 0x00001000
  117. #define DSI_VID_CFG1_RGB_SWAP__MASK 0x00070000
  118. #define DSI_VID_CFG1_RGB_SWAP__SHIFT 16
  119. static inline uint32_t DSI_VID_CFG1_RGB_SWAP(enum dsi_rgb_swap val)
  120. {
  121. return ((val) << DSI_VID_CFG1_RGB_SWAP__SHIFT) & DSI_VID_CFG1_RGB_SWAP__MASK;
  122. }
  123. #define DSI_VID_CFG1_INTERLEAVE_MAX__MASK 0x00f00000
  124. #define DSI_VID_CFG1_INTERLEAVE_MAX__SHIFT 20
  125. static inline uint32_t DSI_VID_CFG1_INTERLEAVE_MAX(uint32_t val)
  126. {
  127. return ((val) << DSI_VID_CFG1_INTERLEAVE_MAX__SHIFT) & DSI_VID_CFG1_INTERLEAVE_MAX__MASK;
  128. }
  129. #define REG_DSI_ACTIVE_H 0x00000020
  130. #define DSI_ACTIVE_H_START__MASK 0x00000fff
  131. #define DSI_ACTIVE_H_START__SHIFT 0
  132. static inline uint32_t DSI_ACTIVE_H_START(uint32_t val)
  133. {
  134. return ((val) << DSI_ACTIVE_H_START__SHIFT) & DSI_ACTIVE_H_START__MASK;
  135. }
  136. #define DSI_ACTIVE_H_END__MASK 0x0fff0000
  137. #define DSI_ACTIVE_H_END__SHIFT 16
  138. static inline uint32_t DSI_ACTIVE_H_END(uint32_t val)
  139. {
  140. return ((val) << DSI_ACTIVE_H_END__SHIFT) & DSI_ACTIVE_H_END__MASK;
  141. }
  142. #define REG_DSI_ACTIVE_V 0x00000024
  143. #define DSI_ACTIVE_V_START__MASK 0x00000fff
  144. #define DSI_ACTIVE_V_START__SHIFT 0
  145. static inline uint32_t DSI_ACTIVE_V_START(uint32_t val)
  146. {
  147. return ((val) << DSI_ACTIVE_V_START__SHIFT) & DSI_ACTIVE_V_START__MASK;
  148. }
  149. #define DSI_ACTIVE_V_END__MASK 0x0fff0000
  150. #define DSI_ACTIVE_V_END__SHIFT 16
  151. static inline uint32_t DSI_ACTIVE_V_END(uint32_t val)
  152. {
  153. return ((val) << DSI_ACTIVE_V_END__SHIFT) & DSI_ACTIVE_V_END__MASK;
  154. }
  155. #define REG_DSI_TOTAL 0x00000028
  156. #define DSI_TOTAL_H_TOTAL__MASK 0x00000fff
  157. #define DSI_TOTAL_H_TOTAL__SHIFT 0
  158. static inline uint32_t DSI_TOTAL_H_TOTAL(uint32_t val)
  159. {
  160. return ((val) << DSI_TOTAL_H_TOTAL__SHIFT) & DSI_TOTAL_H_TOTAL__MASK;
  161. }
  162. #define DSI_TOTAL_V_TOTAL__MASK 0x0fff0000
  163. #define DSI_TOTAL_V_TOTAL__SHIFT 16
  164. static inline uint32_t DSI_TOTAL_V_TOTAL(uint32_t val)
  165. {
  166. return ((val) << DSI_TOTAL_V_TOTAL__SHIFT) & DSI_TOTAL_V_TOTAL__MASK;
  167. }
  168. #define REG_DSI_ACTIVE_HSYNC 0x0000002c
  169. #define DSI_ACTIVE_HSYNC_START__MASK 0x00000fff
  170. #define DSI_ACTIVE_HSYNC_START__SHIFT 0
  171. static inline uint32_t DSI_ACTIVE_HSYNC_START(uint32_t val)
  172. {
  173. return ((val) << DSI_ACTIVE_HSYNC_START__SHIFT) & DSI_ACTIVE_HSYNC_START__MASK;
  174. }
  175. #define DSI_ACTIVE_HSYNC_END__MASK 0x0fff0000
  176. #define DSI_ACTIVE_HSYNC_END__SHIFT 16
  177. static inline uint32_t DSI_ACTIVE_HSYNC_END(uint32_t val)
  178. {
  179. return ((val) << DSI_ACTIVE_HSYNC_END__SHIFT) & DSI_ACTIVE_HSYNC_END__MASK;
  180. }
  181. #define REG_DSI_ACTIVE_VSYNC 0x00000034
  182. #define DSI_ACTIVE_VSYNC_START__MASK 0x00000fff
  183. #define DSI_ACTIVE_VSYNC_START__SHIFT 0
  184. static inline uint32_t DSI_ACTIVE_VSYNC_START(uint32_t val)
  185. {
  186. return ((val) << DSI_ACTIVE_VSYNC_START__SHIFT) & DSI_ACTIVE_VSYNC_START__MASK;
  187. }
  188. #define DSI_ACTIVE_VSYNC_END__MASK 0x0fff0000
  189. #define DSI_ACTIVE_VSYNC_END__SHIFT 16
  190. static inline uint32_t DSI_ACTIVE_VSYNC_END(uint32_t val)
  191. {
  192. return ((val) << DSI_ACTIVE_VSYNC_END__SHIFT) & DSI_ACTIVE_VSYNC_END__MASK;
  193. }
  194. #define REG_DSI_CMD_DMA_CTRL 0x00000038
  195. #define DSI_CMD_DMA_CTRL_FROM_FRAME_BUFFER 0x10000000
  196. #define DSI_CMD_DMA_CTRL_LOW_POWER 0x04000000
  197. #define REG_DSI_CMD_CFG0 0x0000003c
  198. #define REG_DSI_CMD_CFG1 0x00000040
  199. #define REG_DSI_DMA_BASE 0x00000044
  200. #define REG_DSI_DMA_LEN 0x00000048
  201. #define REG_DSI_ACK_ERR_STATUS 0x00000064
  202. static inline uint32_t REG_DSI_RDBK(uint32_t i0) { return 0x00000068 + 0x4*i0; }
  203. static inline uint32_t REG_DSI_RDBK_DATA(uint32_t i0) { return 0x00000068 + 0x4*i0; }
  204. #define REG_DSI_TRIG_CTRL 0x00000080
  205. #define DSI_TRIG_CTRL_DMA_TRIGGER__MASK 0x0000000f
  206. #define DSI_TRIG_CTRL_DMA_TRIGGER__SHIFT 0
  207. static inline uint32_t DSI_TRIG_CTRL_DMA_TRIGGER(enum dsi_cmd_trigger val)
  208. {
  209. return ((val) << DSI_TRIG_CTRL_DMA_TRIGGER__SHIFT) & DSI_TRIG_CTRL_DMA_TRIGGER__MASK;
  210. }
  211. #define DSI_TRIG_CTRL_MDP_TRIGGER__MASK 0x000000f0
  212. #define DSI_TRIG_CTRL_MDP_TRIGGER__SHIFT 4
  213. static inline uint32_t DSI_TRIG_CTRL_MDP_TRIGGER(enum dsi_cmd_trigger val)
  214. {
  215. return ((val) << DSI_TRIG_CTRL_MDP_TRIGGER__SHIFT) & DSI_TRIG_CTRL_MDP_TRIGGER__MASK;
  216. }
  217. #define DSI_TRIG_CTRL_STREAM 0x00000100
  218. #define DSI_TRIG_CTRL_TE 0x80000000
  219. #define REG_DSI_TRIG_DMA 0x0000008c
  220. #define REG_DSI_DLN0_PHY_ERR 0x000000b0
  221. #define REG_DSI_TIMEOUT_STATUS 0x000000bc
  222. #define REG_DSI_CLKOUT_TIMING_CTRL 0x000000c0
  223. #define DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__MASK 0x0000003f
  224. #define DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__SHIFT 0
  225. static inline uint32_t DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE(uint32_t val)
  226. {
  227. return ((val) << DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__SHIFT) & DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__MASK;
  228. }
  229. #define DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__MASK 0x00003f00
  230. #define DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__SHIFT 8
  231. static inline uint32_t DSI_CLKOUT_TIMING_CTRL_T_CLK_POST(uint32_t val)
  232. {
  233. return ((val) << DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__SHIFT) & DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__MASK;
  234. }
  235. #define REG_DSI_EOT_PACKET_CTRL 0x000000c8
  236. #define DSI_EOT_PACKET_CTRL_TX_EOT_APPEND 0x00000001
  237. #define DSI_EOT_PACKET_CTRL_RX_EOT_IGNORE 0x00000010
  238. #define REG_DSI_LANE_SWAP_CTRL 0x000000ac
  239. #define REG_DSI_ERR_INT_MASK0 0x00000108
  240. #define REG_DSI_INTR_CTRL 0x0000010c
  241. #define REG_DSI_RESET 0x00000114
  242. #define REG_DSI_CLK_CTRL 0x00000118
  243. #define REG_DSI_PHY_RESET 0x00000128
  244. #define REG_DSI_PHY_PLL_CTRL_0 0x00000200
  245. #define DSI_PHY_PLL_CTRL_0_ENABLE 0x00000001
  246. #define REG_DSI_PHY_PLL_CTRL_1 0x00000204
  247. #define REG_DSI_PHY_PLL_CTRL_2 0x00000208
  248. #define REG_DSI_PHY_PLL_CTRL_3 0x0000020c
  249. #define REG_DSI_PHY_PLL_CTRL_4 0x00000210
  250. #define REG_DSI_PHY_PLL_CTRL_5 0x00000214
  251. #define REG_DSI_PHY_PLL_CTRL_6 0x00000218
  252. #define REG_DSI_PHY_PLL_CTRL_7 0x0000021c
  253. #define REG_DSI_PHY_PLL_CTRL_8 0x00000220
  254. #define REG_DSI_PHY_PLL_CTRL_9 0x00000224
  255. #define REG_DSI_PHY_PLL_CTRL_10 0x00000228
  256. #define REG_DSI_PHY_PLL_CTRL_11 0x0000022c
  257. #define REG_DSI_PHY_PLL_CTRL_12 0x00000230
  258. #define REG_DSI_PHY_PLL_CTRL_13 0x00000234
  259. #define REG_DSI_PHY_PLL_CTRL_14 0x00000238
  260. #define REG_DSI_PHY_PLL_CTRL_15 0x0000023c
  261. #define REG_DSI_PHY_PLL_CTRL_16 0x00000240
  262. #define REG_DSI_PHY_PLL_CTRL_17 0x00000244
  263. #define REG_DSI_PHY_PLL_CTRL_18 0x00000248
  264. #define REG_DSI_PHY_PLL_CTRL_19 0x0000024c
  265. #define REG_DSI_PHY_PLL_CTRL_20 0x00000250
  266. #define REG_DSI_PHY_PLL_STATUS 0x00000280
  267. #define DSI_PHY_PLL_STATUS_PLL_BUSY 0x00000001
  268. #define REG_DSI_8x60_PHY_TPA_CTRL_1 0x00000258
  269. #define REG_DSI_8x60_PHY_TPA_CTRL_2 0x0000025c
  270. #define REG_DSI_8x60_PHY_TIMING_CTRL_0 0x00000260
  271. #define REG_DSI_8x60_PHY_TIMING_CTRL_1 0x00000264
  272. #define REG_DSI_8x60_PHY_TIMING_CTRL_2 0x00000268
  273. #define REG_DSI_8x60_PHY_TIMING_CTRL_3 0x0000026c
  274. #define REG_DSI_8x60_PHY_TIMING_CTRL_4 0x00000270
  275. #define REG_DSI_8x60_PHY_TIMING_CTRL_5 0x00000274
  276. #define REG_DSI_8x60_PHY_TIMING_CTRL_6 0x00000278
  277. #define REG_DSI_8x60_PHY_TIMING_CTRL_7 0x0000027c
  278. #define REG_DSI_8x60_PHY_TIMING_CTRL_8 0x00000280
  279. #define REG_DSI_8x60_PHY_TIMING_CTRL_9 0x00000284
  280. #define REG_DSI_8x60_PHY_TIMING_CTRL_10 0x00000288
  281. #define REG_DSI_8x60_PHY_TIMING_CTRL_11 0x0000028c
  282. #define REG_DSI_8x60_PHY_CTRL_0 0x00000290
  283. #define REG_DSI_8x60_PHY_CTRL_1 0x00000294
  284. #define REG_DSI_8x60_PHY_CTRL_2 0x00000298
  285. #define REG_DSI_8x60_PHY_CTRL_3 0x0000029c
  286. #define REG_DSI_8x60_PHY_STRENGTH_0 0x000002a0
  287. #define REG_DSI_8x60_PHY_STRENGTH_1 0x000002a4
  288. #define REG_DSI_8x60_PHY_STRENGTH_2 0x000002a8
  289. #define REG_DSI_8x60_PHY_STRENGTH_3 0x000002ac
  290. #define REG_DSI_8x60_PHY_REGULATOR_CTRL_0 0x000002cc
  291. #define REG_DSI_8x60_PHY_REGULATOR_CTRL_1 0x000002d0
  292. #define REG_DSI_8x60_PHY_REGULATOR_CTRL_2 0x000002d4
  293. #define REG_DSI_8x60_PHY_REGULATOR_CTRL_3 0x000002d8
  294. #define REG_DSI_8x60_PHY_REGULATOR_CTRL_4 0x000002dc
  295. #define REG_DSI_8x60_PHY_CAL_HW_TRIGGER 0x000000f0
  296. #define REG_DSI_8x60_PHY_CAL_CTRL 0x000000f4
  297. #define REG_DSI_8x60_PHY_CAL_STATUS 0x000000fc
  298. #define DSI_8x60_PHY_CAL_STATUS_CAL_BUSY 0x10000000
  299. static inline uint32_t REG_DSI_8960_LN(uint32_t i0) { return 0x00000300 + 0x40*i0; }
  300. static inline uint32_t REG_DSI_8960_LN_CFG_0(uint32_t i0) { return 0x00000300 + 0x40*i0; }
  301. static inline uint32_t REG_DSI_8960_LN_CFG_1(uint32_t i0) { return 0x00000304 + 0x40*i0; }
  302. static inline uint32_t REG_DSI_8960_LN_CFG_2(uint32_t i0) { return 0x00000308 + 0x40*i0; }
  303. static inline uint32_t REG_DSI_8960_LN_TEST_DATAPATH(uint32_t i0) { return 0x0000030c + 0x40*i0; }
  304. static inline uint32_t REG_DSI_8960_LN_TEST_STR_0(uint32_t i0) { return 0x00000314 + 0x40*i0; }
  305. static inline uint32_t REG_DSI_8960_LN_TEST_STR_1(uint32_t i0) { return 0x00000318 + 0x40*i0; }
  306. #define REG_DSI_8960_PHY_LNCK_CFG_0 0x00000400
  307. #define REG_DSI_8960_PHY_LNCK_CFG_1 0x00000404
  308. #define REG_DSI_8960_PHY_LNCK_CFG_2 0x00000408
  309. #define REG_DSI_8960_PHY_LNCK_TEST_DATAPATH 0x0000040c
  310. #define REG_DSI_8960_PHY_LNCK_TEST_STR0 0x00000414
  311. #define REG_DSI_8960_PHY_LNCK_TEST_STR1 0x00000418
  312. #define REG_DSI_8960_PHY_TIMING_CTRL_0 0x00000440
  313. #define REG_DSI_8960_PHY_TIMING_CTRL_1 0x00000444
  314. #define REG_DSI_8960_PHY_TIMING_CTRL_2 0x00000448
  315. #define REG_DSI_8960_PHY_TIMING_CTRL_3 0x0000044c
  316. #define REG_DSI_8960_PHY_TIMING_CTRL_4 0x00000450
  317. #define REG_DSI_8960_PHY_TIMING_CTRL_5 0x00000454
  318. #define REG_DSI_8960_PHY_TIMING_CTRL_6 0x00000458
  319. #define REG_DSI_8960_PHY_TIMING_CTRL_7 0x0000045c
  320. #define REG_DSI_8960_PHY_TIMING_CTRL_8 0x00000460
  321. #define REG_DSI_8960_PHY_TIMING_CTRL_9 0x00000464
  322. #define REG_DSI_8960_PHY_TIMING_CTRL_10 0x00000468
  323. #define REG_DSI_8960_PHY_TIMING_CTRL_11 0x0000046c
  324. #define REG_DSI_8960_PHY_CTRL_0 0x00000470
  325. #define REG_DSI_8960_PHY_CTRL_1 0x00000474
  326. #define REG_DSI_8960_PHY_CTRL_2 0x00000478
  327. #define REG_DSI_8960_PHY_CTRL_3 0x0000047c
  328. #define REG_DSI_8960_PHY_STRENGTH_0 0x00000480
  329. #define REG_DSI_8960_PHY_STRENGTH_1 0x00000484
  330. #define REG_DSI_8960_PHY_STRENGTH_2 0x00000488
  331. #define REG_DSI_8960_PHY_BIST_CTRL_0 0x0000048c
  332. #define REG_DSI_8960_PHY_BIST_CTRL_1 0x00000490
  333. #define REG_DSI_8960_PHY_BIST_CTRL_2 0x00000494
  334. #define REG_DSI_8960_PHY_BIST_CTRL_3 0x00000498
  335. #define REG_DSI_8960_PHY_BIST_CTRL_4 0x0000049c
  336. #define REG_DSI_8960_PHY_LDO_CTRL 0x000004b0
  337. #define REG_DSI_8960_PHY_REGULATOR_CTRL_0 0x00000500
  338. #define REG_DSI_8960_PHY_REGULATOR_CTRL_1 0x00000504
  339. #define REG_DSI_8960_PHY_REGULATOR_CTRL_2 0x00000508
  340. #define REG_DSI_8960_PHY_REGULATOR_CTRL_3 0x0000050c
  341. #define REG_DSI_8960_PHY_REGULATOR_CTRL_4 0x00000510
  342. #define REG_DSI_8960_PHY_REGULATOR_CAL_PWR_CFG 0x00000518
  343. #define REG_DSI_8960_PHY_CAL_HW_TRIGGER 0x00000528
  344. #define REG_DSI_8960_PHY_CAL_SW_CFG_0 0x0000052c
  345. #define REG_DSI_8960_PHY_CAL_SW_CFG_1 0x00000530
  346. #define REG_DSI_8960_PHY_CAL_SW_CFG_2 0x00000534
  347. #define REG_DSI_8960_PHY_CAL_HW_CFG_0 0x00000538
  348. #define REG_DSI_8960_PHY_CAL_HW_CFG_1 0x0000053c
  349. #define REG_DSI_8960_PHY_CAL_HW_CFG_2 0x00000540
  350. #define REG_DSI_8960_PHY_CAL_HW_CFG_3 0x00000544
  351. #define REG_DSI_8960_PHY_CAL_HW_CFG_4 0x00000548
  352. #define REG_DSI_8960_PHY_CAL_STATUS 0x00000550
  353. #define DSI_8960_PHY_CAL_STATUS_CAL_BUSY 0x00000010
  354. #endif /* DSI_XML */