mmss_cc.xml.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #ifndef MMSS_CC_XML
  2. #define MMSS_CC_XML
  3. /* Autogenerated file, DO NOT EDIT manually!
  4. This file was generated by the rules-ng-ng headergen tool in this git repository:
  5. http://github.com/freedreno/envytools/
  6. git clone https://github.com/freedreno/envytools.git
  7. The rules-ng-ng source files this header was generated from are:
  8. - /home/robclark/src/freedreno/envytools/rnndb/msm.xml ( 676 bytes, from 2015-05-20 20:03:14)
  9. - /home/robclark/src/freedreno/envytools/rnndb/freedreno_copyright.xml ( 1453 bytes, from 2015-05-20 20:03:07)
  10. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp4.xml ( 20915 bytes, from 2015-05-20 20:03:14)
  11. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp_common.xml ( 2849 bytes, from 2015-09-18 12:07:28)
  12. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp5.xml ( 37194 bytes, from 2015-09-18 12:07:28)
  13. - /home/robclark/src/freedreno/envytools/rnndb/dsi/dsi.xml ( 27887 bytes, from 2015-10-22 16:34:52)
  14. - /home/robclark/src/freedreno/envytools/rnndb/dsi/sfpb.xml ( 602 bytes, from 2015-10-22 16:35:02)
  15. - /home/robclark/src/freedreno/envytools/rnndb/dsi/mmss_cc.xml ( 1686 bytes, from 2015-05-20 20:03:14)
  16. - /home/robclark/src/freedreno/envytools/rnndb/hdmi/qfprom.xml ( 600 bytes, from 2015-05-20 20:03:07)
  17. - /home/robclark/src/freedreno/envytools/rnndb/hdmi/hdmi.xml ( 29154 bytes, from 2015-08-10 21:25:43)
  18. - /home/robclark/src/freedreno/envytools/rnndb/edp/edp.xml ( 10416 bytes, from 2015-05-20 20:03:14)
  19. Copyright (C) 2013-2015 by the following authors:
  20. - Rob Clark <robdclark@gmail.com> (robclark)
  21. Permission is hereby granted, free of charge, to any person obtaining
  22. a copy of this software and associated documentation files (the
  23. "Software"), to deal in the Software without restriction, including
  24. without limitation the rights to use, copy, modify, merge, publish,
  25. distribute, sublicense, and/or sell copies of the Software, and to
  26. permit persons to whom the Software is furnished to do so, subject to
  27. the following conditions:
  28. The above copyright notice and this permission notice (including the
  29. next paragraph) shall be included in all copies or substantial
  30. portions of the Software.
  31. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  32. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  33. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  34. IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
  35. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  36. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  37. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  38. */
  39. enum mmss_cc_clk {
  40. CLK = 0,
  41. PCLK = 1,
  42. };
  43. #define REG_MMSS_CC_AHB 0x00000008
  44. static inline uint32_t __offset_CLK(enum mmss_cc_clk idx)
  45. {
  46. switch (idx) {
  47. case CLK: return 0x0000004c;
  48. case PCLK: return 0x00000130;
  49. default: return INVALID_IDX(idx);
  50. }
  51. }
  52. static inline uint32_t REG_MMSS_CC_CLK(enum mmss_cc_clk i0) { return 0x00000000 + __offset_CLK(i0); }
  53. static inline uint32_t REG_MMSS_CC_CLK_CC(enum mmss_cc_clk i0) { return 0x00000000 + __offset_CLK(i0); }
  54. #define MMSS_CC_CLK_CC_CLK_EN 0x00000001
  55. #define MMSS_CC_CLK_CC_ROOT_EN 0x00000004
  56. #define MMSS_CC_CLK_CC_MND_EN 0x00000020
  57. #define MMSS_CC_CLK_CC_MND_MODE__MASK 0x000000c0
  58. #define MMSS_CC_CLK_CC_MND_MODE__SHIFT 6
  59. static inline uint32_t MMSS_CC_CLK_CC_MND_MODE(uint32_t val)
  60. {
  61. return ((val) << MMSS_CC_CLK_CC_MND_MODE__SHIFT) & MMSS_CC_CLK_CC_MND_MODE__MASK;
  62. }
  63. #define MMSS_CC_CLK_CC_PMXO_SEL__MASK 0x00000300
  64. #define MMSS_CC_CLK_CC_PMXO_SEL__SHIFT 8
  65. static inline uint32_t MMSS_CC_CLK_CC_PMXO_SEL(uint32_t val)
  66. {
  67. return ((val) << MMSS_CC_CLK_CC_PMXO_SEL__SHIFT) & MMSS_CC_CLK_CC_PMXO_SEL__MASK;
  68. }
  69. static inline uint32_t REG_MMSS_CC_CLK_MD(enum mmss_cc_clk i0) { return 0x00000004 + __offset_CLK(i0); }
  70. #define MMSS_CC_CLK_MD_D__MASK 0x000000ff
  71. #define MMSS_CC_CLK_MD_D__SHIFT 0
  72. static inline uint32_t MMSS_CC_CLK_MD_D(uint32_t val)
  73. {
  74. return ((val) << MMSS_CC_CLK_MD_D__SHIFT) & MMSS_CC_CLK_MD_D__MASK;
  75. }
  76. #define MMSS_CC_CLK_MD_M__MASK 0x0000ff00
  77. #define MMSS_CC_CLK_MD_M__SHIFT 8
  78. static inline uint32_t MMSS_CC_CLK_MD_M(uint32_t val)
  79. {
  80. return ((val) << MMSS_CC_CLK_MD_M__SHIFT) & MMSS_CC_CLK_MD_M__MASK;
  81. }
  82. static inline uint32_t REG_MMSS_CC_CLK_NS(enum mmss_cc_clk i0) { return 0x00000008 + __offset_CLK(i0); }
  83. #define MMSS_CC_CLK_NS_SRC__MASK 0x0000000f
  84. #define MMSS_CC_CLK_NS_SRC__SHIFT 0
  85. static inline uint32_t MMSS_CC_CLK_NS_SRC(uint32_t val)
  86. {
  87. return ((val) << MMSS_CC_CLK_NS_SRC__SHIFT) & MMSS_CC_CLK_NS_SRC__MASK;
  88. }
  89. #define MMSS_CC_CLK_NS_PRE_DIV_FUNC__MASK 0x00fff000
  90. #define MMSS_CC_CLK_NS_PRE_DIV_FUNC__SHIFT 12
  91. static inline uint32_t MMSS_CC_CLK_NS_PRE_DIV_FUNC(uint32_t val)
  92. {
  93. return ((val) << MMSS_CC_CLK_NS_PRE_DIV_FUNC__SHIFT) & MMSS_CC_CLK_NS_PRE_DIV_FUNC__MASK;
  94. }
  95. #define MMSS_CC_CLK_NS_VAL__MASK 0xff000000
  96. #define MMSS_CC_CLK_NS_VAL__SHIFT 24
  97. static inline uint32_t MMSS_CC_CLK_NS_VAL(uint32_t val)
  98. {
  99. return ((val) << MMSS_CC_CLK_NS_VAL__SHIFT) & MMSS_CC_CLK_NS_VAL__MASK;
  100. }
  101. #define REG_MMSS_CC_DSI2_PIXEL_CC 0x00000094
  102. #define REG_MMSS_CC_DSI2_PIXEL_NS 0x000000e4
  103. #define REG_MMSS_CC_DSI2_PIXEL_CC2 0x00000264
  104. #endif /* MMSS_CC_XML */