rv250d.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Copyright 2008 Advanced Micro Devices, Inc.
  3. * Copyright 2008 Red Hat Inc.
  4. * Copyright 2009 Jerome Glisse.
  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 shall be included in
  14. * all copies or substantial portions of the Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  20. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  21. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  22. * OTHER DEALINGS IN THE SOFTWARE.
  23. *
  24. * Authors: Dave Airlie
  25. * Alex Deucher
  26. * Jerome Glisse
  27. */
  28. #ifndef __RV250D_H__
  29. #define __RV250D_H__
  30. #define R_00000D_SCLK_CNTL_M6 0x00000D
  31. #define S_00000D_SCLK_SRC_SEL(x) (((x) & 0x7) << 0)
  32. #define G_00000D_SCLK_SRC_SEL(x) (((x) >> 0) & 0x7)
  33. #define C_00000D_SCLK_SRC_SEL 0xFFFFFFF8
  34. #define S_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 3)
  35. #define G_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) >> 3) & 0x1)
  36. #define C_00000D_CP_MAX_DYN_STOP_LAT 0xFFFFFFF7
  37. #define S_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 4)
  38. #define G_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) >> 4) & 0x1)
  39. #define C_00000D_HDP_MAX_DYN_STOP_LAT 0xFFFFFFEF
  40. #define S_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 5)
  41. #define G_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) >> 5) & 0x1)
  42. #define C_00000D_TV_MAX_DYN_STOP_LAT 0xFFFFFFDF
  43. #define S_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 6)
  44. #define G_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) >> 6) & 0x1)
  45. #define C_00000D_E2_MAX_DYN_STOP_LAT 0xFFFFFFBF
  46. #define S_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 7)
  47. #define G_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) >> 7) & 0x1)
  48. #define C_00000D_SE_MAX_DYN_STOP_LAT 0xFFFFFF7F
  49. #define S_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 8)
  50. #define G_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) >> 8) & 0x1)
  51. #define C_00000D_IDCT_MAX_DYN_STOP_LAT 0xFFFFFEFF
  52. #define S_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 9)
  53. #define G_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) >> 9) & 0x1)
  54. #define C_00000D_VIP_MAX_DYN_STOP_LAT 0xFFFFFDFF
  55. #define S_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 10)
  56. #define G_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) >> 10) & 0x1)
  57. #define C_00000D_RE_MAX_DYN_STOP_LAT 0xFFFFFBFF
  58. #define S_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 11)
  59. #define G_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) >> 11) & 0x1)
  60. #define C_00000D_PB_MAX_DYN_STOP_LAT 0xFFFFF7FF
  61. #define S_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 12)
  62. #define G_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) >> 12) & 0x1)
  63. #define C_00000D_TAM_MAX_DYN_STOP_LAT 0xFFFFEFFF
  64. #define S_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 13)
  65. #define G_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) >> 13) & 0x1)
  66. #define C_00000D_TDM_MAX_DYN_STOP_LAT 0xFFFFDFFF
  67. #define S_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 14)
  68. #define G_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) >> 14) & 0x1)
  69. #define C_00000D_RB_MAX_DYN_STOP_LAT 0xFFFFBFFF
  70. #define S_00000D_FORCE_DISP2(x) (((x) & 0x1) << 15)
  71. #define G_00000D_FORCE_DISP2(x) (((x) >> 15) & 0x1)
  72. #define C_00000D_FORCE_DISP2 0xFFFF7FFF
  73. #define S_00000D_FORCE_CP(x) (((x) & 0x1) << 16)
  74. #define G_00000D_FORCE_CP(x) (((x) >> 16) & 0x1)
  75. #define C_00000D_FORCE_CP 0xFFFEFFFF
  76. #define S_00000D_FORCE_HDP(x) (((x) & 0x1) << 17)
  77. #define G_00000D_FORCE_HDP(x) (((x) >> 17) & 0x1)
  78. #define C_00000D_FORCE_HDP 0xFFFDFFFF
  79. #define S_00000D_FORCE_DISP1(x) (((x) & 0x1) << 18)
  80. #define G_00000D_FORCE_DISP1(x) (((x) >> 18) & 0x1)
  81. #define C_00000D_FORCE_DISP1 0xFFFBFFFF
  82. #define S_00000D_FORCE_TOP(x) (((x) & 0x1) << 19)
  83. #define G_00000D_FORCE_TOP(x) (((x) >> 19) & 0x1)
  84. #define C_00000D_FORCE_TOP 0xFFF7FFFF
  85. #define S_00000D_FORCE_E2(x) (((x) & 0x1) << 20)
  86. #define G_00000D_FORCE_E2(x) (((x) >> 20) & 0x1)
  87. #define C_00000D_FORCE_E2 0xFFEFFFFF
  88. #define S_00000D_FORCE_SE(x) (((x) & 0x1) << 21)
  89. #define G_00000D_FORCE_SE(x) (((x) >> 21) & 0x1)
  90. #define C_00000D_FORCE_SE 0xFFDFFFFF
  91. #define S_00000D_FORCE_IDCT(x) (((x) & 0x1) << 22)
  92. #define G_00000D_FORCE_IDCT(x) (((x) >> 22) & 0x1)
  93. #define C_00000D_FORCE_IDCT 0xFFBFFFFF
  94. #define S_00000D_FORCE_VIP(x) (((x) & 0x1) << 23)
  95. #define G_00000D_FORCE_VIP(x) (((x) >> 23) & 0x1)
  96. #define C_00000D_FORCE_VIP 0xFF7FFFFF
  97. #define S_00000D_FORCE_RE(x) (((x) & 0x1) << 24)
  98. #define G_00000D_FORCE_RE(x) (((x) >> 24) & 0x1)
  99. #define C_00000D_FORCE_RE 0xFEFFFFFF
  100. #define S_00000D_FORCE_PB(x) (((x) & 0x1) << 25)
  101. #define G_00000D_FORCE_PB(x) (((x) >> 25) & 0x1)
  102. #define C_00000D_FORCE_PB 0xFDFFFFFF
  103. #define S_00000D_FORCE_TAM(x) (((x) & 0x1) << 26)
  104. #define G_00000D_FORCE_TAM(x) (((x) >> 26) & 0x1)
  105. #define C_00000D_FORCE_TAM 0xFBFFFFFF
  106. #define S_00000D_FORCE_TDM(x) (((x) & 0x1) << 27)
  107. #define G_00000D_FORCE_TDM(x) (((x) >> 27) & 0x1)
  108. #define C_00000D_FORCE_TDM 0xF7FFFFFF
  109. #define S_00000D_FORCE_RB(x) (((x) & 0x1) << 28)
  110. #define G_00000D_FORCE_RB(x) (((x) >> 28) & 0x1)
  111. #define C_00000D_FORCE_RB 0xEFFFFFFF
  112. #define S_00000D_FORCE_TV_SCLK(x) (((x) & 0x1) << 29)
  113. #define G_00000D_FORCE_TV_SCLK(x) (((x) >> 29) & 0x1)
  114. #define C_00000D_FORCE_TV_SCLK 0xDFFFFFFF
  115. #define S_00000D_FORCE_SUBPIC(x) (((x) & 0x1) << 30)
  116. #define G_00000D_FORCE_SUBPIC(x) (((x) >> 30) & 0x1)
  117. #define C_00000D_FORCE_SUBPIC 0xBFFFFFFF
  118. #define S_00000D_FORCE_OV0(x) (((x) & 0x1) << 31)
  119. #define G_00000D_FORCE_OV0(x) (((x) >> 31) & 0x1)
  120. #define C_00000D_FORCE_OV0 0x7FFFFFFF
  121. #endif