dsi_ctrl_hw.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _DSI_CTRL_HW_H_
  6. #define _DSI_CTRL_HW_H_
  7. #include <linux/kernel.h>
  8. #include <linux/types.h>
  9. #include <linux/bitops.h>
  10. #include <linux/bitmap.h>
  11. #include "dsi_defs.h"
  12. #define DSI_CTRL_HW_DBG(c, fmt, ...) DRM_DEV_DEBUG(NULL, "[msm-dsi-debug]: DSI_%d: "\
  13. fmt, c ? c->index : -1, ##__VA_ARGS__)
  14. #define DSI_CTRL_HW_ERR(c, fmt, ...) DRM_DEV_ERROR(NULL, "[msm-dsi-error]: DSI_%d: "\
  15. fmt, c ? c->index : -1, ##__VA_ARGS__)
  16. /**
  17. * Modifier flag for command transmission. If this flag is set, command
  18. * information is programmed to hardware and transmission is not triggered.
  19. * Caller should call the trigger_command_dma() to start the transmission. This
  20. * flag is valed for kickoff_command() and kickoff_fifo_command() operations.
  21. */
  22. #define DSI_CTRL_HW_CMD_WAIT_FOR_TRIGGER 0x1
  23. /**
  24. * enum dsi_ctrl_version - version of the dsi host controller
  25. * @DSI_CTRL_VERSION_UNKNOWN: Unknown controller version
  26. * @DSI_CTRL_VERSION_1_4: DSI host v1.4 controller
  27. * @DSI_CTRL_VERSION_2_0: DSI host v2.0 controller
  28. * @DSI_CTRL_VERSION_2_2: DSI host v2.2 controller
  29. * @DSI_CTRL_VERSION_2_3: DSI host v2.3 controller
  30. * @DSI_CTRL_VERSION_2_4: DSI host v2.4 controller
  31. * @DSI_CTRL_VERSION_MAX: max version
  32. */
  33. enum dsi_ctrl_version {
  34. DSI_CTRL_VERSION_UNKNOWN,
  35. DSI_CTRL_VERSION_1_4,
  36. DSI_CTRL_VERSION_2_0,
  37. DSI_CTRL_VERSION_2_2,
  38. DSI_CTRL_VERSION_2_3,
  39. DSI_CTRL_VERSION_2_4,
  40. DSI_CTRL_VERSION_MAX
  41. };
  42. /**
  43. * enum dsi_ctrl_hw_features - features supported by dsi host controller
  44. * @DSI_CTRL_VIDEO_TPG: Test pattern support for video mode.
  45. * @DSI_CTRL_CMD_TPG: Test pattern support for command mode.
  46. * @DSI_CTRL_VARIABLE_REFRESH_RATE: variable panel timing
  47. * @DSI_CTRL_DYNAMIC_REFRESH: variable pixel clock rate
  48. * @DSI_CTRL_NULL_PACKET_INSERTION: NULL packet insertion
  49. * @DSI_CTRL_DESKEW_CALIB: Deskew calibration support
  50. * @DSI_CTRL_DPHY: Controller support for DPHY
  51. * @DSI_CTRL_CPHY: Controller support for CPHY
  52. * @DSI_CTRL_MAX_FEATURES:
  53. */
  54. enum dsi_ctrl_hw_features {
  55. DSI_CTRL_VIDEO_TPG,
  56. DSI_CTRL_CMD_TPG,
  57. DSI_CTRL_VARIABLE_REFRESH_RATE,
  58. DSI_CTRL_DYNAMIC_REFRESH,
  59. DSI_CTRL_NULL_PACKET_INSERTION,
  60. DSI_CTRL_DESKEW_CALIB,
  61. DSI_CTRL_DPHY,
  62. DSI_CTRL_CPHY,
  63. DSI_CTRL_MAX_FEATURES
  64. };
  65. /**
  66. * enum dsi_test_pattern - test pattern type
  67. * @DSI_TEST_PATTERN_FIXED: Test pattern is fixed, based on init value.
  68. * @DSI_TEST_PATTERN_INC: Incremental test pattern, base on init value.
  69. * @DSI_TEST_PATTERN_POLY: Pattern generated from polynomial and init val.
  70. * @DSI_TEST_PATTERN_MAX:
  71. */
  72. enum dsi_test_pattern {
  73. DSI_TEST_PATTERN_FIXED = 0,
  74. DSI_TEST_PATTERN_INC,
  75. DSI_TEST_PATTERN_POLY,
  76. DSI_TEST_PATTERN_MAX
  77. };
  78. /**
  79. * enum dsi_status_int_index - index of interrupts generated by DSI controller
  80. * @DSI_SINT_CMD_MODE_DMA_DONE: Command mode DMA packets are sent out.
  81. * @DSI_SINT_CMD_STREAM0_FRAME_DONE: A frame of cmd mode stream0 is sent out.
  82. * @DSI_SINT_CMD_STREAM1_FRAME_DONE: A frame of cmd mode stream1 is sent out.
  83. * @DSI_SINT_CMD_STREAM2_FRAME_DONE: A frame of cmd mode stream2 is sent out.
  84. * @DSI_SINT_VIDEO_MODE_FRAME_DONE: A frame of video mode stream is sent out.
  85. * @DSI_SINT_BTA_DONE: A BTA is completed.
  86. * @DSI_SINT_CMD_FRAME_DONE: A frame of selected cmd mode stream is
  87. * sent out by MDP.
  88. * @DSI_SINT_DYN_REFRESH_DONE: The dynamic refresh operation completed.
  89. * @DSI_SINT_DESKEW_DONE: The deskew calibration operation done.
  90. * @DSI_SINT_DYN_BLANK_DMA_DONE: The dynamic blankin DMA operation has
  91. * completed.
  92. * @DSI_SINT_ERROR: DSI error has happened.
  93. */
  94. enum dsi_status_int_index {
  95. DSI_SINT_CMD_MODE_DMA_DONE = 0,
  96. DSI_SINT_CMD_STREAM0_FRAME_DONE = 1,
  97. DSI_SINT_CMD_STREAM1_FRAME_DONE = 2,
  98. DSI_SINT_CMD_STREAM2_FRAME_DONE = 3,
  99. DSI_SINT_VIDEO_MODE_FRAME_DONE = 4,
  100. DSI_SINT_BTA_DONE = 5,
  101. DSI_SINT_CMD_FRAME_DONE = 6,
  102. DSI_SINT_DYN_REFRESH_DONE = 7,
  103. DSI_SINT_DESKEW_DONE = 8,
  104. DSI_SINT_DYN_BLANK_DMA_DONE = 9,
  105. DSI_SINT_ERROR = 10,
  106. DSI_STATUS_INTERRUPT_COUNT
  107. };
  108. /**
  109. * enum dsi_status_int_type - status interrupts generated by DSI controller
  110. * @DSI_CMD_MODE_DMA_DONE: Command mode DMA packets are sent out.
  111. * @DSI_CMD_STREAM0_FRAME_DONE: A frame of command mode stream0 is sent out.
  112. * @DSI_CMD_STREAM1_FRAME_DONE: A frame of command mode stream1 is sent out.
  113. * @DSI_CMD_STREAM2_FRAME_DONE: A frame of command mode stream2 is sent out.
  114. * @DSI_VIDEO_MODE_FRAME_DONE: A frame of video mode stream is sent out.
  115. * @DSI_BTA_DONE: A BTA is completed.
  116. * @DSI_CMD_FRAME_DONE: A frame of selected command mode stream is
  117. * sent out by MDP.
  118. * @DSI_DYN_REFRESH_DONE: The dynamic refresh operation has completed.
  119. * @DSI_DESKEW_DONE: The deskew calibration operation has completed
  120. * @DSI_DYN_BLANK_DMA_DONE: The dynamic blankin DMA operation has
  121. * completed.
  122. * @DSI_ERROR: DSI error has happened.
  123. */
  124. enum dsi_status_int_type {
  125. DSI_CMD_MODE_DMA_DONE = BIT(DSI_SINT_CMD_MODE_DMA_DONE),
  126. DSI_CMD_STREAM0_FRAME_DONE = BIT(DSI_SINT_CMD_STREAM0_FRAME_DONE),
  127. DSI_CMD_STREAM1_FRAME_DONE = BIT(DSI_SINT_CMD_STREAM1_FRAME_DONE),
  128. DSI_CMD_STREAM2_FRAME_DONE = BIT(DSI_SINT_CMD_STREAM2_FRAME_DONE),
  129. DSI_VIDEO_MODE_FRAME_DONE = BIT(DSI_SINT_VIDEO_MODE_FRAME_DONE),
  130. DSI_BTA_DONE = BIT(DSI_SINT_BTA_DONE),
  131. DSI_CMD_FRAME_DONE = BIT(DSI_SINT_CMD_FRAME_DONE),
  132. DSI_DYN_REFRESH_DONE = BIT(DSI_SINT_DYN_REFRESH_DONE),
  133. DSI_DESKEW_DONE = BIT(DSI_SINT_DESKEW_DONE),
  134. DSI_DYN_BLANK_DMA_DONE = BIT(DSI_SINT_DYN_BLANK_DMA_DONE),
  135. DSI_ERROR = BIT(DSI_SINT_ERROR)
  136. };
  137. /**
  138. * enum dsi_error_int_index - index of error interrupts from DSI controller
  139. * @DSI_EINT_RDBK_SINGLE_ECC_ERR: Single bit ECC error in read packet.
  140. * @DSI_EINT_RDBK_MULTI_ECC_ERR: Multi bit ECC error in read packet.
  141. * @DSI_EINT_RDBK_CRC_ERR: CRC error in read packet.
  142. * @DSI_EINT_RDBK_INCOMPLETE_PKT: Incomplete read packet.
  143. * @DSI_EINT_PERIPH_ERROR_PKT: Error packet returned from peripheral,
  144. * @DSI_EINT_LP_RX_TIMEOUT: Low power reverse transmission timeout.
  145. * @DSI_EINT_HS_TX_TIMEOUT: High speed fwd transmission timeout.
  146. * @DSI_EINT_BTA_TIMEOUT: BTA timeout.
  147. * @DSI_EINT_PLL_UNLOCK: PLL has unlocked.
  148. * @DSI_EINT_DLN0_ESC_ENTRY_ERR: Incorrect LP Rx escape entry.
  149. * @DSI_EINT_DLN0_ESC_SYNC_ERR: LP Rx data is not byte aligned.
  150. * @DSI_EINT_DLN0_LP_CONTROL_ERR: Incorrect LP Rx state sequence.
  151. * @DSI_EINT_PANEL_SPECIFIC_ERR: DSI Protocol violation error.
  152. * @DSI_EINT_INTERLEAVE_OP_CONTENTION: Interleave operation contention.
  153. * @DSI_EINT_CMD_DMA_FIFO_UNDERFLOW: Command mode DMA FIFO underflow.
  154. * @DSI_EINT_CMD_MDP_FIFO_UNDERFLOW: Command MDP FIFO underflow (failed to
  155. * receive one complete line from MDP).
  156. * @DSI_EINT_DLN0_HS_FIFO_OVERFLOW: High speed FIFO data lane 0 overflows.
  157. * @DSI_EINT_DLN1_HS_FIFO_OVERFLOW: High speed FIFO data lane 1 overflows.
  158. * @DSI_EINT_DLN2_HS_FIFO_OVERFLOW: High speed FIFO data lane 2 overflows.
  159. * @DSI_EINT_DLN3_HS_FIFO_OVERFLOW: High speed FIFO data lane 3 overflows.
  160. * @DSI_EINT_DLN0_HS_FIFO_UNDERFLOW: High speed FIFO data lane 0 underflows.
  161. * @DSI_EINT_DLN1_HS_FIFO_UNDERFLOW: High speed FIFO data lane 1 underflows.
  162. * @DSI_EINT_DLN2_HS_FIFO_UNDERFLOW: High speed FIFO data lane 2 underflows.
  163. * @DSI_EINT_DLN3_HS_FIFO_UNDERFLOW: High speed FIFO data lane 3 undeflows.
  164. * @DSI_EINT_DLN0_LP0_CONTENTION: PHY level contention while lane 0 low.
  165. * @DSI_EINT_DLN1_LP0_CONTENTION: PHY level contention while lane 1 low.
  166. * @DSI_EINT_DLN2_LP0_CONTENTION: PHY level contention while lane 2 low.
  167. * @DSI_EINT_DLN3_LP0_CONTENTION: PHY level contention while lane 3 low.
  168. * @DSI_EINT_DLN0_LP1_CONTENTION: PHY level contention while lane 0 high.
  169. * @DSI_EINT_DLN1_LP1_CONTENTION: PHY level contention while lane 1 high.
  170. * @DSI_EINT_DLN2_LP1_CONTENTION: PHY level contention while lane 2 high.
  171. * @DSI_EINT_DLN3_LP1_CONTENTION: PHY level contention while lane 3 high.
  172. */
  173. enum dsi_error_int_index {
  174. DSI_EINT_RDBK_SINGLE_ECC_ERR = 0,
  175. DSI_EINT_RDBK_MULTI_ECC_ERR = 1,
  176. DSI_EINT_RDBK_CRC_ERR = 2,
  177. DSI_EINT_RDBK_INCOMPLETE_PKT = 3,
  178. DSI_EINT_PERIPH_ERROR_PKT = 4,
  179. DSI_EINT_LP_RX_TIMEOUT = 5,
  180. DSI_EINT_HS_TX_TIMEOUT = 6,
  181. DSI_EINT_BTA_TIMEOUT = 7,
  182. DSI_EINT_PLL_UNLOCK = 8,
  183. DSI_EINT_DLN0_ESC_ENTRY_ERR = 9,
  184. DSI_EINT_DLN0_ESC_SYNC_ERR = 10,
  185. DSI_EINT_DLN0_LP_CONTROL_ERR = 11,
  186. DSI_EINT_PANEL_SPECIFIC_ERR = 12,
  187. DSI_EINT_INTERLEAVE_OP_CONTENTION = 13,
  188. DSI_EINT_CMD_DMA_FIFO_UNDERFLOW = 14,
  189. DSI_EINT_CMD_MDP_FIFO_UNDERFLOW = 15,
  190. DSI_EINT_DLN0_HS_FIFO_OVERFLOW = 16,
  191. DSI_EINT_DLN1_HS_FIFO_OVERFLOW = 17,
  192. DSI_EINT_DLN2_HS_FIFO_OVERFLOW = 18,
  193. DSI_EINT_DLN3_HS_FIFO_OVERFLOW = 19,
  194. DSI_EINT_DLN0_HS_FIFO_UNDERFLOW = 20,
  195. DSI_EINT_DLN1_HS_FIFO_UNDERFLOW = 21,
  196. DSI_EINT_DLN2_HS_FIFO_UNDERFLOW = 22,
  197. DSI_EINT_DLN3_HS_FIFO_UNDERFLOW = 23,
  198. DSI_EINT_DLN0_LP0_CONTENTION = 24,
  199. DSI_EINT_DLN1_LP0_CONTENTION = 25,
  200. DSI_EINT_DLN2_LP0_CONTENTION = 26,
  201. DSI_EINT_DLN3_LP0_CONTENTION = 27,
  202. DSI_EINT_DLN0_LP1_CONTENTION = 28,
  203. DSI_EINT_DLN1_LP1_CONTENTION = 29,
  204. DSI_EINT_DLN2_LP1_CONTENTION = 30,
  205. DSI_EINT_DLN3_LP1_CONTENTION = 31,
  206. DSI_ERROR_INTERRUPT_COUNT
  207. };
  208. /**
  209. * enum dsi_error_int_type - error interrupts generated by DSI controller
  210. * @DSI_RDBK_SINGLE_ECC_ERR: Single bit ECC error in read packet.
  211. * @DSI_RDBK_MULTI_ECC_ERR: Multi bit ECC error in read packet.
  212. * @DSI_RDBK_CRC_ERR: CRC error in read packet.
  213. * @DSI_RDBK_INCOMPLETE_PKT: Incomplete read packet.
  214. * @DSI_PERIPH_ERROR_PKT: Error packet returned from peripheral,
  215. * @DSI_LP_RX_TIMEOUT: Low power reverse transmission timeout.
  216. * @DSI_HS_TX_TIMEOUT: High speed forward transmission timeout.
  217. * @DSI_BTA_TIMEOUT: BTA timeout.
  218. * @DSI_PLL_UNLOCK: PLL has unlocked.
  219. * @DSI_DLN0_ESC_ENTRY_ERR: Incorrect LP Rx escape entry.
  220. * @DSI_DLN0_ESC_SYNC_ERR: LP Rx data is not byte aligned.
  221. * @DSI_DLN0_LP_CONTROL_ERR: Incorrect LP Rx state sequence.
  222. * @DSI_PANEL_SPECIFIC_ERR: DSI Protocol violation.
  223. * @DSI_INTERLEAVE_OP_CONTENTION: Interleave operation contention.
  224. * @DSI_CMD_DMA_FIFO_UNDERFLOW: Command mode DMA FIFO underflow.
  225. * @DSI_CMD_MDP_FIFO_UNDERFLOW: Command MDP FIFO underflow (failed to
  226. * receive one complete line from MDP).
  227. * @DSI_DLN0_HS_FIFO_OVERFLOW: High speed FIFO for data lane 0 overflows.
  228. * @DSI_DLN1_HS_FIFO_OVERFLOW: High speed FIFO for data lane 1 overflows.
  229. * @DSI_DLN2_HS_FIFO_OVERFLOW: High speed FIFO for data lane 2 overflows.
  230. * @DSI_DLN3_HS_FIFO_OVERFLOW: High speed FIFO for data lane 3 overflows.
  231. * @DSI_DLN0_HS_FIFO_UNDERFLOW: High speed FIFO for data lane 0 underflows.
  232. * @DSI_DLN1_HS_FIFO_UNDERFLOW: High speed FIFO for data lane 1 underflows.
  233. * @DSI_DLN2_HS_FIFO_UNDERFLOW: High speed FIFO for data lane 2 underflows.
  234. * @DSI_DLN3_HS_FIFO_UNDERFLOW: High speed FIFO for data lane 3 undeflows.
  235. * @DSI_DLN0_LP0_CONTENTION: PHY level contention while lane 0 is low.
  236. * @DSI_DLN1_LP0_CONTENTION: PHY level contention while lane 1 is low.
  237. * @DSI_DLN2_LP0_CONTENTION: PHY level contention while lane 2 is low.
  238. * @DSI_DLN3_LP0_CONTENTION: PHY level contention while lane 3 is low.
  239. * @DSI_DLN0_LP1_CONTENTION: PHY level contention while lane 0 is high.
  240. * @DSI_DLN1_LP1_CONTENTION: PHY level contention while lane 1 is high.
  241. * @DSI_DLN2_LP1_CONTENTION: PHY level contention while lane 2 is high.
  242. * @DSI_DLN3_LP1_CONTENTION: PHY level contention while lane 3 is high.
  243. */
  244. enum dsi_error_int_type {
  245. DSI_RDBK_SINGLE_ECC_ERR = BIT(DSI_EINT_RDBK_SINGLE_ECC_ERR),
  246. DSI_RDBK_MULTI_ECC_ERR = BIT(DSI_EINT_RDBK_MULTI_ECC_ERR),
  247. DSI_RDBK_CRC_ERR = BIT(DSI_EINT_RDBK_CRC_ERR),
  248. DSI_RDBK_INCOMPLETE_PKT = BIT(DSI_EINT_RDBK_INCOMPLETE_PKT),
  249. DSI_PERIPH_ERROR_PKT = BIT(DSI_EINT_PERIPH_ERROR_PKT),
  250. DSI_LP_RX_TIMEOUT = BIT(DSI_EINT_LP_RX_TIMEOUT),
  251. DSI_HS_TX_TIMEOUT = BIT(DSI_EINT_HS_TX_TIMEOUT),
  252. DSI_BTA_TIMEOUT = BIT(DSI_EINT_BTA_TIMEOUT),
  253. DSI_PLL_UNLOCK = BIT(DSI_EINT_PLL_UNLOCK),
  254. DSI_DLN0_ESC_ENTRY_ERR = BIT(DSI_EINT_DLN0_ESC_ENTRY_ERR),
  255. DSI_DLN0_ESC_SYNC_ERR = BIT(DSI_EINT_DLN0_ESC_SYNC_ERR),
  256. DSI_DLN0_LP_CONTROL_ERR = BIT(DSI_EINT_DLN0_LP_CONTROL_ERR),
  257. DSI_PANEL_SPECIFIC_ERR = BIT(DSI_EINT_PANEL_SPECIFIC_ERR),
  258. DSI_INTERLEAVE_OP_CONTENTION = BIT(DSI_EINT_INTERLEAVE_OP_CONTENTION),
  259. DSI_CMD_DMA_FIFO_UNDERFLOW = BIT(DSI_EINT_CMD_DMA_FIFO_UNDERFLOW),
  260. DSI_CMD_MDP_FIFO_UNDERFLOW = BIT(DSI_EINT_CMD_MDP_FIFO_UNDERFLOW),
  261. DSI_DLN0_HS_FIFO_OVERFLOW = BIT(DSI_EINT_DLN0_HS_FIFO_OVERFLOW),
  262. DSI_DLN1_HS_FIFO_OVERFLOW = BIT(DSI_EINT_DLN1_HS_FIFO_OVERFLOW),
  263. DSI_DLN2_HS_FIFO_OVERFLOW = BIT(DSI_EINT_DLN2_HS_FIFO_OVERFLOW),
  264. DSI_DLN3_HS_FIFO_OVERFLOW = BIT(DSI_EINT_DLN3_HS_FIFO_OVERFLOW),
  265. DSI_DLN0_HS_FIFO_UNDERFLOW = BIT(DSI_EINT_DLN0_HS_FIFO_UNDERFLOW),
  266. DSI_DLN1_HS_FIFO_UNDERFLOW = BIT(DSI_EINT_DLN1_HS_FIFO_UNDERFLOW),
  267. DSI_DLN2_HS_FIFO_UNDERFLOW = BIT(DSI_EINT_DLN2_HS_FIFO_UNDERFLOW),
  268. DSI_DLN3_HS_FIFO_UNDERFLOW = BIT(DSI_EINT_DLN3_HS_FIFO_UNDERFLOW),
  269. DSI_DLN0_LP0_CONTENTION = BIT(DSI_EINT_DLN0_LP0_CONTENTION),
  270. DSI_DLN1_LP0_CONTENTION = BIT(DSI_EINT_DLN1_LP0_CONTENTION),
  271. DSI_DLN2_LP0_CONTENTION = BIT(DSI_EINT_DLN2_LP0_CONTENTION),
  272. DSI_DLN3_LP0_CONTENTION = BIT(DSI_EINT_DLN3_LP0_CONTENTION),
  273. DSI_DLN0_LP1_CONTENTION = BIT(DSI_EINT_DLN0_LP1_CONTENTION),
  274. DSI_DLN1_LP1_CONTENTION = BIT(DSI_EINT_DLN1_LP1_CONTENTION),
  275. DSI_DLN2_LP1_CONTENTION = BIT(DSI_EINT_DLN2_LP1_CONTENTION),
  276. DSI_DLN3_LP1_CONTENTION = BIT(DSI_EINT_DLN3_LP1_CONTENTION),
  277. };
  278. /**
  279. * struct dsi_ctrl_cmd_dma_info - command buffer information
  280. * @offset: IOMMU VA for command buffer address.
  281. * @length: Length of the command buffer.
  282. * @datatype: Datatype of cmd.
  283. * @en_broadcast: Enable broadcast mode if set to true.
  284. * @is_master: Is master in broadcast mode.
  285. * @use_lpm: Use low power mode for command transmission.
  286. */
  287. struct dsi_ctrl_cmd_dma_info {
  288. u32 offset;
  289. u32 length;
  290. u8 datatype;
  291. bool en_broadcast;
  292. bool is_master;
  293. bool use_lpm;
  294. };
  295. /**
  296. * struct dsi_ctrl_cmd_dma_fifo_info - command payload tp be sent using FIFO
  297. * @command: VA for command buffer.
  298. * @size: Size of the command buffer.
  299. * @en_broadcast: Enable broadcast mode if set to true.
  300. * @is_master: Is master in broadcast mode.
  301. * @use_lpm: Use low power mode for command transmission.
  302. */
  303. struct dsi_ctrl_cmd_dma_fifo_info {
  304. u32 *command;
  305. u32 size;
  306. bool en_broadcast;
  307. bool is_master;
  308. bool use_lpm;
  309. };
  310. struct dsi_ctrl_hw;
  311. struct ctrl_ulps_config_ops {
  312. /**
  313. * ulps_request() - request ulps entry for specified lanes
  314. * @ctrl: Pointer to the controller host hardware.
  315. * @lanes: ORed list of lanes (enum dsi_data_lanes) which need
  316. * to enter ULPS.
  317. *
  318. * Caller should check if lanes are in ULPS mode by calling
  319. * get_lanes_in_ulps() operation.
  320. */
  321. void (*ulps_request)(struct dsi_ctrl_hw *ctrl, u32 lanes);
  322. /**
  323. * ulps_exit() - exit ULPS on specified lanes
  324. * @ctrl: Pointer to the controller host hardware.
  325. * @lanes: ORed list of lanes (enum dsi_data_lanes) which need
  326. * to exit ULPS.
  327. *
  328. * Caller should check if lanes are in active mode by calling
  329. * get_lanes_in_ulps() operation.
  330. */
  331. void (*ulps_exit)(struct dsi_ctrl_hw *ctrl, u32 lanes);
  332. /**
  333. * get_lanes_in_ulps() - returns the list of lanes in ULPS mode
  334. * @ctrl: Pointer to the controller host hardware.
  335. *
  336. * Returns an ORed list of lanes (enum dsi_data_lanes) that are in ULPS
  337. * state. If 0 is returned, all the lanes are active.
  338. *
  339. * Return: List of lanes in ULPS state.
  340. */
  341. u32 (*get_lanes_in_ulps)(struct dsi_ctrl_hw *ctrl);
  342. };
  343. /**
  344. * struct dsi_ctrl_hw_ops - operations supported by dsi host hardware
  345. */
  346. struct dsi_ctrl_hw_ops {
  347. /**
  348. * host_setup() - Setup DSI host configuration
  349. * @ctrl: Pointer to controller host hardware.
  350. * @config: Configuration for DSI host controller
  351. */
  352. void (*host_setup)(struct dsi_ctrl_hw *ctrl,
  353. struct dsi_host_common_cfg *config);
  354. /**
  355. * video_engine_en() - enable DSI video engine
  356. * @ctrl: Pointer to controller host hardware.
  357. * @on: Enable/disabel video engine.
  358. */
  359. void (*video_engine_en)(struct dsi_ctrl_hw *ctrl, bool on);
  360. /**
  361. * setup_avr() - set the AVR_SUPPORT_ENABLE bit in DSI_VIDEO_MODE_CTRL
  362. * @ctrl: Pointer to controller host hardware.
  363. * @enable: Controls whether this bit is set or cleared
  364. */
  365. void (*setup_avr)(struct dsi_ctrl_hw *ctrl, bool enable);
  366. /**
  367. * video_engine_setup() - Setup dsi host controller for video mode
  368. * @ctrl: Pointer to controller host hardware.
  369. * @common_cfg: Common configuration parameters.
  370. * @cfg: Video mode configuration.
  371. *
  372. * Set up DSI video engine with a specific configuration. Controller and
  373. * video engine are not enabled as part of this function.
  374. */
  375. void (*video_engine_setup)(struct dsi_ctrl_hw *ctrl,
  376. struct dsi_host_common_cfg *common_cfg,
  377. struct dsi_video_engine_cfg *cfg);
  378. /**
  379. * set_video_timing() - set up the timing for video frame
  380. * @ctrl: Pointer to controller host hardware.
  381. * @mode: Video mode information.
  382. *
  383. * Set up the video timing parameters for the DSI video mode operation.
  384. */
  385. void (*set_video_timing)(struct dsi_ctrl_hw *ctrl,
  386. struct dsi_mode_info *mode);
  387. /**
  388. * cmd_engine_setup() - setup dsi host controller for command mode
  389. * @ctrl: Pointer to the controller host hardware.
  390. * @common_cfg: Common configuration parameters.
  391. * @cfg: Command mode configuration.
  392. *
  393. * Setup DSI CMD engine with a specific configuration. Controller and
  394. * command engine are not enabled as part of this function.
  395. */
  396. void (*cmd_engine_setup)(struct dsi_ctrl_hw *ctrl,
  397. struct dsi_host_common_cfg *common_cfg,
  398. struct dsi_cmd_engine_cfg *cfg);
  399. /**
  400. * setup_cmd_stream() - set up parameters for command pixel streams
  401. * @ctrl: Pointer to controller host hardware.
  402. * @mode: Pointer to mode information.
  403. * @h_stride: Horizontal stride in bytes.
  404. * @vc_id: stream_id.
  405. *
  406. * Setup parameters for command mode pixel stream size.
  407. */
  408. void (*setup_cmd_stream)(struct dsi_ctrl_hw *ctrl,
  409. struct dsi_mode_info *mode,
  410. u32 h_stride,
  411. u32 vc_id,
  412. struct dsi_rect *roi);
  413. /**
  414. * ctrl_en() - enable DSI controller engine
  415. * @ctrl: Pointer to the controller host hardware.
  416. * @on: turn on/off the DSI controller engine.
  417. */
  418. void (*ctrl_en)(struct dsi_ctrl_hw *ctrl, bool on);
  419. /**
  420. * cmd_engine_en() - enable DSI controller command engine
  421. * @ctrl: Pointer to the controller host hardware.
  422. * @on: Turn on/off the DSI command engine.
  423. */
  424. void (*cmd_engine_en)(struct dsi_ctrl_hw *ctrl, bool on);
  425. /**
  426. * phy_sw_reset() - perform a soft reset on the PHY.
  427. * @ctrl: Pointer to the controller host hardware.
  428. */
  429. void (*phy_sw_reset)(struct dsi_ctrl_hw *ctrl);
  430. /**
  431. * config_clk_gating() - enable/disable DSI PHY clk gating
  432. * @ctrl: Pointer to the controller host hardware.
  433. * @enable: enable/disable DSI PHY clock gating.
  434. * @clk_selection: clock to enable/disable clock gating.
  435. */
  436. void (*config_clk_gating)(struct dsi_ctrl_hw *ctrl, bool enable,
  437. enum dsi_clk_gate_type clk_selection);
  438. /**
  439. * debug_bus() - get dsi debug bus status.
  440. * @ctrl: Pointer to the controller host hardware.
  441. * @entries: Array of dsi debug bus control values.
  442. * @size: Size of dsi debug bus control array.
  443. */
  444. void (*debug_bus)(struct dsi_ctrl_hw *ctrl, u32 *entries, u32 size);
  445. /**
  446. * soft_reset() - perform a soft reset on DSI controller
  447. * @ctrl: Pointer to the controller host hardware.
  448. *
  449. * The video, command and controller engines will be disabled before the
  450. * reset is triggered. After, the engines will be re-enabled to the same
  451. * state as before the reset.
  452. *
  453. * If the reset is done while MDP timing engine is turned on, the video
  454. * engine should be re-enabled only during the vertical blanking time.
  455. */
  456. void (*soft_reset)(struct dsi_ctrl_hw *ctrl);
  457. /**
  458. * setup_lane_map() - setup mapping between logical and physical lanes
  459. * @ctrl: Pointer to the controller host hardware.
  460. * @lane_map: Structure defining the mapping between DSI logical
  461. * lanes and physical lanes.
  462. */
  463. void (*setup_lane_map)(struct dsi_ctrl_hw *ctrl,
  464. struct dsi_lane_map *lane_map);
  465. /**
  466. * kickoff_command() - transmits commands stored in memory
  467. * @ctrl: Pointer to the controller host hardware.
  468. * @cmd: Command information.
  469. * @flags: Modifiers for command transmission.
  470. *
  471. * The controller hardware is programmed with address and size of the
  472. * command buffer. The transmission is kicked off if
  473. * DSI_CTRL_HW_CMD_WAIT_FOR_TRIGGER flag is not set. If this flag is
  474. * set, caller should make a separate call to trigger_command_dma() to
  475. * transmit the command.
  476. */
  477. void (*kickoff_command)(struct dsi_ctrl_hw *ctrl,
  478. struct dsi_ctrl_cmd_dma_info *cmd,
  479. u32 flags);
  480. /**
  481. * kickoff_command_non_embedded_mode() - cmd in non embedded mode
  482. * @ctrl: Pointer to the controller host hardware.
  483. * @cmd: Command information.
  484. * @flags: Modifiers for command transmission.
  485. *
  486. * If command length is greater than DMA FIFO size of 256 bytes we use
  487. * this non- embedded mode.
  488. * The controller hardware is programmed with address and size of the
  489. * command buffer. The transmission is kicked off if
  490. * DSI_CTRL_HW_CMD_WAIT_FOR_TRIGGER flag is not set. If this flag is
  491. * set, caller should make a separate call to trigger_command_dma() to
  492. * transmit the command.
  493. */
  494. void (*kickoff_command_non_embedded_mode)(struct dsi_ctrl_hw *ctrl,
  495. struct dsi_ctrl_cmd_dma_info *cmd,
  496. u32 flags);
  497. /**
  498. * kickoff_fifo_command() - transmits a command using FIFO in dsi
  499. * hardware.
  500. * @ctrl: Pointer to the controller host hardware.
  501. * @cmd: Command information.
  502. * @flags: Modifiers for command transmission.
  503. *
  504. * The controller hardware FIFO is programmed with command header and
  505. * payload. The transmission is kicked off if
  506. * DSI_CTRL_HW_CMD_WAIT_FOR_TRIGGER flag is not set. If this flag is
  507. * set, caller should make a separate call to trigger_command_dma() to
  508. * transmit the command.
  509. */
  510. void (*kickoff_fifo_command)(struct dsi_ctrl_hw *ctrl,
  511. struct dsi_ctrl_cmd_dma_fifo_info *cmd,
  512. u32 flags);
  513. void (*reset_cmd_fifo)(struct dsi_ctrl_hw *ctrl);
  514. /**
  515. * trigger_command_dma() - trigger transmission of command buffer.
  516. * @ctrl: Pointer to the controller host hardware.
  517. *
  518. * This trigger can be only used if there was a prior call to
  519. * kickoff_command() of kickoff_fifo_command() with
  520. * DSI_CTRL_HW_CMD_WAIT_FOR_TRIGGER flag.
  521. */
  522. void (*trigger_command_dma)(struct dsi_ctrl_hw *ctrl);
  523. /**
  524. * get_cmd_read_data() - get data read from the peripheral
  525. * @ctrl: Pointer to the controller host hardware.
  526. * @rd_buf: Buffer where data will be read into.
  527. * @read_offset: Offset from where to read.
  528. * @rx_byte: Number of bytes to be read.
  529. * @pkt_size: Size of response expected.
  530. * @hw_read_cnt: Actual number of bytes read by HW.
  531. */
  532. u32 (*get_cmd_read_data)(struct dsi_ctrl_hw *ctrl,
  533. u8 *rd_buf,
  534. u32 read_offset,
  535. u32 rx_byte,
  536. u32 pkt_size,
  537. u32 *hw_read_cnt);
  538. /**
  539. * wait_for_lane_idle() - wait for DSI lanes to go to idle state
  540. * @ctrl: Pointer to the controller host hardware.
  541. * @lanes: ORed list of lanes (enum dsi_data_lanes) which need
  542. * to be checked to be in idle state.
  543. */
  544. int (*wait_for_lane_idle)(struct dsi_ctrl_hw *ctrl, u32 lanes);
  545. struct ctrl_ulps_config_ops ulps_ops;
  546. /**
  547. * clamp_enable() - enable DSI clamps
  548. * @ctrl: Pointer to the controller host hardware.
  549. * @lanes: ORed list of lanes which need to have clamps released.
  550. * @enable_ulps: ulps state.
  551. */
  552. /**
  553. * clamp_enable() - enable DSI clamps to keep PHY driving a stable link
  554. * @ctrl: Pointer to the controller host hardware.
  555. * @lanes: ORed list of lanes which need to have clamps released.
  556. * @enable_ulps: TODO:??
  557. */
  558. void (*clamp_enable)(struct dsi_ctrl_hw *ctrl,
  559. u32 lanes,
  560. bool enable_ulps);
  561. /**
  562. * clamp_disable() - disable DSI clamps
  563. * @ctrl: Pointer to the controller host hardware.
  564. * @lanes: ORed list of lanes which need to have clamps released.
  565. * @disable_ulps: ulps state.
  566. */
  567. void (*clamp_disable)(struct dsi_ctrl_hw *ctrl,
  568. u32 lanes,
  569. bool disable_ulps);
  570. /**
  571. * phy_reset_config() - Disable/enable propagation of reset signal
  572. * from ahb domain to DSI PHY
  573. * @ctrl: Pointer to the controller host hardware.
  574. * @enable: True to mask the reset signal, false to unmask
  575. */
  576. void (*phy_reset_config)(struct dsi_ctrl_hw *ctrl,
  577. bool enable);
  578. /**
  579. * get_interrupt_status() - returns the interrupt status
  580. * @ctrl: Pointer to the controller host hardware.
  581. *
  582. * Returns the ORed list of interrupts(enum dsi_status_int_type) that
  583. * are active. This list does not include any error interrupts. Caller
  584. * should call get_error_status for error interrupts.
  585. *
  586. * Return: List of active interrupts.
  587. */
  588. u32 (*get_interrupt_status)(struct dsi_ctrl_hw *ctrl);
  589. /**
  590. * clear_interrupt_status() - clears the specified interrupts
  591. * @ctrl: Pointer to the controller host hardware.
  592. * @ints: List of interrupts to be cleared.
  593. */
  594. void (*clear_interrupt_status)(struct dsi_ctrl_hw *ctrl, u32 ints);
  595. /**
  596. * enable_status_interrupts() - enable the specified interrupts
  597. * @ctrl: Pointer to the controller host hardware.
  598. * @ints: List of interrupts to be enabled.
  599. *
  600. * Enables the specified interrupts. This list will override the
  601. * previous interrupts enabled through this function. Caller has to
  602. * maintain the state of the interrupts enabled. To disable all
  603. * interrupts, set ints to 0.
  604. */
  605. void (*enable_status_interrupts)(struct dsi_ctrl_hw *ctrl, u32 ints);
  606. /**
  607. * get_error_status() - returns the error status
  608. * @ctrl: Pointer to the controller host hardware.
  609. *
  610. * Returns the ORed list of errors(enum dsi_error_int_type) that are
  611. * active. This list does not include any status interrupts. Caller
  612. * should call get_interrupt_status for status interrupts.
  613. *
  614. * Return: List of active error interrupts.
  615. */
  616. u64 (*get_error_status)(struct dsi_ctrl_hw *ctrl);
  617. /**
  618. * clear_error_status() - clears the specified errors
  619. * @ctrl: Pointer to the controller host hardware.
  620. * @errors: List of errors to be cleared.
  621. */
  622. void (*clear_error_status)(struct dsi_ctrl_hw *ctrl, u64 errors);
  623. /**
  624. * enable_error_interrupts() - enable the specified interrupts
  625. * @ctrl: Pointer to the controller host hardware.
  626. * @errors: List of errors to be enabled.
  627. *
  628. * Enables the specified interrupts. This list will override the
  629. * previous interrupts enabled through this function. Caller has to
  630. * maintain the state of the interrupts enabled. To disable all
  631. * interrupts, set errors to 0.
  632. */
  633. void (*enable_error_interrupts)(struct dsi_ctrl_hw *ctrl, u64 errors);
  634. /**
  635. * video_test_pattern_setup() - setup test pattern engine for video mode
  636. * @ctrl: Pointer to the controller host hardware.
  637. * @type: Type of test pattern.
  638. * @init_val: Initial value to use for generating test pattern.
  639. */
  640. void (*video_test_pattern_setup)(struct dsi_ctrl_hw *ctrl,
  641. enum dsi_test_pattern type,
  642. u32 init_val);
  643. /**
  644. * cmd_test_pattern_setup() - setup test patttern engine for cmd mode
  645. * @ctrl: Pointer to the controller host hardware.
  646. * @type: Type of test pattern.
  647. * @init_val: Initial value to use for generating test pattern.
  648. * @stream_id: Stream Id on which packets are generated.
  649. */
  650. void (*cmd_test_pattern_setup)(struct dsi_ctrl_hw *ctrl,
  651. enum dsi_test_pattern type,
  652. u32 init_val,
  653. u32 stream_id);
  654. /**
  655. * test_pattern_enable() - enable test pattern engine
  656. * @ctrl: Pointer to the controller host hardware.
  657. * @enable: Enable/Disable test pattern engine.
  658. */
  659. void (*test_pattern_enable)(struct dsi_ctrl_hw *ctrl, bool enable);
  660. /**
  661. * clear_phy0_ln_err() - clear DSI PHY lane-0 errors
  662. * @ctrl: Pointer to the controller host hardware.
  663. */
  664. void (*clear_phy0_ln_err)(struct dsi_ctrl_hw *ctrl);
  665. /**
  666. * trigger_cmd_test_pattern() - trigger a command mode frame update with
  667. * test pattern
  668. * @ctrl: Pointer to the controller host hardware.
  669. * @stream_id: Stream on which frame update is sent.
  670. */
  671. void (*trigger_cmd_test_pattern)(struct dsi_ctrl_hw *ctrl,
  672. u32 stream_id);
  673. ssize_t (*reg_dump_to_buffer)(struct dsi_ctrl_hw *ctrl,
  674. char *buf,
  675. u32 size);
  676. /**
  677. * setup_misr() - Setup frame MISR
  678. * @ctrl: Pointer to the controller host hardware.
  679. * @panel_mode: CMD or VIDEO mode indicator
  680. * @enable: Enable/disable MISR.
  681. * @frame_count: Number of frames to accumulate MISR.
  682. */
  683. void (*setup_misr)(struct dsi_ctrl_hw *ctrl,
  684. enum dsi_op_mode panel_mode,
  685. bool enable, u32 frame_count);
  686. /**
  687. * collect_misr() - Read frame MISR
  688. * @ctrl: Pointer to the controller host hardware.
  689. * @panel_mode: CMD or VIDEO mode indicator
  690. */
  691. u32 (*collect_misr)(struct dsi_ctrl_hw *ctrl,
  692. enum dsi_op_mode panel_mode);
  693. /**
  694. * set_timing_db() - enable/disable Timing DB register
  695. * @ctrl: Pointer to controller host hardware.
  696. * @enable: Enable/Disable flag.
  697. *
  698. * Enable or Disabe the Timing DB register.
  699. */
  700. void (*set_timing_db)(struct dsi_ctrl_hw *ctrl,
  701. bool enable);
  702. /**
  703. * clear_rdbk_register() - Clear and reset read back register
  704. * @ctrl: Pointer to the controller host hardware.
  705. */
  706. void (*clear_rdbk_register)(struct dsi_ctrl_hw *ctrl);
  707. /** schedule_dma_cmd() - Schdeule DMA command transfer on a
  708. * particular blanking line.
  709. * @ctrl: Pointer to the controller host hardware.
  710. * @line_no: Blanking line number on whihch DMA command
  711. * needs to be sent.
  712. */
  713. void (*schedule_dma_cmd)(struct dsi_ctrl_hw *ctrl, int line_no);
  714. /**
  715. * ctrl_reset() - Reset DSI lanes to recover from DSI errors
  716. * @ctrl: Pointer to the controller host hardware.
  717. * @mask: Indicates the error type.
  718. */
  719. int (*ctrl_reset)(struct dsi_ctrl_hw *ctrl, int mask);
  720. /**
  721. * mask_error_int() - Mask/Unmask particular DSI error interrupts
  722. * @ctrl: Pointer to the controller host hardware.
  723. * @idx: Indicates the errors to be masked.
  724. * @en: Bool for mask or unmask of the error
  725. */
  726. void (*mask_error_intr)(struct dsi_ctrl_hw *ctrl, u32 idx, bool en);
  727. /**
  728. * error_intr_ctrl() - Mask/Unmask master DSI error interrupt
  729. * @ctrl: Pointer to the controller host hardware.
  730. * @en: Bool for mask or unmask of DSI error
  731. */
  732. void (*error_intr_ctrl)(struct dsi_ctrl_hw *ctrl, bool en);
  733. /**
  734. * get_error_mask() - get DSI error interrupt mask status
  735. * @ctrl: Pointer to the controller host hardware.
  736. */
  737. u32 (*get_error_mask)(struct dsi_ctrl_hw *ctrl);
  738. /**
  739. * get_hw_version() - get DSI controller hw version
  740. * @ctrl: Pointer to the controller host hardware.
  741. */
  742. u32 (*get_hw_version)(struct dsi_ctrl_hw *ctrl);
  743. /**
  744. * wait_for_cmd_mode_mdp_idle() - wait for command mode engine not to
  745. * be busy sending data from display engine
  746. * @ctrl: Pointer to the controller host hardware.
  747. */
  748. int (*wait_for_cmd_mode_mdp_idle)(struct dsi_ctrl_hw *ctrl);
  749. /**
  750. * hw.ops.set_continuous_clk() - Set continuous clock
  751. * @ctrl: Pointer to the controller host hardware.
  752. * @enable: Bool to control continuous clock request.
  753. */
  754. void (*set_continuous_clk)(struct dsi_ctrl_hw *ctrl, bool enable);
  755. /**
  756. * hw.ops.wait4dynamic_refresh_done() - Wait for dynamic refresh done
  757. * @ctrl: Pointer to the controller host hardware.
  758. */
  759. int (*wait4dynamic_refresh_done)(struct dsi_ctrl_hw *ctrl);
  760. /**
  761. * hw.ops.hs_req_sel() - enable continuous clk support through phy
  762. * @ctrl: Pointer to the controller host hardware.
  763. * @sel_phy: Bool to control whether to select phy or controller
  764. */
  765. void (*hs_req_sel)(struct dsi_ctrl_hw *ctrl, bool sel_phy);
  766. };
  767. /*
  768. * struct dsi_ctrl_hw - DSI controller hardware object specific to an instance
  769. * @base: VA for the DSI controller base address.
  770. * @length: Length of the DSI controller register map.
  771. * @mmss_misc_base: Base address of mmss_misc register map.
  772. * @mmss_misc_length: Length of mmss_misc register map.
  773. * @disp_cc_base: Base address of disp_cc register map.
  774. * @disp_cc_length: Length of disp_cc register map.
  775. * @index: Instance ID of the controller.
  776. * @feature_map: Features supported by the DSI controller.
  777. * @ops: Function pointers to the operations supported by the
  778. * controller.
  779. * @supported_interrupts: Number of supported interrupts.
  780. * @supported_errors: Number of supported errors.
  781. * @phy_isolation_enabled: A boolean property allows to isolate the phy from
  782. * dsi controller and run only dsi controller.
  783. * @null_insertion_enabled: A boolean property to allow dsi controller to
  784. * insert null packet.
  785. */
  786. struct dsi_ctrl_hw {
  787. void __iomem *base;
  788. u32 length;
  789. void __iomem *mmss_misc_base;
  790. u32 mmss_misc_length;
  791. void __iomem *disp_cc_base;
  792. u32 disp_cc_length;
  793. u32 index;
  794. /* features */
  795. DECLARE_BITMAP(feature_map, DSI_CTRL_MAX_FEATURES);
  796. struct dsi_ctrl_hw_ops ops;
  797. /* capabilities */
  798. u32 supported_interrupts;
  799. u64 supported_errors;
  800. bool phy_isolation_enabled;
  801. bool null_insertion_enabled;
  802. };
  803. #endif /* _DSI_CTRL_HW_H_ */