ppcfg.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Description : Hardware PP system configuration
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: ppcfg.h,v $
  23. -- $Revision: 1.12 $
  24. -- $Date: 2010/10/28 09:38:59 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef __PPCFG_H__
  28. #define __PPCFG_H__
  29. /* predefined values of HW system parameters. DO NOT ALTER! */
  30. #define PP_X170_PICTURE_LITTLE_ENDIAN 1
  31. #define PP_X170_PICTURE_BIG_ENDIAN 0
  32. #define PP_X170_BUS_BURST_LENGTH_UNDEFINED 0
  33. #define PP_X170_BUS_BURST_LENGTH_4 4
  34. #define PP_X170_BUS_BURST_LENGTH_8 8
  35. #define PP_X170_BUS_BURST_LENGTH_16 16
  36. #define PP_X170_DATA_BUS_WIDTH_32 4
  37. #define PP_X170_DATA_BUS_WIDTH_64 8
  38. /* end of predefined values */
  39. /* now what we use */
  40. #ifndef PP_X170_USING_IRQ
  41. /* use the HW IRQ or not; set to non-zero to enable */
  42. /* if set to zero the software will disable the PP IRQ */
  43. /* generation in the control register */
  44. #define PP_X170_USING_IRQ 1
  45. #endif
  46. #ifndef PP_X170_SWAP_32_WORDS
  47. /* in 64 bit bus environment the 32 bit words can be swapped */
  48. #define PP_X170_SWAP_32_WORDS 1
  49. #endif
  50. #ifndef PP_X170_SWAP_16_WORDS
  51. #define PP_X170_SWAP_16_WORDS 0
  52. #endif
  53. #ifndef PP_X170_SWAP_32_WORDS_RGB32
  54. #define PP_X170_SWAP_32_WORDS_RGB32 0
  55. #endif
  56. #ifndef PP_X170_SWAP_16_WORDS_RGB32
  57. #define PP_X170_SWAP_16_WORDS_RGB32 0
  58. #endif
  59. #ifndef PP_X170_SWAP_32_WORDS_RGB16
  60. #define PP_X170_SWAP_32_WORDS_RGB16 0
  61. #endif
  62. #ifndef PP_X170_SWAP_16_WORDS_RGB16
  63. #define PP_X170_SWAP_16_WORDS_RGB16 1
  64. #endif
  65. #ifndef PP_X170_INPUT_PICTURE_ENDIAN
  66. /* this should match the system endianess, so that PP reads */
  67. /* the input pixel data in the right order */
  68. #define PP_X170_INPUT_PICTURE_ENDIAN PP_X170_PICTURE_LITTLE_ENDIAN
  69. #endif
  70. #ifndef PP_X170_OUTPUT_PICTURE_ENDIAN
  71. /* this should match the system endianess, so that PP writes */
  72. /* the output pixel data in the right order */
  73. #define PP_X170_OUTPUT_PICTURE_ENDIAN PP_X170_PICTURE_LITTLE_ENDIAN
  74. #endif
  75. #ifndef PP_X170_OUTPUT_PICTURE_ENDIAN_RGB32
  76. #define PP_X170_OUTPUT_PICTURE_ENDIAN_RGB32 PP_X170_PICTURE_BIG_ENDIAN
  77. #endif
  78. #ifndef PP_X170_OUTPUT_PICTURE_ENDIAN_RGB16
  79. #define PP_X170_OUTPUT_PICTURE_ENDIAN_RGB16 PP_X170_PICTURE_BIG_ENDIAN
  80. #endif
  81. #ifndef PP_X170_BUS_BURST_LENGTH
  82. /* how long are the hardware data bursts; better left unchanged */
  83. #define PP_X170_BUS_BURST_LENGTH PP_X170_BUS_BURST_LENGTH_16
  84. #endif
  85. #ifndef PP_X170_DATA_BUS_WIDTH
  86. /* data bus width of the PP hardware; note that this might not be */
  87. /* the same with the CPU's data bus width */
  88. #define PP_X170_DATA_BUS_WIDTH PP_X170_DATA_BUS_WIDTH_32
  89. #endif
  90. #ifndef PP_X170_LATENCY_COMPENSATION
  91. /* compensation for bus latency; values up to 63 */
  92. #define PP_X170_LATENCY_COMPENSATION 0
  93. #endif
  94. #ifndef PP_X170_INTERNAL_CLOCK_GATING
  95. /* clock is gated from PP structures that are not used */
  96. #define PP_X170_INTERNAL_CLOCK_GATING 0
  97. #endif
  98. #ifndef PP_X170_DATA_DISCARD_ENABLE
  99. #define PP_X170_DATA_DISCARD_ENABLE 0
  100. #endif
  101. #ifndef PP_X170_SWAP_32_WORDS_INPUT
  102. #define PP_X170_SWAP_32_WORDS_INPUT 1
  103. #endif
  104. /* AXI bus read and write ID values used by HW. 0 - 255 */
  105. #ifndef PP_X170_AXI_ID_R
  106. #define PP_X170_AXI_ID_R 0
  107. #endif
  108. #ifndef PP_X170_AXI_ID_W
  109. #define PP_X170_AXI_ID_W 0
  110. #endif
  111. /* AXI single command multiple data disable not set */
  112. #define PP_X170_SCMD_DISABLE 0
  113. /* flag to ignore endianness when reading RGB format alpha blend picture.
  114. * DO NOT ALTER! */
  115. #define PP_X170_IGNORE_ABLEND_ENDIANNESS 0
  116. /* disable fast scaling shortcuts */
  117. #ifndef PP_X170_FAST_VERTICAL_DOWNSCALE_DISABLE
  118. #define PP_X170_FAST_VERTICAL_DOWNSCALE_DISABLE 0
  119. #endif
  120. #ifndef PP_X170_FAST_HORIZONTAL_DOWNSCALE_DISABLE
  121. #define PP_X170_FAST_HORIZONTAL_DOWNSCALE_DISABLE 0
  122. #endif
  123. #define PP_JPEGDEC_PIPELINE_SUPPORT
  124. #define PP_MPEG4DEC_PIPELINE_SUPPORT
  125. #define PP_H264DEC_PIPELINE_SUPPORT
  126. #define PP_VC1DEC_PIPELINE_SUPPORT
  127. #define PP_MPEG2DEC_PIPELINE_SUPPORT
  128. #define PP_RVDEC_PIPELINE_SUPPORT
  129. #define PP_VP6DEC_PIPELINE_SUPPORT
  130. #define PP_VP8DEC_PIPELINE_SUPPORT
  131. #endif /* __PPCFG_H__ */