jpeg_drv_6589_reg.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. #ifndef __JPEG_DRV_6589_REG_H__
  2. #define __JPEG_DRV_6589_REG_H__
  3. #include <mach/mt_reg_base.h>
  4. #include <mach/sync_write.h>
  5. #if 1
  6. #define JPEG_EARLY_MM_BASE 0xF5000000
  7. #define EARLY_JPEG_DEC_BASE 0xF5009000
  8. #define EARLY_JPEG_ENC_BASE 0xF500A000
  9. /* #define JPEG_DEC_BASE //EARLY_JPEG_DEC_BASE */
  10. /* #define JPEG_ENC_BASE //EARLY_JPEG_ENC_BASE */
  11. /* #define JPEG_DEC_BASE (JPG_CODEC_BASE) //EARLY_JPEG_DEC_BASE */
  12. /* #define JPEG_ENC_BASE (JPG_CODEC_BASE + 0x1000) //EARLY_JPEG_ENC_BASE */
  13. #define JPEG_DEC_BASE EARLY_JPEG_DEC_BASE
  14. #define JPEG_ENC_BASE EARLY_JPEG_ENC_BASE
  15. #else
  16. /* 0xF5003000 */
  17. #define FPGA_JPEG_ENC_BASE 0xF500A000 /* 0xF5002000 */
  18. #define FPGA_JPEG_DEC_BASE 0xF5009000 /* 0xF5003000 */
  19. #define JPEG_ENC_BASE FPGA_JPEG_ENC_BASE /* (JPG_CODEC_BASE) */
  20. #define JPEG_DEC_BASE FPGA_JPEG_DEC_BASE /* (JPG_CODEC_BASE + 0x1000) */
  21. #endif
  22. #define IMG_REG_WRITE(v, a) mt65xx_reg_sync_writel(v, a)
  23. #define IMG_REG_READ(v, a) ((v) = *(volatile kal_uint32*)(a))
  24. /* #define IMG_REG_READ(v,a) mt65xx_reg_sync_writew(v,a) */
  25. /********************************************************************/
  26. /* The following registers are for JPEG Encoder Registers on MT6589 */
  27. /********************************************************************/
  28. #define REG_JPEG_ENC_RSTB (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x100))
  29. #define REG_JPEG_ENC_CTRL (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x104))
  30. #define REG_JPEG_ENC_QUALITY (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x108))
  31. #define REG_JPEG_ENC_BLK_NUM (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x10C))
  32. #define REG_JPEG_ENC_BLK_CNT (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x110))
  33. #define REG_JPEG_ENC_INTERRUPT_STATUS (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x11C))
  34. #define REG_JPEG_ENC_DST_ADDR0 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x120))
  35. #define REG_JPEG_ENC_DMA_ADDR0 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x124))
  36. #define REG_JPEG_ENC_STALL_ADDR0 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x128))
  37. #define REG_JPEG_ENC_OFFSET_ADDR (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x138))
  38. #define REG_JPEG_ENC_CURR_DMA_ADDR (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x13C))
  39. #define REG_JPEG_ENC_RST_MCU_NUM (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x150))
  40. #define REG_JPEG_ENC_IMG_SIZE (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x154))
  41. #define REG_JPEG_ENC_GULTRA_TRESH (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x158))
  42. #define REG_JPEG_ENC_DEBUG_INFO0 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x160))
  43. #define REG_JPEG_ENC_DEBUG_INFO1 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x164))
  44. #define REG_JPEG_ENC_TOTAL_CYCLE (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x168))
  45. #define REG_JPEG_ENC_BYTE_OFFSET_MASK (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x16C))
  46. #define REG_JPEG_ENC_SRC_LUMA_ADDR (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x170))
  47. #define REG_JPEG_ENC_SRC_CHROMA_ADDR (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x174))
  48. #define REG_JPEG_ENC_STRIDE (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x178))
  49. #define REG_JPEG_ENC_IMG_STRIDE (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x17C))
  50. #define REG_JPEG_ENC_MEM_CYCLE (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x208))
  51. #define REG_JPEG_ENC_SMI_DEBUG0 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x304))
  52. #define REG_JPEG_ENC_SMI_DEBUG1 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x308))
  53. #define REG_JPEG_ENC_SMI_DEBUG2 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x30C))
  54. #define REG_JPEG_ENC_SMI_DEBUG3 (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x310))
  55. #define REG_JPEG_ENC_CODEC_SEL (*(volatile kal_uint32*)(JPEG_ENC_BASE + 0x314))
  56. #define JPEG_ENC_REG_COUNT 0x314
  57. /********************************************************************/
  58. /* define JPEG Encoder Registers register field*/
  59. /********************************************************************/
  60. /* #define REG_JPEG_ENC_RSTB *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x100) */
  61. /* #define REG_JPEG_ENC_CTRL *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x104) */
  62. /* #define REG_JPEG_ENC_QUALITY *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x108) */
  63. /* #define REG_JPEG_ENC_BLK_NUM *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x10C) */
  64. /* #define REG_JPEG_ENC_BLK_CNT *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x110) */
  65. /* #define REG_JPEG_ENC_INTERRUPT_STATUS *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x11C) */
  66. #define JPEG_DRV_ENC_INT_STATUS_DONE 0x01
  67. #define JPEG_DRV_ENC_INT_STATUS_STALL 0x02
  68. #define JPEG_DRV_ENC_INT_STATUS_VCODEC_IRQ 0x10
  69. #define JPEG_DRV_ENC_INT_STATUS_MASK_ALLIRQ 0x13
  70. #define JPEG_DRV_DEC_INT_STATUS_DEC_ERR 0x04
  71. /* #define REG_JPEG_ENC_DST_ADDR0 *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x120) */
  72. /* #define REG_JPEG_ENC_DMA_ADDR0 *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x124) */
  73. /* #define REG_JPEG_ENC_STALL_ADDR0 *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x128) */
  74. /* */
  75. /* #define REG_JPEG_ENC_OFFSET_ADDR *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x138) */
  76. /* #define REG_JPEG_ENC_CURR_DMA_ADDR *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x13C) */
  77. /* */
  78. /* #define REG_JPEG_ENC_RST_MCU_NUM *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x150) */
  79. /* #define REG_JPEG_ENC_IMG_SIZE *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x154) */
  80. /* #define REG_JPEG_ENC_GULTRA_TRESH *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x158) */
  81. /* */
  82. /* */
  83. /* #define REG_JPEG_ENC_DEBUG_INFO0 *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x160) */
  84. /* #define REG_JPEG_ENC_DEBUG_INFO1 *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x164) */
  85. /* #define REG_JPEG_ENC_TOTAL_CYCLE *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x168) */
  86. /* #define REG_JPEG_ENC_BYTE_OFFSET_MASK *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x16C) */
  87. /* */
  88. /* */
  89. /* #define REG_JPEG_ENC_SRC_LUMA_ADDR *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x170) */
  90. /* #define REG_JPEG_ENC_SRC_CHROMA_ADDR *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x174) */
  91. /* #define REG_JPEG_ENC_STRIDE *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x178) */
  92. /* #define REG_JPEG_ENC_IMG_STRIDE *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x17C) */
  93. /* #define REG_JPEG_ENC_MEM_CYCLE *(volatile kal_uint32 *)(JPEG_ENC_BASE + 0x208) */
  94. /********************************************************************/
  95. /* The following registers are for JPEG Encoder Registers on MT6589 */
  96. /********************************************************************/
  97. #define REG_ADDR_JPEG_ENC_RSTB (JPEG_ENC_BASE + 0x100)
  98. #define REG_ADDR_JPEG_ENC_CTRL (JPEG_ENC_BASE + 0x104)
  99. #define REG_ADDR_JPEG_ENC_QUALITY (JPEG_ENC_BASE + 0x108)
  100. #define REG_ADDR_JPEG_ENC_BLK_NUM (JPEG_ENC_BASE + 0x10C)
  101. #define REG_ADDR_JPEG_ENC_BLK_CNT (JPEG_ENC_BASE + 0x110)
  102. #define REG_ADDR_JPEG_ENC_INTERRUPT_STATUS (JPEG_ENC_BASE + 0x11C)
  103. #define REG_ADDR_JPEG_ENC_DST_ADDR0 (JPEG_ENC_BASE + 0x120)
  104. #define REG_ADDR_JPEG_ENC_DMA_ADDR0 (JPEG_ENC_BASE + 0x124)
  105. #define REG_ADDR_JPEG_ENC_STALL_ADDR0 (JPEG_ENC_BASE + 0x128)
  106. #define REG_ADDR_JPEG_ENC_OFFSET_ADDR (JPEG_ENC_BASE + 0x138)
  107. #define REG_ADDR_JPEG_ENC_CURR_DMA_ADDR (JPEG_ENC_BASE + 0x13C)
  108. #define REG_ADDR_JPEG_ENC_RST_MCU_NUM (JPEG_ENC_BASE + 0x150)
  109. #define REG_ADDR_JPEG_ENC_IMG_SIZE (JPEG_ENC_BASE + 0x154)
  110. #define REG_ADDR_JPEG_ENC_GULTRA_TRESH (JPEG_ENC_BASE + 0x158)
  111. #define REG_ADDR_JPEG_ENC_DEBUG_INFO0 (JPEG_ENC_BASE + 0x160)
  112. #define REG_ADDR_JPEG_ENC_DEBUG_INFO1 (JPEG_ENC_BASE + 0x164)
  113. #define REG_ADDR_JPEG_ENC_TOTAL_CYCLE (JPEG_ENC_BASE + 0x168)
  114. #define REG_ADDR_JPEG_ENC_BYTE_OFFSET_MASK (JPEG_ENC_BASE + 0x16C)
  115. #define REG_ADDR_JPEG_ENC_SRC_LUMA_ADDR (JPEG_ENC_BASE + 0x170)
  116. #define REG_ADDR_JPEG_ENC_SRC_CHROMA_ADDR (JPEG_ENC_BASE + 0x174)
  117. #define REG_ADDR_JPEG_ENC_STRIDE (JPEG_ENC_BASE + 0x178)
  118. #define REG_ADDR_JPEG_ENC_IMG_STRIDE (JPEG_ENC_BASE + 0x17C)
  119. #define REG_ADDR_JPEG_ENC_MEM_CYCLE (JPEG_ENC_BASE + 0x208)
  120. #define REG_ADDR_JPEG_ENC_SMI_DEBUG0 (JPEG_ENC_BASE + 0x304)
  121. #define REG_ADDR_JPEG_ENC_SMI_DEBUG1 (JPEG_ENC_BASE + 0x308)
  122. #define REG_ADDR_JPEG_ENC_SMI_DEBUG2 (JPEG_ENC_BASE + 0x30C)
  123. #define REG_ADDR_JPEG_ENC_SMI_DEBUG3 (JPEG_ENC_BASE + 0x310)
  124. #define REG_ADDR_JPEG_ENC_CODEC_SEL (JPEG_ENC_BASE + 0x314)
  125. /********************************************************************/
  126. /* The following registers are for JPEG Decoder Registers on MT6589 */
  127. /********************************************************************/
  128. #define REG_JPGDEC_RESET (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0090))
  129. #define REG_JPGDEC_BRZ_FACTOR (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x00F8))
  130. #define REG_JPGDEC_DU_SAMPLE (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x00FC))
  131. #define REG_JPGDEC_DEST_ADDR0_Y (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0140))
  132. #define REG_JPGDEC_DEST_ADDR0_U (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0144))
  133. #define REG_JPGDEC_DEST_ADDR0_V (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0148))
  134. #define REG_JPGDEC_DEST_ADDR1_Y (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x014C))
  135. #define REG_JPGDEC_DEST_ADDR1_U (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0150))
  136. #define REG_JPGDEC_DEST_ADDR1_V (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0154))
  137. #define REG_JPGDEC_STRIDE_Y (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0158))
  138. #define REG_JPGDEC_STRIDE_UV (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x015C))
  139. #define REG_JPGDEC_IMG_STRIDE_Y (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0160))
  140. #define REG_JPGDEC_IMG_STRIDE_UV (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0164))
  141. /* #define REG_JPGDEC_TOTAL_MCU_NUM (*(volatile kal_uint32*) ( JPEG_DEC_BASE + 0x0168) )*/
  142. #define REG_JPGDEC_WDMA_CTRL (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x016C))
  143. #define REG_JPGDEC_PAUSE_MCU_NUM (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0170))
  144. #define REG_JPGDEC_OPERATION_MODE (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x017C))
  145. #define REG_JPGDEC_DEBUG0 (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0180))
  146. #define REG_JPGDEC_FILE_ADDR (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0200))
  147. #define REG_JPGDEC_COMP_ID (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x020C))
  148. #define REG_JPGDEC_TOTAL_MCU_NUM (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0210))
  149. #define REG_JPGDEC_COMP0_DATA_UNIT_NUM (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0224))
  150. #define REG_JPGDEC_DU_CTRL (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x023C))
  151. #define REG_JPGDEC_TRIG (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0240))
  152. #define REG_JPGDEC_FILE_BRP (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0248))
  153. #define REG_JPGDEC_FILE_TOTAL_SIZE (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x024C))
  154. #define REG_JPGDEC_QT_ID (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0270))
  155. #define REG_JPGDEC_INTERRUPT_STATUS (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0274))
  156. #define REG_JPGDEC_STATUS (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0278))
  157. #define REG_JPGDEC_MCU_CNT (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x0294))
  158. #define REG_JPGDEC_DEBUG_MODE (*(volatile kal_uint32*) (JPEG_DEC_BASE + 0x00C8))
  159. /********************************************************************/
  160. /* define JPEG Decoder Registers register field*/
  161. /********************************************************************/
  162. /* REG_JPGDEC_RESET ( JPEG_DEC_BASE + 0x0090 ) */
  163. #define BIT_SOFT_RST_SHIFT 0
  164. #define BIT_HARD_RST_SHIFT 4
  165. /* REG_JPGDEC_BRZ_FACTOR ( JPEG_DEC_BASE + 0x00F8 ) */
  166. #define BIT_BRZ_YH_SHIFT 0
  167. #define BIT_BRZ_YV_SHIFT 4
  168. #define BIT_BRZ_CH_SHIFT 8
  169. #define BIT_BRZ_CV_SHIFT 12
  170. /* REG_JPGDEC_DU_SAMPLE ( JPEG_DEC_BASE + 0x00FC ) */
  171. /* REG_JPGDEC_DEST_ADDR0_Y ( JPEG_DEC_BASE + 0x0140 ) */
  172. /* REG_JPGDEC_DEST_ADDR0_U ( JPEG_DEC_BASE + 0x0144 ) */
  173. /* REG_JPGDEC_DEST_ADDR0_V ( JPEG_DEC_BASE + 0x0148 ) */
  174. /* REG_JPGDEC_DEST_ADDR1_Y ( JPEG_DEC_BASE + 0x014C ) */
  175. /* REG_JPGDEC_DEST_ADDR1_U ( JPEG_DEC_BASE + 0x0150 ) */
  176. /* REG_JPGDEC_DEST_ADDR1_V ( JPEG_DEC_BASE + 0x0154 ) */
  177. /* REG_JPGDEC_STRIDE_Y ( JPEG_DEC_BASE + 0x0158 ) */
  178. /* REG_JPGDEC_STRIDE_UV ( JPEG_DEC_BASE + 0x015C ) */
  179. /* REG_JPGDEC_IMG_STRIDE_Y ( JPEG_DEC_BASE + 0x0160 ) */
  180. /* REG_JPGDEC_IMG_STRIDE_UV ( JPEG_DEC_BASE + 0x0164 ) */
  181. /* REG_JPGDEC_WDMA_CTRL ( JPEG_DEC_BASE + 0x016C ) */
  182. /* REG_JPGDEC_PAUSE_MCU_NUM ( JPEG_DEC_BASE + 0x0170 ) */
  183. /* REG_JPGDEC_OPERATION_MODE ( JPEG_DEC_BASE + 0x017C ) */
  184. /* REG_JPGDEC_DEBUG0 ( JPEG_DEC_BASE + 0x0180 ) */
  185. /* REG_JPGDEC_FILE_ADDR ( JPEG_DEC_BASE + 0x0200 ) */
  186. /* REG_JPGDEC_COMP_ID ( JPEG_DEC_BASE + 0x020C ) */
  187. /* REG_JPGDEC_TOTAL_MCU_NUM ( JPEG_DEC_BASE + 0x0210 ) */
  188. /* REG_JPGDEC_COMP0_DATA_UNIT_NUM ( JPEG_DEC_BASE + 0x0224 ) */
  189. /* REG_JPGDEC_DU_CTRL ( JPEG_DEC_BASE + 0x023C ) */
  190. #define BIT_DU_CTRL_COMP_Y 4
  191. #define BIT_DU_CTRL_COMP_U 5
  192. #define BIT_DU_CTRL_COMP_V 6
  193. #define BIT_DU_CTRL_NOUSE 7
  194. /* REG_JPGDEC_TRIG ( JPEG_DEC_BASE + 0x0240 ) */
  195. /* REG_JPGDEC_FILE_BRP ( JPEG_DEC_BASE + 0x0248 ) */
  196. /* REG_JPGDEC_FILE_TOTAL_SIZE ( JPEG_DEC_BASE + 0x024C ) */
  197. /* REG_JPGDEC_QT_ID ( JPEG_DEC_BASE + 0x0270 ) */
  198. /* REG_JPGDEC_INTERRUPT_STATUS ( JPEG_DEC_BASE + 0x0274 ) */
  199. #define BIT_INQST_MASK_TYPE 0x80000000
  200. #define BIT_INQST_MASK_ERROR_BS 0x20
  201. #define BIT_INQST_MASK_PAUSE 0x10
  202. #define BIT_INQST_MASK_OVERFLOW 0x04
  203. #define BIT_INQST_MASK_UNDERFLOW 0x02
  204. #define BIT_INQST_MASK_EOF 0x01
  205. #define BIT_INQST_MASK_END 0x27
  206. #define BIT_INQST_MASK_ALLIRQ 0x37
  207. /* REG_JPGDEC_STATUS ( JPEG_DEC_BASE + 0x0278 ) */
  208. #define BIT_DEC_ST_STATE_MASK 0x07000000
  209. #define BIT_DEC_ST_STATE_IDLE 0x00000000
  210. #define BIT_DEC_ST_STATE_DMA 0x01000000
  211. #define BIT_DEC_ST_STATE_HEADER 0x02000000
  212. #define BIT_DEC_ST_STATE_VLD 0x03000000
  213. #define BIT_DEC_ST_STATE_RST 0x04000000
  214. #define BIT_DEC_ST_STATE_PROG 0x05000000
  215. #define BIT_DEC_ST_STATE_IDCT 0x06000000
  216. /* REG_JPGDEC_MCU_CNT ( JPEG_DEC_BASE + 0x0294 ) */
  217. #define REG_ADDR_JPGDEC_RESET (JPEG_DEC_BASE + 0x0090)
  218. #define REG_ADDR_JPGDEC_BRZ_FACTOR (JPEG_DEC_BASE + 0x00F8)
  219. #define REG_ADDR_JPGDEC_DU_SAMPLE (JPEG_DEC_BASE + 0x00FC)
  220. #define REG_ADDR_JPGDEC_DEST_ADDR0_Y (JPEG_DEC_BASE + 0x0140)
  221. #define REG_ADDR_JPGDEC_DEST_ADDR0_U (JPEG_DEC_BASE + 0x0144)
  222. #define REG_ADDR_JPGDEC_DEST_ADDR0_V (JPEG_DEC_BASE + 0x0148)
  223. #define REG_ADDR_JPGDEC_DEST_ADDR1_Y (JPEG_DEC_BASE + 0x014C)
  224. #define REG_ADDR_JPGDEC_DEST_ADDR1_U (JPEG_DEC_BASE + 0x0150)
  225. #define REG_ADDR_JPGDEC_DEST_ADDR1_V (JPEG_DEC_BASE + 0x0154)
  226. #define REG_ADDR_JPGDEC_STRIDE_Y (JPEG_DEC_BASE + 0x0158)
  227. #define REG_ADDR_JPGDEC_STRIDE_UV (JPEG_DEC_BASE + 0x015C)
  228. #define REG_ADDR_JPGDEC_IMG_STRIDE_Y (JPEG_DEC_BASE + 0x0160)
  229. #define REG_ADDR_JPGDEC_IMG_STRIDE_UV (JPEG_DEC_BASE + 0x0164)
  230. #define REG_ADDR_JPGDEC_WDMA_CTRL (JPEG_DEC_BASE + 0x016C)
  231. #define REG_ADDR_JPGDEC_PAUSE_MCU_NUM (JPEG_DEC_BASE + 0x0170)
  232. #define REG_ADDR_JPGDEC_OPERATION_MODE (JPEG_DEC_BASE + 0x017C)
  233. #define REG_ADDR_JPGDEC_DEBUG0 (JPEG_DEC_BASE + 0x0180)
  234. #define REG_ADDR_JPGDEC_FILE_ADDR (JPEG_DEC_BASE + 0x0200)
  235. #define REG_ADDR_JPGDEC_COMP_ID (JPEG_DEC_BASE + 0x020C)
  236. #define REG_ADDR_JPGDEC_TOTAL_MCU_NUM (JPEG_DEC_BASE + 0x0210)
  237. #define REG_ADDR_JPGDEC_COMP0_DATA_UNIT_NUM (JPEG_DEC_BASE + 0x0224)
  238. #define REG_ADDR_JPGDEC_DU_CTRL (JPEG_DEC_BASE + 0x023C)
  239. #define REG_ADDR_JPGDEC_TRIG (JPEG_DEC_BASE + 0x0240)
  240. #define REG_ADDR_JPGDEC_FILE_BRP (JPEG_DEC_BASE + 0x0248)
  241. #define REG_ADDR_JPGDEC_FILE_TOTAL_SIZE (JPEG_DEC_BASE + 0x024C)
  242. #define REG_ADDR_JPGDEC_QT_ID (JPEG_DEC_BASE + 0x0270)
  243. #define REG_ADDR_JPGDEC_INTERRUPT_STATUS (JPEG_DEC_BASE + 0x0274)
  244. #define REG_ADDR_JPGDEC_STATUS (JPEG_DEC_BASE + 0x0278)
  245. #define REG_ADDR_JPGDEC_MCU_CNT (JPEG_DEC_BASE + 0x0294)
  246. #define REG_ADDR_JPGDEC_DEBUG_MODE (JPEG_DEC_BASE + 0x00C8)
  247. #endif /* / __MT6589_JPEG_REG_H__ */