mtk_jpeg_reg.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2016 MediaTek Inc.
  3. * Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
  4. * Rick Chang <rick.chang@mediatek.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef _MTK_JPEG_REG_H
  16. #define _MTK_JPEG_REG_H
  17. #define MTK_JPEG_COMP_MAX 3
  18. #define MTK_JPEG_BLOCK_MAX 10
  19. #define MTK_JPEG_DCTSIZE 8
  20. #define BIT_INQST_MASK_ERROR_BS 0x20
  21. #define BIT_INQST_MASK_PAUSE 0x10
  22. #define BIT_INQST_MASK_OVERFLOW 0x04
  23. #define BIT_INQST_MASK_UNDERFLOW 0x02
  24. #define BIT_INQST_MASK_EOF 0x01
  25. #define BIT_INQST_MASK_ALLIRQ 0x37
  26. #define JPGDEC_REG_RESET 0x0090
  27. #define JPGDEC_REG_BRZ_FACTOR 0x00F8
  28. #define JPGDEC_REG_DU_NUM 0x00FC
  29. #define JPGDEC_REG_DEST_ADDR0_Y 0x0140
  30. #define JPGDEC_REG_DEST_ADDR0_U 0x0144
  31. #define JPGDEC_REG_DEST_ADDR0_V 0x0148
  32. #define JPGDEC_REG_DEST_ADDR1_Y 0x014C
  33. #define JPGDEC_REG_DEST_ADDR1_U 0x0150
  34. #define JPGDEC_REG_DEST_ADDR1_V 0x0154
  35. #define JPGDEC_REG_STRIDE_Y 0x0158
  36. #define JPGDEC_REG_STRIDE_UV 0x015C
  37. #define JPGDEC_REG_IMG_STRIDE_Y 0x0160
  38. #define JPGDEC_REG_IMG_STRIDE_UV 0x0164
  39. #define JPGDEC_REG_WDMA_CTRL 0x016C
  40. #define JPGDEC_REG_PAUSE_MCU_NUM 0x0170
  41. #define JPGDEC_REG_OPERATION_MODE 0x017C
  42. #define JPGDEC_REG_FILE_ADDR 0x0200
  43. #define JPGDEC_REG_COMP_ID 0x020C
  44. #define JPGDEC_REG_TOTAL_MCU_NUM 0x0210
  45. #define JPGDEC_REG_COMP0_DATA_UNIT_NUM 0x0224
  46. #define JPGDEC_REG_DU_CTRL 0x023C
  47. #define JPGDEC_REG_TRIG 0x0240
  48. #define JPGDEC_REG_FILE_BRP 0x0248
  49. #define JPGDEC_REG_FILE_TOTAL_SIZE 0x024C
  50. #define JPGDEC_REG_QT_ID 0x0270
  51. #define JPGDEC_REG_INTERRUPT_STATUS 0x0274
  52. #define JPGDEC_REG_STATUS 0x0278
  53. #endif /* _MTK_JPEG_REG_H */