fimg2d_reg.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * Copyright (C) 2013 Samsung Electronics Co.Ltd
  3. * Authors:
  4. * Inki Dae <inki.dae@samsung.com>
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a
  7. * copy of this software and associated documentation files (the "Software"),
  8. * to deal in the Software without restriction, including without limitation
  9. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. * and/or sell copies of the Software, and to permit persons to whom the
  11. * Software is furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice (including the next
  14. * paragraph) shall be included in all copies or substantial portions of the
  15. * Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
  21. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  22. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  23. * OTHER DEALINGS IN THE SOFTWARE.
  24. */
  25. #ifndef _FIMG2D_REG_H_
  26. #define _FIMG2D_REG_H_
  27. #define SOFT_RESET_REG (0x0000)
  28. #define INTEN_REG (0x0004)
  29. #define INTC_PEND_REG (0x000C)
  30. #define FIFO_STAT_REG (0x0010)
  31. #define AXI_MODE_REG (0x001C)
  32. #define DMA_SFR_BASE_ADDR_REG (0x0080)
  33. #define DMA_COMMAND_REG (0x0084)
  34. #define DMA_EXE_LIST_NUM_REG (0x0088)
  35. #define DMA_STATUS_REG (0x008C)
  36. #define DMA_HOLD_CMD_REG (0x0090)
  37. /* COMMAND REGISTER */
  38. #define BITBLT_START_REG (0x0100)
  39. #define BITBLT_COMMAND_REG (0x0104)
  40. #define BLEND_FUNCTION_REG (0x0108) /* VER4.1 */
  41. #define ROUND_MODE_REG (0x010C) /* VER4.1 */
  42. /* PARAMETER SETTING REGISTER */
  43. #define ROTATE_REG (0x0200)
  44. #define SRC_MASK_DIRECT_REG (0x0204)
  45. #define DST_PAT_DIRECT_REG (0x0208)
  46. /* SOURCE */
  47. #define SRC_SELECT_REG (0x0300)
  48. #define SRC_BASE_ADDR_REG (0x0304)
  49. #define SRC_STRIDE_REG (0x0308)
  50. #define SRC_COLOR_MODE_REG (0x030c)
  51. #define SRC_LEFT_TOP_REG (0x0310)
  52. #define SRC_RIGHT_BOTTOM_REG (0x0314)
  53. #define SRC_PLANE2_BASE_ADDR_REG (0x0318) /* VER4.1 */
  54. #define SRC_REPEAT_MODE_REG (0x031C)
  55. #define SRC_PAD_VALUE_REG (0x0320)
  56. #define SRC_A8_RGB_EXT_REG (0x0324)
  57. #define SRC_SCALE_CTRL_REG (0x0328)
  58. #define SRC_XSCALE_REG (0x032C)
  59. #define SRC_YSCALE_REG (0x0330)
  60. /* DESTINATION */
  61. #define DST_SELECT_REG (0x0400)
  62. #define DST_BASE_ADDR_REG (0x0404)
  63. #define DST_STRIDE_REG (0x0408)
  64. #define DST_COLOR_MODE_REG (0x040C)
  65. #define DST_LEFT_TOP_REG (0x0410)
  66. #define DST_RIGHT_BOTTOM_REG (0x0414)
  67. #define DST_PLANE2_BASE_ADDR_REG (0x0418) /* VER4.1 */
  68. #define DST_A8_RGB_EXT_REG (0x041C)
  69. /* PATTERN */
  70. #define PAT_BASE_ADDR_REG (0x0500)
  71. #define PAT_SIZE_REG (0x0504)
  72. #define PAT_COLOR_MODE_REG (0x0508)
  73. #define PAT_OFFSET_REG (0x050C)
  74. #define PAT_STRIDE_REG (0x0510)
  75. /* MASK */
  76. #define MASK_BASE_ADDR_REG (0x0520)
  77. #define MASK_STRIDE_REG (0x0524)
  78. #define MASK_LEFT_TOP_REG (0x0528) /* VER4.1 */
  79. #define MASK_RIGHT_BOTTOM_REG (0x052C) /* VER4.1 */
  80. #define MASK_MODE_REG (0x0530) /* VER4.1 */
  81. #define MASK_REPEAT_MODE_REG (0x0534)
  82. #define MASK_PAD_VALUE_REG (0x0538)
  83. #define MASK_SCALE_CTRL_REG (0x053C)
  84. #define MASK_XSCALE_REG (0x0540)
  85. #define MASK_YSCALE_REG (0x0544)
  86. /* CLIPPING WINDOW */
  87. #define CW_LT_REG (0x0600)
  88. #define CW_RB_REG (0x0604)
  89. /* ROP & ALPHA SETTING */
  90. #define THIRD_OPERAND_REG (0x0610)
  91. #define ROP4_REG (0x0614)
  92. #define ALPHA_REG (0x0618)
  93. /* COLOR SETTING */
  94. #define FG_COLOR_REG (0x0700)
  95. #define BG_COLOR_REG (0x0704)
  96. #define BS_COLOR_REG (0x0708)
  97. #define SF_COLOR_REG (0x070C) /* VER4.1 */
  98. /* COLOR KEY */
  99. #define SRC_COLORKEY_CTRL_REG (0x0710)
  100. #define SRC_COLORKEY_DR_MIN_REG (0x0714)
  101. #define SRC_COLORKEY_DR_MAX_REG (0x0718)
  102. #define DST_COLORKEY_CTRL_REG (0x071C)
  103. #define DST_COLORKEY_DR_MIN_REG (0x0720)
  104. #define DST_COLORKEY_DR_MAX_REG (0x0724)
  105. /* YCbCr src Color Key */
  106. #define YCbCr_SRC_COLORKEY_CTRL_REG (0x0728) /* VER4.1 */
  107. #define YCbCr_SRC_COLORKEY_DR_MIN_REG (0x072C) /* VER4.1 */
  108. #define YCbCr_SRC_COLORKEY_DR_MAX_REG (0x0730) /* VER4.1 */
  109. /*Y CbCr dst Color Key */
  110. #define YCbCr_DST_COLORKEY_CTRL_REG (0x0734) /* VER4.1 */
  111. #define YCbCr_DST_COLORKEY_DR_MIN_REG (0x0738) /* VER4.1 */
  112. #define YCbCr_DST_COLORKEY_DR_MAX_REG (0x073C) /* VER4.1 */
  113. #endif