mtk_dvfsrc_reg_mt6768.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /*
  2. * Copyright (C) 2018 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
  12. */
  13. #ifndef __MTK_DVFSRC_REG_MT6768_H
  14. #define __MTK_DVFSRC_REG_MT6768_H
  15. /**************************************
  16. * Define and Declare
  17. **************************************/
  18. #define DVFSRC_BASIC_CONTROL (0x0)
  19. #define DVFSRC_SW_REQ (0x4)
  20. #define DVFSRC_SW_REQ2 (0x8)
  21. #define DVFSRC_EMI_REQUEST (0xC)
  22. #define DVFSRC_EMI_REQUEST2 (0x10)
  23. #define DVFSRC_EMI_REQUEST3 (0x14)
  24. #define DVFSRC_EMI_HRT (0x18)
  25. #define DVFSRC_EMI_HRT2 (0x1C)
  26. #define DVFSRC_EMI_HRT3 (0x20)
  27. #define DVFSRC_EMI_QOS0 (0x24)
  28. #define DVFSRC_EMI_QOS1 (0x28)
  29. #define DVFSRC_EMI_QOS2 (0x2C)
  30. #define DVFSRC_EMI_MD2SPM0 (0x30)
  31. #define DVFSRC_EMI_MD2SPM1 (0x34)
  32. #define DVFSRC_EMI_MD2SPM2 (0x38)
  33. #define DVFSRC_EMI_MD2SPM0_T (0x3C)
  34. #define DVFSRC_EMI_MD2SPM1_T (0x40)
  35. #define DVFSRC_EMI_MD2SPM2_T (0x44)
  36. #define DVFSRC_VCORE_REQUEST (0x48)
  37. #define DVFSRC_VCORE_REQUEST2 (0x4C)
  38. #define DVFSRC_VCORE_HRT (0x50)
  39. #define DVFSRC_VCORE_HRT2 (0x54)
  40. #define DVFSRC_VCORE_HRT3 (0x58)
  41. #define DVFSRC_VCORE_QOS0 (0x5C)
  42. #define DVFSRC_VCORE_QOS1 (0x60)
  43. #define DVFSRC_VCORE_QOS2 (0x64)
  44. #define DVFSRC_VCORE_MD2SPM0 (0x68)
  45. #define DVFSRC_VCORE_MD2SPM1 (0x6C)
  46. #define DVFSRC_VCORE_MD2SPM2 (0x70)
  47. #define DVFSRC_VCORE_MD2SPM0_T (0x74)
  48. #define DVFSRC_VCORE_MD2SPM1_T (0x78)
  49. #define DVFSRC_VCORE_MD2SPM2_T (0x7C)
  50. #define DVFSRC_MD_REQUEST (0x80)
  51. #define DVFSRC_MD_SW_CONTROL (0x84)
  52. #define DVFSRC_MD_VMODEM_REMAP (0x88)
  53. #define DVFSRC_MD_VMD_REMAP (0x8C)
  54. #define DVFSRC_MD_VSRAM_REMAP (0x90)
  55. #define DVFSRC_HALT_SW_CONTROL (0x94)
  56. #define DVFSRC_INT (0x98)
  57. #define DVFSRC_INT_EN (0x9C)
  58. #define DVFSRC_INT_CLR (0xA0)
  59. #define DVFSRC_BW_MON_WINDOW (0xA4)
  60. #define DVFSRC_BW_MON_THRES_1 (0xA8)
  61. #define DVFSRC_BW_MON_THRES_2 (0xAC)
  62. #define DVFSRC_MD_TURBO (0xB0)
  63. #define DVFSRC_DEBOUNCE_FOUR (0xD0)
  64. #define DVFSRC_DEBOUNCE_RISE_FALL (0xD4)
  65. #define DVFSRC_TIMEOUT_NEXTREQ (0xD8)
  66. #define DVFSRC_LEVEL (0xDC)
  67. #define DVFSRC_LEVEL_LABEL_0_1 (0xE0)
  68. #define DVFSRC_LEVEL_LABEL_2_3 (0xE4)
  69. #define DVFSRC_LEVEL_LABEL_4_5 (0xE8)
  70. #define DVFSRC_LEVEL_LABEL_6_7 (0xEC)
  71. #define DVFSRC_LEVEL_LABEL_8_9 (0xF0)
  72. #define DVFSRC_LEVEL_LABEL_10_11 (0xF4)
  73. #define DVFSRC_LEVEL_LABEL_12_13 (0xF8)
  74. #define DVFSRC_LEVEL_LABEL_14_15 (0xFC)
  75. #define DVFSRC_MM_BW_0 (0x100)
  76. #define DVFSRC_MM_BW_1 (0x104)
  77. #define DVFSRC_MM_BW_2 (0x108)
  78. #define DVFSRC_MM_BW_3 (0x10C)
  79. #define DVFSRC_MM_BW_4 (0x110)
  80. #define DVFSRC_MM_BW_5 (0x114)
  81. #define DVFSRC_MM_BW_6 (0x118)
  82. #define DVFSRC_MM_BW_7 (0x11C)
  83. #define DVFSRC_MM_BW_8 (0x120)
  84. #define DVFSRC_MM_BW_9 (0x124)
  85. #define DVFSRC_MM_BW_10 (0x128)
  86. #define DVFSRC_MM_BW_11 (0x12C)
  87. #define DVFSRC_MM_BW_12 (0x130)
  88. #define DVFSRC_MM_BW_13 (0x134)
  89. #define DVFSRC_MM_BW_14 (0x138)
  90. #define DVFSRC_MM_BW_15 (0x13C)
  91. #define DVFSRC_MD_BW_0 (0x140)
  92. #define DVFSRC_MD_BW_1 (0x144)
  93. #define DVFSRC_MD_BW_2 (0x148)
  94. #define DVFSRC_MD_BW_3 (0x14C)
  95. #define DVFSRC_MD_BW_4 (0x150)
  96. #define DVFSRC_MD_BW_5 (0x154)
  97. #define DVFSRC_MD_BW_6 (0x158)
  98. #define DVFSRC_MD_BW_7 (0x15C)
  99. #define DVFSRC_SW_BW_0 (0x160)
  100. #define DVFSRC_SW_BW_1 (0x164)
  101. #define DVFSRC_SW_BW_2 (0x168)
  102. #define DVFSRC_SW_BW_3 (0x16C)
  103. #define DVFSRC_SW_BW_4 (0x170)
  104. #define DVFSRC_QOS_EN (0x180)
  105. #define DVFSRC_ISP_HRT (0x190)
  106. #define DVFSRC_FORCE (0x300)
  107. #define DVFSRC_SEC_SW_REQ (0x304)
  108. #define DVFSRC_LAST (0x308)
  109. #define DVFSRC_LAST_L (0x30C)
  110. #define DVFSRC_MD_SCENARIO (0X310)
  111. #define DVFSRC_RECORD_0_0 (0x400)
  112. #define DVFSRC_RECORD_0_1 (0x404)
  113. #define DVFSRC_RECORD_0_2 (0x408)
  114. #define DVFSRC_RECORD_1_0 (0x40C)
  115. #define DVFSRC_RECORD_1_1 (0x410)
  116. #define DVFSRC_RECORD_1_2 (0x414)
  117. #define DVFSRC_RECORD_2_0 (0x418)
  118. #define DVFSRC_RECORD_2_1 (0x41C)
  119. #define DVFSRC_RECORD_2_2 (0x420)
  120. #define DVFSRC_RECORD_3_0 (0x424)
  121. #define DVFSRC_RECORD_3_1 (0x428)
  122. #define DVFSRC_RECORD_3_2 (0x42C)
  123. #define DVFSRC_RECORD_4_0 (0x430)
  124. #define DVFSRC_RECORD_4_1 (0x434)
  125. #define DVFSRC_RECORD_4_2 (0x438)
  126. #define DVFSRC_RECORD_5_0 (0x43C)
  127. #define DVFSRC_RECORD_5_1 (0x440)
  128. #define DVFSRC_RECORD_5_2 (0x444)
  129. #define DVFSRC_RECORD_6_0 (0x448)
  130. #define DVFSRC_RECORD_6_1 (0x44C)
  131. #define DVFSRC_RECORD_6_2 (0x450)
  132. #define DVFSRC_RECORD_7_0 (0x454)
  133. #define DVFSRC_RECORD_7_1 (0x458)
  134. #define DVFSRC_RECORD_7_2 (0x45C)
  135. #define DVFSRC_RECORD_0_L_0 (0x460)
  136. #define DVFSRC_RECORD_0_L_1 (0x464)
  137. #define DVFSRC_RECORD_0_L_2 (0x468)
  138. #define DVFSRC_RECORD_1_L_0 (0x46C)
  139. #define DVFSRC_RECORD_1_L_1 (0x470)
  140. #define DVFSRC_RECORD_1_L_2 (0x474)
  141. #define DVFSRC_RECORD_2_L_0 (0x478)
  142. #define DVFSRC_RECORD_2_L_1 (0x47C)
  143. #define DVFSRC_RECORD_2_L_2 (0x480)
  144. #define DVFSRC_RECORD_3_L_0 (0x484)
  145. #define DVFSRC_RECORD_3_L_1 (0x488)
  146. #define DVFSRC_RECORD_3_L_2 (0x48C)
  147. #define DVFSRC_RECORD_4_L_0 (0x490)
  148. #define DVFSRC_RECORD_4_L_1 (0x494)
  149. #define DVFSRC_RECORD_4_L_2 (0x498)
  150. #define DVFSRC_RECORD_5_L_0 (0x49C)
  151. #define DVFSRC_RECORD_5_L_1 (0x4A0)
  152. #define DVFSRC_RECORD_5_L_2 (0x4A4)
  153. #define DVFSRC_RECORD_6_L_0 (0x4A8)
  154. #define DVFSRC_RECORD_6_L_1 (0x4AC)
  155. #define DVFSRC_RECORD_6_L_2 (0x4B0)
  156. #define DVFSRC_RECORD_7_L_0 (0x4B4)
  157. #define DVFSRC_RECORD_7_L_1 (0x4B8)
  158. #define DVFSRC_RECORD_7_L_2 (0x4BC)
  159. #define DVFSRC_RECORD_MD_0 (0x4C0)
  160. #define DVFSRC_RECORD_MD_1 (0x4C4)
  161. #define DVFSRC_RECORD_MD_2 (0x4C8)
  162. #define DVFSRC_RECORD_MD_3 (0x4CC)
  163. #define DVFSRC_RECORD_MD_4 (0x4D0)
  164. #define DVFSRC_RECORD_MD_5 (0x4D4)
  165. #define DVFSRC_RECORD_MD_6 (0x4D8)
  166. #define DVFSRC_RECORD_MD_7 (0x4DC)
  167. #define DVFSRC_RECORD_COUNT (0x4F0)
  168. #define DVFSRC_RSRV_0 (0x600)
  169. #define DVFSRC_RSRV_1 (0x604)
  170. #define DVFSRC_RSRV_2 (0x608)
  171. #define DVFSRC_RSRV_3 (0x60C)
  172. #define DVFSRC_RSRV_4 (0x610)
  173. #define DVFSRC_RSRV_5 (0x614)
  174. #define RECORD_SHIFT 12
  175. #define EMI_BW_MON_SHIFT 16
  176. #define EMI_BW_MON_MASK 3
  177. #endif /* __MTK_DVFSRC_REG_MT6768_H */