vi_pre_reg.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /*
  2. * Copyright (C) 2021 Alibaba Group Holding Limited
  3. * Author: Shenwuyi <shenwuyi.swy@alibaba-inc.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef _VI_PRE_REG_H_
  10. #define _VI_PRE_REG_H_
  11. #define G1_MUX3_2 0x0
  12. #define G1_MODSEL 0x4
  13. #define G1_IDNUM 0x8
  14. #define G1_RESCFG 0xC
  15. #define G1_HDRCTRL0 0x10
  16. #define G1_HDRCTRL1 0x14
  17. #define G1_HDRCTRL2 0x18
  18. #define G1_HDRCTRL3 0x1C
  19. #define G1_HDRCTRL4 0x20
  20. #define G1_ERR_MAKS 0x24
  21. #define G1_VMARGINCFG_IPI1 0x28
  22. #define G1_HMARGINCFG_IPI1 0x2C
  23. #define G1_VMARGINCFG_IPI2 0x30
  24. #define G1_HMARGINCFG_IPI2 0x34
  25. #define G1_VMARGINCFG_IPI3 0x38
  26. #define G1_HMARGINCFG_IPI3 0x3C
  27. #define G1_RESCFG2 0x40
  28. #define G1_RESCFG3 0x44
  29. #define G2_RESEV 0x48
  30. #define G2_MODSEL 0x4C
  31. #define G2_IDNUM 0x50
  32. #define G2_RESCFG 0x54
  33. #define G2_HDRCTRL0 0x58
  34. #define G2_HDRCTRL1 0x5C
  35. #define G2_HDRCTRL2 0x60
  36. #define G2_HDRCTRL3 0x64
  37. #define G2_HDRCTRL4 0x68
  38. #define G2_ERR_MAKS 0x6C
  39. #define G2_VMARGINCFG_IPI1 0x70
  40. #define G2_HMARGINCFG_IPI1 0x74
  41. #define G2_VMARGINCFG_IPI2 0x78
  42. #define G2_HMARGINCFG_IPI2 0x7C
  43. #define G2_VMARGINCFG_IPI3 0x80
  44. #define G2_HMARGINCFG_IPI3 0x84
  45. #define G2_RESCFG2 0x88
  46. #define G2_RESCFG3 0x8C
  47. #define ISPSEL 0x90
  48. #define HDRPRO_CTRL1 0x94
  49. #define HDRPRO_CTRL2 0x98
  50. #define HDRPRO_COE1 0x9C
  51. #define HDRPRO_COE2 0xA0
  52. #define HDRPRO_COE3 0xA4
  53. #define HDRPRO_COE4 0xA8
  54. #define HDRPRO_COE5 0xAC
  55. #define HDRPRO_LINW1 0xB0
  56. #define HDRPRO_LINW2 0xB4
  57. #define HDRPRO_LINW3 0xB8
  58. #define HDRPRO_LINW4 0xBC
  59. #define HDRPRO_LINW5 0xC0
  60. #define HDRPRO_LINW6 0xC4
  61. #define HDRPRO_LINW7 0xC8
  62. #define HDRPRO_LINW8 0xCC
  63. #define HDRPRO_LINA1 0xD0
  64. #define HDRPRO_LINA2 0xD4
  65. #define HDRPRO_LINA3 0xD8
  66. #define HDRPRO_LINA4 0xDC
  67. #define HDRPRO_LINA5 0xE0
  68. #define HDRPRO_LINA6 0xE4
  69. #define HDRPRO_LINA7 0xE8
  70. #define HDRPRO_LINA8 0xEC
  71. #define HDRPRO_LINA9 0xF0
  72. #define HDRPRO_LINA10 0xF4
  73. #define HDRPRO_LINA11 0xF8
  74. #define HDRPRO_LINA12 0xFC
  75. #define HDRPRO_LINA13 0x100
  76. #define HDRPRO_LINA14 0x104
  77. #define HDRPRO_LINA15 0x108
  78. #define HDRPRO_LINA16 0x10C
  79. #define HDRPRO_LINB1 0x110
  80. #define HDRPRO_LINB2 0x114
  81. #define HDRPRO_LINB3 0x118
  82. #define HDRPRO_LINB4 0x11C
  83. #define HDRPRO_LINB5 0x120
  84. #define HDRPRO_LINB6 0x124
  85. #define HDRPRO_LINB7 0x128
  86. #define HDRPRO_LINB8 0x12C
  87. #define HDRPRO_LINB9 0x130
  88. #define HDRPRO_LINB10 0x134
  89. #define HDRPRO_LINB11 0x138
  90. #define HDRPRO_LINB12 0x13C
  91. #define HDRPRO_LINB13 0x140
  92. #define HDRPRO_LINB14 0x144
  93. #define HDRPRO_LINB15 0x148
  94. #define HDRPRO_LINB16 0x14C
  95. #define G0_RESEV 0x150
  96. #define G0_MODSEL 0x154
  97. #define G0_IDNUM 0x158
  98. #define G0_RESCFG 0x15C
  99. #define G0_HDRCTRL0 0x160
  100. #define G0_HDRCTRL1 0x164
  101. #define G0_HDRCTRL2 0x168
  102. #define G0_HDRCTRL3 0x16C
  103. #define G0_HDRCTRL4 0x170
  104. #define G0_ERR_MAKS 0x174
  105. #define G0_VMARGINCFG_IPI1 0x178
  106. #define G0_HMARGINCFG_IPI1 0x17C
  107. #define G0_VMARGINCFG_IPI2 0x180
  108. #define G0_HMARGINCFG_IPI2 0x184
  109. #define G0_VMARGINCFG_IPI3 0x188
  110. #define G0_HMARGINCFG_IPI3 0x18C
  111. #define G0_RESCFG2 0x190
  112. #define G0_RESCFG3 0x194
  113. #define MIPI2DMA_CTRL0 0x198
  114. #define MIPI2DMA_CTRL1 0x19C
  115. #define MIPI2DMA_CTRL2 0x1A0
  116. #define MIPI2DMA_CTRL3 0x1A4
  117. #define MIPI2DMA_CTRL4 0x1A8
  118. #define MIPI2DMA_CTRL5 0x1AC
  119. #define MIPI2DMA_CTRL6 0x1B0
  120. #define MIPI2DMA_CTRL7 0x1B4
  121. #define MIPI2DMA_CTRL8 0x1B8
  122. #define MIPI2DMA_CTRL9 0x1BC
  123. #define MIPI2DMA_CTRL10 0x1C0
  124. #define MIPI2DMA_CTRL11 0x1C4
  125. #define MIPI2DMA_CTRL12 0x1C8
  126. #define MIPI2DMA_CTRL13 0x1CC
  127. #define MIPI2DMA_CTRL14 0x1D0
  128. #define MIPI2DMA_CTRL15 0x1D4
  129. #define MIPI2DMA_CTRL16 0x1D8
  130. #define MIPI2DMA_CTRL17 0x1DC
  131. #define MIPI2DMA_CTRL18 0x1E0
  132. #define MIPI2DMA_CTRL19 0x1E4
  133. #define MIPI2DMA_CTRL20 0x1E8
  134. #define MIPI2DMA_CTRL21 0x1EC
  135. #define MIPI2DMA_CTRL22 0x1F0
  136. #define MIPI2DMA_CTRL23 0x1F4
  137. #define MIPI2DMA_CTRL24 0x1F8
  138. #define MIPI2DMA_CTRL25 0x1FC
  139. #define MIPI2DMA_CTRL26 0x200
  140. #define MIPI2DMA_CTRL27 0x204
  141. #define MIPI2DMA_CTRL28 0x208
  142. #define MIPI2DMA_CTRL29 0x20C
  143. #define MIPI2DMA_CTRL30 0x210
  144. #define MIPI2DMA_CTRL31 0x214
  145. #define MIPI2DMA_CTRL32 0x218
  146. #define MIPI2DMA_CTRL33 0x21C
  147. #define MIPI2DMA_CTRL34 0x220
  148. #define MIPI2DMA_CTRL35 0x224
  149. #define MIPI2DMA_CTRL36 0x228
  150. #define MIPI2DMA_CTRL37 0x22C
  151. #define MIPI2DMA_CTRL38 0x230
  152. #define MIPI2DMA_CTRL39 0x234
  153. #define MIPI2DMA_CTRL40 0x238
  154. #define MIPI2DMA_CTRL41 0x23C
  155. #define MIPI2DMA_CTRL42 0x240
  156. #define MIPI2DMA_CTRL43 0x244
  157. #define MIPI2DMA_CTRL44 0x248
  158. #define MIPI2DMA_CTRL45 0x24C
  159. #define MIPI2DMA_CTRL46 0x250
  160. #define MIPI2DMA_CTRL47 0x254
  161. #define MIPI2DMA_CTRL48 0x258
  162. #define MIPI2DMA_CTRL49 0x25C
  163. #define MIPI2DMA_CTRL50 0x260
  164. #define MIPI2DMA_CTRL51 0x264
  165. #endif /*_VI_PRE_REG_H_*/