dsi_ctrl_reg.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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_REG_H_
  6. #define _DSI_CTRL_REG_H_
  7. #define DSI_HW_VERSION (0x0000)
  8. #define DSI_CTRL (0x0004)
  9. #define DSI_STATUS (0x0008)
  10. #define DSI_FIFO_STATUS (0x000C)
  11. #define DSI_VIDEO_MODE_CTRL (0x0010)
  12. #define DSI_VIDEO_MODE_SYNC_DATATYPE (0x0014)
  13. #define DSI_VIDEO_MODE_PIXEL_DATATYPE (0x0018)
  14. #define DSI_VIDEO_MODE_BLANKING_DATATYPE (0x001C)
  15. #define DSI_VIDEO_MODE_DATA_CTRL (0x0020)
  16. #define DSI_VIDEO_MODE_ACTIVE_H (0x0024)
  17. #define DSI_VIDEO_MODE_ACTIVE_V (0x0028)
  18. #define DSI_VIDEO_MODE_TOTAL (0x002C)
  19. #define DSI_VIDEO_MODE_HSYNC (0x0030)
  20. #define DSI_VIDEO_MODE_VSYNC (0x0034)
  21. #define DSI_VIDEO_MODE_VSYNC_VPOS (0x0038)
  22. #define DSI_COMMAND_MODE_DMA_CTRL (0x003C)
  23. #define DSI_COMMAND_MODE_MDP_CTRL (0x0040)
  24. #define DSI_COMMAND_MODE_MDP_DCS_CMD_CTRL (0x0044)
  25. #define DSI_DMA_CMD_OFFSET (0x0048)
  26. #define DSI_DMA_CMD_LENGTH (0x004C)
  27. #define DSI_DMA_FIFO_CTRL (0x0050)
  28. #define DSI_DMA_NULL_PACKET_DATA (0x0054)
  29. #define DSI_COMMAND_MODE_MDP_STREAM0_CTRL (0x0058)
  30. #define DSI_COMMAND_MODE_MDP_STREAM0_TOTAL (0x005C)
  31. #define DSI_COMMAND_MODE_MDP_STREAM1_CTRL (0x0060)
  32. #define DSI_COMMAND_MODE_MDP_STREAM1_TOTAL (0x0064)
  33. #define DSI_ACK_ERR_STATUS (0x0068)
  34. #define DSI_RDBK_DATA0 (0x006C)
  35. #define DSI_RDBK_DATA1 (0x0070)
  36. #define DSI_RDBK_DATA2 (0x0074)
  37. #define DSI_RDBK_DATA3 (0x0078)
  38. #define DSI_RDBK_DATATYPE0 (0x007C)
  39. #define DSI_RDBK_DATATYPE1 (0x0080)
  40. #define DSI_TRIG_CTRL (0x0084)
  41. #define DSI_EXT_MUX (0x0088)
  42. #define DSI_EXT_MUX_TE_PULSE_DETECT_CTRL (0x008C)
  43. #define DSI_CMD_MODE_DMA_SW_TRIGGER (0x0090)
  44. #define DSI_CMD_MODE_MDP_SW_TRIGGER (0x0094)
  45. #define DSI_CMD_MODE_BTA_SW_TRIGGER (0x0098)
  46. #define DSI_RESET_SW_TRIGGER (0x009C)
  47. #define DSI_MISR_CMD_CTRL (0x00A0)
  48. #define DSI_MISR_VIDEO_CTRL (0x00A4)
  49. #define DSI_LANE_STATUS (0x00A8)
  50. #define DSI_LANE_CTRL (0x00AC)
  51. #define DSI_LANE_SWAP_CTRL (0x00B0)
  52. #define DSI_DLN0_PHY_ERR (0x00B4)
  53. #define DSI_LP_TIMER_CTRL (0x00B8)
  54. #define DSI_HS_TIMER_CTRL (0x00BC)
  55. #define DSI_TIMEOUT_STATUS (0x00C0)
  56. #define DSI_CLKOUT_TIMING_CTRL (0x00C4)
  57. #define DSI_EOT_PACKET (0x00C8)
  58. #define DSI_EOT_PACKET_CTRL (0x00CC)
  59. #define DSI_GENERIC_ESC_TX_TRIGGER (0x00D0)
  60. #define DSI_CAM_BIST_CTRL (0x00D4)
  61. #define DSI_CAM_BIST_FRAME_SIZE (0x00D8)
  62. #define DSI_CAM_BIST_BLOCK_SIZE (0x00DC)
  63. #define DSI_CAM_BIST_FRAME_CONFIG (0x00E0)
  64. #define DSI_CAM_BIST_LSFR_CTRL (0x00E4)
  65. #define DSI_CAM_BIST_LSFR_INIT (0x00E8)
  66. #define DSI_CAM_BIST_START (0x00EC)
  67. #define DSI_CAM_BIST_STATUS (0x00F0)
  68. #define DSI_ERR_INT_MASK0 (0x010C)
  69. #define DSI_INT_CTRL (0x0110)
  70. #define DSI_IOBIST_CTRL (0x0114)
  71. #define DSI_SOFT_RESET (0x0118)
  72. #define DSI_CLK_CTRL (0x011C)
  73. #define DSI_CLK_STATUS (0x0120)
  74. #define DSI_DEBUG_BUS_CTL (0x0124)
  75. #define DSI_DEBUG_BUS_STATUS (0x0128)
  76. #define DSI_PHY_SW_RESET (0x012C)
  77. #define DSI_AXI2AHB_CTRL (0x0130)
  78. #define DSI_MISR_CMD_MDP0_32BIT (0x0134)
  79. #define DSI_MISR_CMD_MDP1_32BIT (0x0138)
  80. #define DSI_MISR_CMD_DMA_32BIT (0x013C)
  81. #define DSI_MISR_VIDEO_32BIT (0x0140)
  82. #define DSI_LANE_MISR_CTRL (0x0144)
  83. #define DSI_LANE0_MISR (0x0148)
  84. #define DSI_LANE1_MISR (0x014C)
  85. #define DSI_LANE2_MISR (0x0150)
  86. #define DSI_LANE3_MISR (0x0154)
  87. #define DSI_TEST_PATTERN_GEN_CTRL (0x015C)
  88. #define DSI_TEST_PATTERN_GEN_VIDEO_POLY (0x0160)
  89. #define DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL (0x0164)
  90. #define DSI_TEST_PATTERN_GEN_CMD_MDP_STREAM0_POLY (0x0168)
  91. #define DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0 (0x016C)
  92. #define DSI_TEST_PATTERN_GEN_CMD_MDP_STREAM1_POLY (0x0170)
  93. #define DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL1 (0x0174)
  94. #define DSI_TEST_PATTERN_GEN_CMD_DMA_POLY (0x0178)
  95. #define DSI_TEST_PATTERN_GEN_CMD_DMA_INIT_VAL (0x017C)
  96. #define DSI_TEST_PATTERN_GEN_VIDEO_ENABLE (0x0180)
  97. #define DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER (0x0184)
  98. #define DSI_TEST_PATTERN_GEN_CMD_STREAM1_TRIGGER (0x0188)
  99. #define DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL2 (0x018C)
  100. #define DSI_TEST_PATTERN_GEN_CMD_MDP_STREAM2_POLY (0x0190)
  101. #define DSI_TEST_PATTERN_GEN_CMD_MDP_STREAM2_POLY (0x0190)
  102. #define DSI_COMMAND_MODE_MDP_IDLE_CTRL (0x0194)
  103. #define DSI_TEST_PATTERN_GEN_CMD_STREAM2_TRIGGER (0x0198)
  104. #define DSI_TPG_MAIN_CONTROL (0x019C)
  105. #define DSI_TPG_MAIN_CONTROL2 (0x01A0)
  106. #define DSI_TPG_VIDEO_CONFIG (0x01A4)
  107. #define DSI_TPG_COMPONENT_LIMITS (0x01A8)
  108. #define DSI_TPG_RECTANGLE (0x01AC)
  109. #define DSI_TPG_BLACK_WHITE_PATTERN_FRAMES (0x01B0)
  110. #define DSI_TPG_RGB_MAPPING (0x01B4)
  111. #define DSI_COMMAND_MODE_MDP_CTRL2 (0x01B8)
  112. #define DSI_COMMAND_MODE_MDP_STREAM2_CTRL (0x01BC)
  113. #define DSI_COMMAND_MODE_MDP_STREAM2_TOTAL (0x01C0)
  114. #define DSI_MISR_CMD_MDP2_8BIT (0x01C4)
  115. #define DSI_MISR_CMD_MDP2_32BIT (0x01C8)
  116. #define DSI_VBIF_CTRL (0x01CC)
  117. #define DSI_AES_CTRL (0x01D0)
  118. #define DSI_RDBK_DATA_CTRL (0x01D4)
  119. #define DSI_TEST_PATTERN_GEN_CMD_DMA_INIT_VAL2 (0x01D8)
  120. #define DSI_TPG_DMA_FIFO_STATUS (0x01DC)
  121. #define DSI_TPG_DMA_FIFO_WRITE_TRIGGER (0x01E0)
  122. #define DSI_DSI_TIMING_FLUSH (0x01E4)
  123. #define DSI_DSI_TIMING_DB_MODE (0x01E8)
  124. #define DSI_TPG_DMA_FIFO_RESET (0x01EC)
  125. #define DSI_SCRATCH_REGISTER_0 (0x01F0)
  126. #define DSI_VERSION (0x01F4)
  127. #define DSI_SCRATCH_REGISTER_1 (0x01F8)
  128. #define DSI_SCRATCH_REGISTER_2 (0x01FC)
  129. #define DSI_DYNAMIC_REFRESH_CTRL (0x0200)
  130. #define DSI_DYNAMIC_REFRESH_STATUS (0x0210)
  131. #define DSI_VIDEO_COMPRESSION_MODE_CTRL (0x02A0)
  132. #define DSI_VIDEO_COMPRESSION_MODE_CTRL2 (0x02A4)
  133. #define DSI_COMMAND_COMPRESSION_MODE_CTRL (0x02A8)
  134. #define DSI_COMMAND_COMPRESSION_MODE_CTRL2 (0x02AC)
  135. #define DSI_COMMAND_COMPRESSION_MODE_CTRL3 (0x02B0)
  136. #define DSI_COMMAND_MODE_NULL_INSERTION_CTRL (0x02B4)
  137. #define DSI_READ_BACK_DISABLE_STATUS (0x02B8)
  138. #define DSI_DESKEW_CTRL (0x02BC)
  139. #define DSI_DESKEW_DELAY_CTRL (0x02C0)
  140. #define DSI_DESKEW_SW_TRIGGER (0x02C4)
  141. #define DSI_DEBUG_CTRL (0x02C8)
  142. #define DSI_SECURE_DISPLAY_STATUS (0x02CC)
  143. #define DSI_SECURE_DISPLAY_BLOCK_COMMAND_COLOR (0x02D0)
  144. #define DSI_SECURE_DISPLAY_BLOCK_VIDEO_COLOR (0x02D4)
  145. #define DSI_LOGICAL_LANE_SWAP_CTRL (0x0310)
  146. #define DSI_SPLIT_LINK (0x0330)
  147. #endif /* _DSI_CTRL_REG_H_ */