radeon.h 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994
  1. #ifndef _RADEON_H
  2. #define _RADEON_H
  3. #define RADEON_REGSIZE 0x4000
  4. #define MM_INDEX 0x0000
  5. #define MM_DATA 0x0004
  6. #define BUS_CNTL 0x0030
  7. #define HI_STAT 0x004C
  8. #define BUS_CNTL1 0x0034
  9. #define I2C_CNTL_1 0x0094
  10. #define CNFG_CNTL 0x00E0
  11. #define CNFG_MEMSIZE 0x00F8
  12. #define CNFG_APER_0_BASE 0x0100
  13. #define CNFG_APER_1_BASE 0x0104
  14. #define CNFG_APER_SIZE 0x0108
  15. #define CNFG_REG_1_BASE 0x010C
  16. #define CNFG_REG_APER_SIZE 0x0110
  17. #define PAD_AGPINPUT_DELAY 0x0164
  18. #define PAD_CTLR_STRENGTH 0x0168
  19. #define PAD_CTLR_UPDATE 0x016C
  20. #define PAD_CTLR_MISC 0x0aa0
  21. #define AGP_CNTL 0x0174
  22. #define BM_STATUS 0x0160
  23. #define CAP0_TRIG_CNTL 0x0950
  24. #define CAP1_TRIG_CNTL 0x09c0
  25. #define VIPH_CONTROL 0x0C40
  26. #define VENDOR_ID 0x0F00
  27. #define DEVICE_ID 0x0F02
  28. #define COMMAND 0x0F04
  29. #define STATUS 0x0F06
  30. #define REVISION_ID 0x0F08
  31. #define REGPROG_INF 0x0F09
  32. #define SUB_CLASS 0x0F0A
  33. #define BASE_CODE 0x0F0B
  34. #define CACHE_LINE 0x0F0C
  35. #define LATENCY 0x0F0D
  36. #define HEADER 0x0F0E
  37. #define BIST 0x0F0F
  38. #define REG_MEM_BASE 0x0F10
  39. #define REG_IO_BASE 0x0F14
  40. #define REG_REG_BASE 0x0F18
  41. #define ADAPTER_ID 0x0F2C
  42. #define BIOS_ROM 0x0F30
  43. #define CAPABILITIES_PTR 0x0F34
  44. #define INTERRUPT_LINE 0x0F3C
  45. #define INTERRUPT_PIN 0x0F3D
  46. #define MIN_GRANT 0x0F3E
  47. #define MAX_LATENCY 0x0F3F
  48. #define ADAPTER_ID_W 0x0F4C
  49. #define PMI_CAP_ID 0x0F50
  50. #define PMI_NXT_CAP_PTR 0x0F51
  51. #define PMI_PMC_REG 0x0F52
  52. #define PM_STATUS 0x0F54
  53. #define PMI_DATA 0x0F57
  54. #define AGP_CAP_ID 0x0F58
  55. #define AGP_STATUS 0x0F5C
  56. #define AGP_COMMAND 0x0F60
  57. #define AIC_CTRL 0x01D0
  58. #define AIC_STAT 0x01D4
  59. #define AIC_PT_BASE 0x01D8
  60. #define AIC_LO_ADDR 0x01DC
  61. #define AIC_HI_ADDR 0x01E0
  62. #define AIC_TLB_ADDR 0x01E4
  63. #define AIC_TLB_DATA 0x01E8
  64. #define DAC_CNTL 0x0058
  65. #define DAC_CNTL2 0x007c
  66. #define CRTC_GEN_CNTL 0x0050
  67. #define MEM_CNTL 0x0140
  68. #define MC_CNTL 0x0140
  69. #define EXT_MEM_CNTL 0x0144
  70. #define MC_TIMING_CNTL 0x0144
  71. #define MC_AGP_LOCATION 0x014C
  72. #define MEM_IO_CNTL_A0 0x0178
  73. #define MEM_REFRESH_CNTL 0x0178
  74. #define MEM_INIT_LATENCY_TIMER 0x0154
  75. #define MC_INIT_GFX_LAT_TIMER 0x0154
  76. #define MEM_SDRAM_MODE_REG 0x0158
  77. #define AGP_BASE 0x0170
  78. #define MEM_IO_CNTL_A1 0x017C
  79. #define MC_READ_CNTL_AB 0x017C
  80. #define MEM_IO_CNTL_B0 0x0180
  81. #define MC_INIT_MISC_LAT_TIMER 0x0180
  82. #define MEM_IO_CNTL_B1 0x0184
  83. #define MC_IOPAD_CNTL 0x0184
  84. #define MC_DEBUG 0x0188
  85. #define MC_STATUS 0x0150
  86. #define MEM_IO_OE_CNTL 0x018C
  87. #define MC_CHIP_IO_OE_CNTL_AB 0x018C
  88. #define MC_FB_LOCATION 0x0148
  89. #define HOST_PATH_CNTL 0x0130
  90. #define MEM_VGA_WP_SEL 0x0038
  91. #define MEM_VGA_RP_SEL 0x003C
  92. #define HDP_DEBUG 0x0138
  93. #define SW_SEMAPHORE 0x013C
  94. #define CRTC2_GEN_CNTL 0x03f8
  95. #define CRTC2_DISPLAY_BASE_ADDR 0x033c
  96. #define SURFACE_CNTL 0x0B00
  97. #define SURFACE0_LOWER_BOUND 0x0B04
  98. #define SURFACE1_LOWER_BOUND 0x0B14
  99. #define SURFACE2_LOWER_BOUND 0x0B24
  100. #define SURFACE3_LOWER_BOUND 0x0B34
  101. #define SURFACE4_LOWER_BOUND 0x0B44
  102. #define SURFACE5_LOWER_BOUND 0x0B54
  103. #define SURFACE6_LOWER_BOUND 0x0B64
  104. #define SURFACE7_LOWER_BOUND 0x0B74
  105. #define SURFACE0_UPPER_BOUND 0x0B08
  106. #define SURFACE1_UPPER_BOUND 0x0B18
  107. #define SURFACE2_UPPER_BOUND 0x0B28
  108. #define SURFACE3_UPPER_BOUND 0x0B38
  109. #define SURFACE4_UPPER_BOUND 0x0B48
  110. #define SURFACE5_UPPER_BOUND 0x0B58
  111. #define SURFACE6_UPPER_BOUND 0x0B68
  112. #define SURFACE7_UPPER_BOUND 0x0B78
  113. #define SURFACE0_INFO 0x0B0C
  114. #define SURFACE1_INFO 0x0B1C
  115. #define SURFACE2_INFO 0x0B2C
  116. #define SURFACE3_INFO 0x0B3C
  117. #define SURFACE4_INFO 0x0B4C
  118. #define SURFACE5_INFO 0x0B5C
  119. #define SURFACE6_INFO 0x0B6C
  120. #define SURFACE7_INFO 0x0B7C
  121. #define SURFACE_ACCESS_FLAGS 0x0BF8
  122. #define SURFACE_ACCESS_CLR 0x0BFC
  123. #define GEN_INT_CNTL 0x0040
  124. #define GEN_INT_STATUS 0x0044
  125. #define CRTC_EXT_CNTL 0x0054
  126. #define RB3D_CNTL 0x1C3C
  127. #define WAIT_UNTIL 0x1720
  128. #define ISYNC_CNTL 0x1724
  129. #define RBBM_GUICNTL 0x172C
  130. #define RBBM_STATUS 0x0E40
  131. #define RBBM_STATUS_alt_1 0x1740
  132. #define RBBM_CNTL 0x00EC
  133. #define RBBM_CNTL_alt_1 0x0E44
  134. #define RBBM_SOFT_RESET 0x00F0
  135. #define RBBM_SOFT_RESET_alt_1 0x0E48
  136. #define NQWAIT_UNTIL 0x0E50
  137. #define RBBM_DEBUG 0x0E6C
  138. #define RBBM_CMDFIFO_ADDR 0x0E70
  139. #define RBBM_CMDFIFO_DATAL 0x0E74
  140. #define RBBM_CMDFIFO_DATAH 0x0E78
  141. #define RBBM_CMDFIFO_STAT 0x0E7C
  142. #define CRTC_STATUS 0x005C
  143. #define GPIO_VGA_DDC 0x0060
  144. #define GPIO_DVI_DDC 0x0064
  145. #define GPIO_MONID 0x0068
  146. #define GPIO_CRT2_DDC 0x006c
  147. #define PALETTE_INDEX 0x00B0
  148. #define PALETTE_DATA 0x00B4
  149. #define PALETTE_30_DATA 0x00B8
  150. #define CRTC_H_TOTAL_DISP 0x0200
  151. #define CRTC_H_SYNC_STRT_WID 0x0204
  152. #define CRTC_V_TOTAL_DISP 0x0208
  153. #define CRTC_V_SYNC_STRT_WID 0x020C
  154. #define CRTC_VLINE_CRNT_VLINE 0x0210
  155. #define CRTC_CRNT_FRAME 0x0214
  156. #define CRTC_GUI_TRIG_VLINE 0x0218
  157. #define CRTC_DEBUG 0x021C
  158. #define CRTC_OFFSET_RIGHT 0x0220
  159. #define CRTC_OFFSET 0x0224
  160. #define CRTC_OFFSET_CNTL 0x0228
  161. #define CRTC_PITCH 0x022C
  162. #define OVR_CLR 0x0230
  163. #define OVR_WID_LEFT_RIGHT 0x0234
  164. #define OVR_WID_TOP_BOTTOM 0x0238
  165. #define DISPLAY_BASE_ADDR 0x023C
  166. #define SNAPSHOT_VH_COUNTS 0x0240
  167. #define SNAPSHOT_F_COUNT 0x0244
  168. #define N_VIF_COUNT 0x0248
  169. #define SNAPSHOT_VIF_COUNT 0x024C
  170. #define FP_CRTC_H_TOTAL_DISP 0x0250
  171. #define FP_CRTC_V_TOTAL_DISP 0x0254
  172. #define CRT_CRTC_H_SYNC_STRT_WID 0x0258
  173. #define CRT_CRTC_V_SYNC_STRT_WID 0x025C
  174. #define CUR_OFFSET 0x0260
  175. #define CUR_HORZ_VERT_POSN 0x0264
  176. #define CUR_HORZ_VERT_OFF 0x0268
  177. #define CUR_CLR0 0x026C
  178. #define CUR_CLR1 0x0270
  179. #define FP_HORZ_VERT_ACTIVE 0x0278
  180. #define CRTC_MORE_CNTL 0x027C
  181. #define CRTC_H_CUTOFF_ACTIVE_EN (1<<4)
  182. #define CRTC_V_CUTOFF_ACTIVE_EN (1<<5)
  183. #define DAC_EXT_CNTL 0x0280
  184. #define FP_GEN_CNTL 0x0284
  185. #define FP_HORZ_STRETCH 0x028C
  186. #define FP_VERT_STRETCH 0x0290
  187. #define FP_H_SYNC_STRT_WID 0x02C4
  188. #define FP_V_SYNC_STRT_WID 0x02C8
  189. #define AUX_WINDOW_HORZ_CNTL 0x02D8
  190. #define AUX_WINDOW_VERT_CNTL 0x02DC
  191. //#define DDA_CONFIG 0x02e0
  192. //#define DDA_ON_OFF 0x02e4
  193. #define DVI_I2C_CNTL_1 0x02e4
  194. #define GRPH_BUFFER_CNTL 0x02F0
  195. #define GRPH2_BUFFER_CNTL 0x03F0
  196. #define VGA_BUFFER_CNTL 0x02F4
  197. #define OV0_Y_X_START 0x0400
  198. #define OV0_Y_X_END 0x0404
  199. #define OV0_PIPELINE_CNTL 0x0408
  200. #define OV0_REG_LOAD_CNTL 0x0410
  201. #define OV0_SCALE_CNTL 0x0420
  202. #define OV0_V_INC 0x0424
  203. #define OV0_P1_V_ACCUM_INIT 0x0428
  204. #define OV0_P23_V_ACCUM_INIT 0x042C
  205. #define OV0_P1_BLANK_LINES_AT_TOP 0x0430
  206. #define OV0_P23_BLANK_LINES_AT_TOP 0x0434
  207. #define OV0_BASE_ADDR 0x043C
  208. #define OV0_VID_BUF0_BASE_ADRS 0x0440
  209. #define OV0_VID_BUF1_BASE_ADRS 0x0444
  210. #define OV0_VID_BUF2_BASE_ADRS 0x0448
  211. #define OV0_VID_BUF3_BASE_ADRS 0x044C
  212. #define OV0_VID_BUF4_BASE_ADRS 0x0450
  213. #define OV0_VID_BUF5_BASE_ADRS 0x0454
  214. #define OV0_VID_BUF_PITCH0_VALUE 0x0460
  215. #define OV0_VID_BUF_PITCH1_VALUE 0x0464
  216. #define OV0_AUTO_FLIP_CNTRL 0x0470
  217. #define OV0_DEINTERLACE_PATTERN 0x0474
  218. #define OV0_SUBMIT_HISTORY 0x0478
  219. #define OV0_H_INC 0x0480
  220. #define OV0_STEP_BY 0x0484
  221. #define OV0_P1_H_ACCUM_INIT 0x0488
  222. #define OV0_P23_H_ACCUM_INIT 0x048C
  223. #define OV0_P1_X_START_END 0x0494
  224. #define OV0_P2_X_START_END 0x0498
  225. #define OV0_P3_X_START_END 0x049C
  226. #define OV0_FILTER_CNTL 0x04A0
  227. #define OV0_FOUR_TAP_COEF_0 0x04B0
  228. #define OV0_FOUR_TAP_COEF_1 0x04B4
  229. #define OV0_FOUR_TAP_COEF_2 0x04B8
  230. #define OV0_FOUR_TAP_COEF_3 0x04BC
  231. #define OV0_FOUR_TAP_COEF_4 0x04C0
  232. #define OV0_FLAG_CNTRL 0x04DC
  233. #define OV0_SLICE_CNTL 0x04E0
  234. #define OV0_VID_KEY_CLR_LOW 0x04E4
  235. #define OV0_VID_KEY_CLR_HIGH 0x04E8
  236. #define OV0_GRPH_KEY_CLR_LOW 0x04EC
  237. #define OV0_GRPH_KEY_CLR_HIGH 0x04F0
  238. #define OV0_KEY_CNTL 0x04F4
  239. #define OV0_TEST 0x04F8
  240. #define SUBPIC_CNTL 0x0540
  241. #define SUBPIC_DEFCOLCON 0x0544
  242. #define SUBPIC_Y_X_START 0x054C
  243. #define SUBPIC_Y_X_END 0x0550
  244. #define SUBPIC_V_INC 0x0554
  245. #define SUBPIC_H_INC 0x0558
  246. #define SUBPIC_BUF0_OFFSET 0x055C
  247. #define SUBPIC_BUF1_OFFSET 0x0560
  248. #define SUBPIC_LC0_OFFSET 0x0564
  249. #define SUBPIC_LC1_OFFSET 0x0568
  250. #define SUBPIC_PITCH 0x056C
  251. #define SUBPIC_BTN_HLI_COLCON 0x0570
  252. #define SUBPIC_BTN_HLI_Y_X_START 0x0574
  253. #define SUBPIC_BTN_HLI_Y_X_END 0x0578
  254. #define SUBPIC_PALETTE_INDEX 0x057C
  255. #define SUBPIC_PALETTE_DATA 0x0580
  256. #define SUBPIC_H_ACCUM_INIT 0x0584
  257. #define SUBPIC_V_ACCUM_INIT 0x0588
  258. #define DISP_MISC_CNTL 0x0D00
  259. #define DAC_MACRO_CNTL 0x0D04
  260. #define DISP_PWR_MAN 0x0D08
  261. #define DISP_TEST_DEBUG_CNTL 0x0D10
  262. #define DISP_HW_DEBUG 0x0D14
  263. #define DAC_CRC_SIG1 0x0D18
  264. #define DAC_CRC_SIG2 0x0D1C
  265. #define OV0_LIN_TRANS_A 0x0D20
  266. #define OV0_LIN_TRANS_B 0x0D24
  267. #define OV0_LIN_TRANS_C 0x0D28
  268. #define OV0_LIN_TRANS_D 0x0D2C
  269. #define OV0_LIN_TRANS_E 0x0D30
  270. #define OV0_LIN_TRANS_F 0x0D34
  271. #define OV0_GAMMA_0_F 0x0D40
  272. #define OV0_GAMMA_10_1F 0x0D44
  273. #define OV0_GAMMA_20_3F 0x0D48
  274. #define OV0_GAMMA_40_7F 0x0D4C
  275. #define OV0_GAMMA_380_3BF 0x0D50
  276. #define OV0_GAMMA_3C0_3FF 0x0D54
  277. #define DISP_MERGE_CNTL 0x0D60
  278. #define DISP_OUTPUT_CNTL 0x0D64
  279. #define DISP_LIN_TRANS_GRPH_A 0x0D80
  280. #define DISP_LIN_TRANS_GRPH_B 0x0D84
  281. #define DISP_LIN_TRANS_GRPH_C 0x0D88
  282. #define DISP_LIN_TRANS_GRPH_D 0x0D8C
  283. #define DISP_LIN_TRANS_GRPH_E 0x0D90
  284. #define DISP_LIN_TRANS_GRPH_F 0x0D94
  285. #define DISP_LIN_TRANS_VID_A 0x0D98
  286. #define DISP_LIN_TRANS_VID_B 0x0D9C
  287. #define DISP_LIN_TRANS_VID_C 0x0DA0
  288. #define DISP_LIN_TRANS_VID_D 0x0DA4
  289. #define DISP_LIN_TRANS_VID_E 0x0DA8
  290. #define DISP_LIN_TRANS_VID_F 0x0DAC
  291. #define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0
  292. #define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4
  293. #define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8
  294. #define RMX_HORZ_PHASE 0x0DBC
  295. #define DAC_EMBEDDED_SYNC_CNTL 0x0DC0
  296. #define DAC_BROAD_PULSE 0x0DC4
  297. #define DAC_SKEW_CLKS 0x0DC8
  298. #define DAC_INCR 0x0DCC
  299. #define DAC_NEG_SYNC_LEVEL 0x0DD0
  300. #define DAC_POS_SYNC_LEVEL 0x0DD4
  301. #define DAC_BLANK_LEVEL 0x0DD8
  302. #define CLOCK_CNTL_INDEX 0x0008
  303. #define CLOCK_CNTL_DATA 0x000C
  304. #define CP_RB_CNTL 0x0704
  305. #define CP_RB_BASE 0x0700
  306. #define CP_RB_RPTR_ADDR 0x070C
  307. #define CP_RB_RPTR 0x0710
  308. #define CP_RB_WPTR 0x0714
  309. #define CP_RB_WPTR_DELAY 0x0718
  310. #define CP_IB_BASE 0x0738
  311. #define CP_IB_BUFSZ 0x073C
  312. #define SCRATCH_REG0 0x15E0
  313. #define GUI_SCRATCH_REG0 0x15E0
  314. #define SCRATCH_REG1 0x15E4
  315. #define GUI_SCRATCH_REG1 0x15E4
  316. #define SCRATCH_REG2 0x15E8
  317. #define GUI_SCRATCH_REG2 0x15E8
  318. #define SCRATCH_REG3 0x15EC
  319. #define GUI_SCRATCH_REG3 0x15EC
  320. #define SCRATCH_REG4 0x15F0
  321. #define GUI_SCRATCH_REG4 0x15F0
  322. #define SCRATCH_REG5 0x15F4
  323. #define GUI_SCRATCH_REG5 0x15F4
  324. #define SCRATCH_UMSK 0x0770
  325. #define SCRATCH_ADDR 0x0774
  326. #define DP_BRUSH_FRGD_CLR 0x147C
  327. #define DP_BRUSH_BKGD_CLR 0x1478
  328. #define DST_LINE_START 0x1600
  329. #define DST_LINE_END 0x1604
  330. #define SRC_OFFSET 0x15AC
  331. #define SRC_PITCH 0x15B0
  332. #define SRC_TILE 0x1704
  333. #define SRC_PITCH_OFFSET 0x1428
  334. #define SRC_X 0x1414
  335. #define SRC_Y 0x1418
  336. #define SRC_X_Y 0x1590
  337. #define SRC_Y_X 0x1434
  338. #define DST_Y_X 0x1438
  339. #define DST_WIDTH_HEIGHT 0x1598
  340. #define DST_HEIGHT_WIDTH 0x143c
  341. #define DST_OFFSET 0x1404
  342. #define SRC_CLUT_ADDRESS 0x1780
  343. #define SRC_CLUT_DATA 0x1784
  344. #define SRC_CLUT_DATA_RD 0x1788
  345. #define HOST_DATA0 0x17C0
  346. #define HOST_DATA1 0x17C4
  347. #define HOST_DATA2 0x17C8
  348. #define HOST_DATA3 0x17CC
  349. #define HOST_DATA4 0x17D0
  350. #define HOST_DATA5 0x17D4
  351. #define HOST_DATA6 0x17D8
  352. #define HOST_DATA7 0x17DC
  353. #define HOST_DATA_LAST 0x17E0
  354. #define DP_SRC_ENDIAN 0x15D4
  355. #define DP_SRC_FRGD_CLR 0x15D8
  356. #define DP_SRC_BKGD_CLR 0x15DC
  357. #define SC_LEFT 0x1640
  358. #define SC_RIGHT 0x1644
  359. #define SC_TOP 0x1648
  360. #define SC_BOTTOM 0x164C
  361. #define SRC_SC_RIGHT 0x1654
  362. #define SRC_SC_BOTTOM 0x165C
  363. #define DP_CNTL 0x16C0
  364. #define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0
  365. #define DP_DATATYPE 0x16C4
  366. #define DP_MIX 0x16C8
  367. #define DP_WRITE_MSK 0x16CC
  368. #define DP_XOP 0x17F8
  369. #define CLR_CMP_CLR_SRC 0x15C4
  370. #define CLR_CMP_CLR_DST 0x15C8
  371. #define CLR_CMP_CNTL 0x15C0
  372. #define CLR_CMP_MSK 0x15CC
  373. #define DSTCACHE_MODE 0x1710
  374. #define DSTCACHE_CTLSTAT 0x1714
  375. #define DEFAULT_PITCH_OFFSET 0x16E0
  376. #define DEFAULT_SC_BOTTOM_RIGHT 0x16E8
  377. #define DEFAULT_SC_TOP_LEFT 0x16EC
  378. #define SRC_PITCH_OFFSET 0x1428
  379. #define DST_PITCH_OFFSET 0x142C
  380. #define DP_GUI_MASTER_CNTL 0x146C
  381. #define SC_TOP_LEFT 0x16EC
  382. #define SC_BOTTOM_RIGHT 0x16F0
  383. #define SRC_SC_BOTTOM_RIGHT 0x16F4
  384. #define RB2D_DSTCACHE_MODE 0x3428
  385. #define RB2D_DSTCACHE_CTLSTAT_broken 0x342C /* do not use */
  386. #define LVDS_GEN_CNTL 0x02d0
  387. #define LVDS_PLL_CNTL 0x02d4
  388. #define FP2_GEN_CNTL 0x0288
  389. #define TMDS_CNTL 0x0294
  390. #define TMDS_CRC 0x02a0
  391. #define TMDS_TRANSMITTER_CNTL 0x02a4
  392. #define MPP_TB_CONFIG 0x01c0
  393. #define PAMAC0_DLY_CNTL 0x0a94
  394. #define PAMAC1_DLY_CNTL 0x0a98
  395. #define PAMAC2_DLY_CNTL 0x0a9c
  396. #define FW_CNTL 0x0118
  397. #define FCP_CNTL 0x0910
  398. #define VGA_DDA_ON_OFF 0x02ec
  399. #define TV_MASTER_CNTL 0x0800
  400. //#define BASE_CODE 0x0f0b
  401. #define BIOS_0_SCRATCH 0x0010
  402. #define BIOS_1_SCRATCH 0x0014
  403. #define BIOS_2_SCRATCH 0x0018
  404. #define BIOS_3_SCRATCH 0x001c
  405. #define BIOS_4_SCRATCH 0x0020
  406. #define BIOS_5_SCRATCH 0x0024
  407. #define BIOS_6_SCRATCH 0x0028
  408. #define BIOS_7_SCRATCH 0x002c
  409. #define HDP_SOFT_RESET (1 << 26)
  410. #define TV_DAC_CNTL 0x088c
  411. #define GPIOPAD_MASK 0x0198
  412. #define GPIOPAD_A 0x019c
  413. #define GPIOPAD_EN 0x01a0
  414. #define GPIOPAD_Y 0x01a4
  415. #define ZV_LCDPAD_MASK 0x01a8
  416. #define ZV_LCDPAD_A 0x01ac
  417. #define ZV_LCDPAD_EN 0x01b0
  418. #define ZV_LCDPAD_Y 0x01b4
  419. /* PLL Registers */
  420. #define CLK_PIN_CNTL 0x0001
  421. #define PPLL_CNTL 0x0002
  422. #define PPLL_REF_DIV 0x0003
  423. #define PPLL_DIV_0 0x0004
  424. #define PPLL_DIV_1 0x0005
  425. #define PPLL_DIV_2 0x0006
  426. #define PPLL_DIV_3 0x0007
  427. #define VCLK_ECP_CNTL 0x0008
  428. #define HTOTAL_CNTL 0x0009
  429. #define M_SPLL_REF_FB_DIV 0x000a
  430. #define AGP_PLL_CNTL 0x000b
  431. #define SPLL_CNTL 0x000c
  432. #define SCLK_CNTL 0x000d
  433. #define MPLL_CNTL 0x000e
  434. #define MDLL_CKO 0x000f
  435. #define MDLL_RDCKA 0x0010
  436. #define MCLK_CNTL 0x0012
  437. #define AGP_PLL_CNTL 0x000b
  438. #define PLL_TEST_CNTL 0x0013
  439. #define CLK_PWRMGT_CNTL 0x0014
  440. #define PLL_PWRMGT_CNTL 0x0015
  441. #define MCLK_MISC 0x001f
  442. #define P2PLL_CNTL 0x002a
  443. #define P2PLL_REF_DIV 0x002b
  444. #define PIXCLKS_CNTL 0x002d
  445. #define SCLK_MORE_CNTL 0x0035
  446. /* MCLK_CNTL bit constants */
  447. #define FORCEON_MCLKA (1 << 16)
  448. #define FORCEON_MCLKB (1 << 17)
  449. #define FORCEON_YCLKA (1 << 18)
  450. #define FORCEON_YCLKB (1 << 19)
  451. #define FORCEON_MC (1 << 20)
  452. #define FORCEON_AIC (1 << 21)
  453. /* SCLK_CNTL bit constants */
  454. #define DYN_STOP_LAT_MASK 0x00007ff8
  455. #define CP_MAX_DYN_STOP_LAT 0x0008
  456. #define SCLK_FORCEON_MASK 0xffff8000
  457. /* SCLK_MORE_CNTL bit constants */
  458. #define SCLK_MORE_FORCEON 0x0700
  459. /* BUS_CNTL bit constants */
  460. #define BUS_DBL_RESYNC 0x00000001
  461. #define BUS_MSTR_RESET 0x00000002
  462. #define BUS_FLUSH_BUF 0x00000004
  463. #define BUS_STOP_REQ_DIS 0x00000008
  464. #define BUS_ROTATION_DIS 0x00000010
  465. #define BUS_MASTER_DIS 0x00000040
  466. #define BUS_ROM_WRT_EN 0x00000080
  467. #define BUS_DIS_ROM 0x00001000
  468. #define BUS_PCI_READ_RETRY_EN 0x00002000
  469. #define BUS_AGP_AD_STEPPING_EN 0x00004000
  470. #define BUS_PCI_WRT_RETRY_EN 0x00008000
  471. #define BUS_MSTR_RD_MULT 0x00100000
  472. #define BUS_MSTR_RD_LINE 0x00200000
  473. #define BUS_SUSPEND 0x00400000
  474. #define LAT_16X 0x00800000
  475. #define BUS_RD_DISCARD_EN 0x01000000
  476. #define BUS_RD_ABORT_EN 0x02000000
  477. #define BUS_MSTR_WS 0x04000000
  478. #define BUS_PARKING_DIS 0x08000000
  479. #define BUS_MSTR_DISCONNECT_EN 0x10000000
  480. #define BUS_WRT_BURST 0x20000000
  481. #define BUS_READ_BURST 0x40000000
  482. #define BUS_RDY_READ_DLY 0x80000000
  483. /* PIXCLKS_CNTL */
  484. #define PIX2CLK_SRC_SEL_MASK 0x03
  485. #define PIX2CLK_SRC_SEL_CPUCLK 0x00
  486. #define PIX2CLK_SRC_SEL_PSCANCLK 0x01
  487. #define PIX2CLK_SRC_SEL_BYTECLK 0x02
  488. #define PIX2CLK_SRC_SEL_P2PLLCLK 0x03
  489. #define PIX2CLK_ALWAYS_ONb (1<<6)
  490. #define PIX2CLK_DAC_ALWAYS_ONb (1<<7)
  491. #define PIXCLK_TV_SRC_SEL (1 << 8)
  492. #define PIXCLK_LVDS_ALWAYS_ONb (1 << 14)
  493. #define PIXCLK_TMDS_ALWAYS_ONb (1 << 15)
  494. /* CLOCK_CNTL_INDEX bit constants */
  495. #define PLL_WR_EN 0x00000080
  496. /* CNFG_CNTL bit constants */
  497. #define CFG_VGA_RAM_EN 0x00000100
  498. #define CFG_ATI_REV_ID_MASK (0xf << 16)
  499. #define CFG_ATI_REV_A11 (0 << 16)
  500. #define CFG_ATI_REV_A12 (1 << 16)
  501. #define CFG_ATI_REV_A13 (2 << 16)
  502. /* CRTC_EXT_CNTL bit constants */
  503. #define VGA_ATI_LINEAR 0x00000008
  504. #define VGA_128KAP_PAGING 0x00000010
  505. #define XCRT_CNT_EN (1 << 6)
  506. #define CRTC_HSYNC_DIS (1 << 8)
  507. #define CRTC_VSYNC_DIS (1 << 9)
  508. #define CRTC_DISPLAY_DIS (1 << 10)
  509. #define CRTC_CRT_ON (1 << 15)
  510. /* DSTCACHE_CTLSTAT bit constants */
  511. #define RB2D_DC_FLUSH_2D (1 << 0)
  512. #define RB2D_DC_FREE_2D (1 << 2)
  513. #define RB2D_DC_FLUSH_ALL (RB2D_DC_FLUSH_2D | RB2D_DC_FREE_2D)
  514. #define RB2D_DC_BUSY (1 << 31)
  515. /* DSTCACHE_MODE bits constants */
  516. #define RB2D_DC_AUTOFLUSH_ENABLE (1 << 8)
  517. #define RB2D_DC_DC_DISABLE_IGNORE_PE (1 << 17)
  518. /* CRTC_GEN_CNTL bit constants */
  519. #define CRTC_DBL_SCAN_EN 0x00000001
  520. #define CRTC_CUR_EN 0x00010000
  521. #define CRTC_INTERLACE_EN (1 << 1)
  522. #define CRTC_BYPASS_LUT_EN (1 << 14)
  523. #define CRTC_EXT_DISP_EN (1 << 24)
  524. #define CRTC_EN (1 << 25)
  525. #define CRTC_DISP_REQ_EN_B (1 << 26)
  526. /* CRTC_STATUS bit constants */
  527. #define CRTC_VBLANK 0x00000001
  528. /* CRTC2_GEN_CNTL bit constants */
  529. #define CRT2_ON (1 << 7)
  530. #define CRTC2_DISPLAY_DIS (1 << 23)
  531. #define CRTC2_EN (1 << 25)
  532. #define CRTC2_DISP_REQ_EN_B (1 << 26)
  533. /* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */
  534. #define CUR_LOCK 0x80000000
  535. /* GPIO bit constants */
  536. #define GPIO_A_0 (1 << 0)
  537. #define GPIO_A_1 (1 << 1)
  538. #define GPIO_Y_0 (1 << 8)
  539. #define GPIO_Y_1 (1 << 9)
  540. #define GPIO_EN_0 (1 << 16)
  541. #define GPIO_EN_1 (1 << 17)
  542. #define GPIO_MASK_0 (1 << 24)
  543. #define GPIO_MASK_1 (1 << 25)
  544. #define VGA_DDC_DATA_OUTPUT GPIO_A_0
  545. #define VGA_DDC_CLK_OUTPUT GPIO_A_1
  546. #define VGA_DDC_DATA_INPUT GPIO_Y_0
  547. #define VGA_DDC_CLK_INPUT GPIO_Y_1
  548. #define VGA_DDC_DATA_OUT_EN GPIO_EN_0
  549. #define VGA_DDC_CLK_OUT_EN GPIO_EN_1
  550. /* FP bit constants */
  551. #define FP_CRTC_H_TOTAL_MASK 0x000003ff
  552. #define FP_CRTC_H_DISP_MASK 0x01ff0000
  553. #define FP_CRTC_V_TOTAL_MASK 0x00000fff
  554. #define FP_CRTC_V_DISP_MASK 0x0fff0000
  555. #define FP_H_SYNC_STRT_CHAR_MASK 0x00001ff8
  556. #define FP_H_SYNC_WID_MASK 0x003f0000
  557. #define FP_V_SYNC_STRT_MASK 0x00000fff
  558. #define FP_V_SYNC_WID_MASK 0x001f0000
  559. #define FP_CRTC_H_TOTAL_SHIFT 0x00000000
  560. #define FP_CRTC_H_DISP_SHIFT 0x00000010
  561. #define FP_CRTC_V_TOTAL_SHIFT 0x00000000
  562. #define FP_CRTC_V_DISP_SHIFT 0x00000010
  563. #define FP_H_SYNC_STRT_CHAR_SHIFT 0x00000003
  564. #define FP_H_SYNC_WID_SHIFT 0x00000010
  565. #define FP_V_SYNC_STRT_SHIFT 0x00000000
  566. #define FP_V_SYNC_WID_SHIFT 0x00000010
  567. /* FP_GEN_CNTL bit constants */
  568. #define FP_FPON (1 << 0)
  569. #define FP_TMDS_EN (1 << 2)
  570. #define FP_PANEL_FORMAT (1 << 3)
  571. #define FP_EN_TMDS (1 << 7)
  572. #define FP_DETECT_SENSE (1 << 8)
  573. #define R200_FP_SOURCE_SEL_MASK (3 << 10)
  574. #define R200_FP_SOURCE_SEL_CRTC1 (0 << 10)
  575. #define R200_FP_SOURCE_SEL_CRTC2 (1 << 10)
  576. #define R200_FP_SOURCE_SEL_RMX (2 << 10)
  577. #define R200_FP_SOURCE_SEL_TRANS (3 << 10)
  578. #define FP_SEL_CRTC1 (0 << 13)
  579. #define FP_SEL_CRTC2 (1 << 13)
  580. #define FP_USE_VGA_HSYNC (1 << 14)
  581. #define FP_CRTC_DONT_SHADOW_HPAR (1 << 15)
  582. #define FP_CRTC_DONT_SHADOW_VPAR (1 << 16)
  583. #define FP_CRTC_DONT_SHADOW_HEND (1 << 17)
  584. #define FP_CRTC_USE_SHADOW_VEND (1 << 18)
  585. #define FP_RMX_HVSYNC_CONTROL_EN (1 << 20)
  586. #define FP_DFP_SYNC_SEL (1 << 21)
  587. #define FP_CRTC_LOCK_8DOT (1 << 22)
  588. #define FP_CRT_SYNC_SEL (1 << 23)
  589. #define FP_USE_SHADOW_EN (1 << 24)
  590. #define FP_CRT_SYNC_ALT (1 << 26)
  591. /* FP2_GEN_CNTL bit constants */
  592. #define FP2_BLANK_EN (1 << 1)
  593. #define FP2_ON (1 << 2)
  594. #define FP2_PANEL_FORMAT (1 << 3)
  595. #define FP2_SOURCE_SEL_MASK (3 << 10)
  596. #define FP2_SOURCE_SEL_CRTC2 (1 << 10)
  597. #define FP2_SRC_SEL_MASK (3 << 13)
  598. #define FP2_SRC_SEL_CRTC2 (1 << 13)
  599. #define FP2_FP_POL (1 << 16)
  600. #define FP2_LP_POL (1 << 17)
  601. #define FP2_SCK_POL (1 << 18)
  602. #define FP2_LCD_CNTL_MASK (7 << 19)
  603. #define FP2_PAD_FLOP_EN (1 << 22)
  604. #define FP2_CRC_EN (1 << 23)
  605. #define FP2_CRC_READ_EN (1 << 24)
  606. #define FP2_DV0_EN (1 << 25)
  607. #define FP2_DV0_RATE_SEL_SDR (1 << 26)
  608. /* LVDS_GEN_CNTL bit constants */
  609. #define LVDS_ON (1 << 0)
  610. #define LVDS_DISPLAY_DIS (1 << 1)
  611. #define LVDS_PANEL_TYPE (1 << 2)
  612. #define LVDS_PANEL_FORMAT (1 << 3)
  613. #define LVDS_EN (1 << 7)
  614. #define LVDS_BL_MOD_LEVEL_MASK 0x0000ff00
  615. #define LVDS_BL_MOD_LEVEL_SHIFT 8
  616. #define LVDS_BL_MOD_EN (1 << 16)
  617. #define LVDS_DIGON (1 << 18)
  618. #define LVDS_BLON (1 << 19)
  619. #define LVDS_SEL_CRTC2 (1 << 23)
  620. #define LVDS_STATE_MASK \
  621. (LVDS_ON | LVDS_DISPLAY_DIS | LVDS_BL_MOD_LEVEL_MASK | LVDS_BLON)
  622. /* LVDS_PLL_CNTL bit constatns */
  623. #define HSYNC_DELAY_SHIFT 0x1c
  624. #define HSYNC_DELAY_MASK (0xf << 0x1c)
  625. /* TMDS_TRANSMITTER_CNTL bit constants */
  626. #define TMDS_PLL_EN (1 << 0)
  627. #define TMDS_PLLRST (1 << 1)
  628. #define TMDS_RAN_PAT_RST (1 << 7)
  629. #define TMDS_ICHCSEL (1 << 28)
  630. /* FP_HORZ_STRETCH bit constants */
  631. #define HORZ_STRETCH_RATIO_MASK 0xffff
  632. #define HORZ_STRETCH_RATIO_MAX 4096
  633. #define HORZ_PANEL_SIZE (0x1ff << 16)
  634. #define HORZ_PANEL_SHIFT 16
  635. #define HORZ_STRETCH_PIXREP (0 << 25)
  636. #define HORZ_STRETCH_BLEND (1 << 26)
  637. #define HORZ_STRETCH_ENABLE (1 << 25)
  638. #define HORZ_AUTO_RATIO (1 << 27)
  639. #define HORZ_FP_LOOP_STRETCH (0x7 << 28)
  640. #define HORZ_AUTO_RATIO_INC (1 << 31)
  641. /* FP_VERT_STRETCH bit constants */
  642. #define VERT_STRETCH_RATIO_MASK 0xfff
  643. #define VERT_STRETCH_RATIO_MAX 4096
  644. #define VERT_PANEL_SIZE (0xfff << 12)
  645. #define VERT_PANEL_SHIFT 12
  646. #define VERT_STRETCH_LINREP (0 << 26)
  647. #define VERT_STRETCH_BLEND (1 << 26)
  648. #define VERT_STRETCH_ENABLE (1 << 25)
  649. #define VERT_AUTO_RATIO_EN (1 << 27)
  650. #define VERT_FP_LOOP_STRETCH (0x7 << 28)
  651. #define VERT_STRETCH_RESERVED 0xf1000000
  652. /* DAC_CNTL bit constants */
  653. #define DAC_8BIT_EN 0x00000100
  654. #define DAC_4BPP_PIX_ORDER 0x00000200
  655. #define DAC_CRC_EN 0x00080000
  656. #define DAC_MASK_ALL (0xff << 24)
  657. #define DAC_PDWN (1 << 15)
  658. #define DAC_EXPAND_MODE (1 << 14)
  659. #define DAC_VGA_ADR_EN (1 << 13)
  660. #define DAC_RANGE_CNTL (3 << 0)
  661. #define DAC_RANGE_CNTL_MASK 0x03
  662. #define DAC_BLANKING (1 << 2)
  663. #define DAC_CMP_EN (1 << 3)
  664. #define DAC_CMP_OUTPUT (1 << 7)
  665. /* DAC_CNTL2 bit constants */
  666. #define DAC2_EXPAND_MODE (1 << 14)
  667. #define DAC2_CMP_EN (1 << 7)
  668. #define DAC2_PALETTE_ACCESS_CNTL (1 << 5)
  669. /* DAC_EXT_CNTL bit constants */
  670. #define DAC_FORCE_BLANK_OFF_EN (1 << 4)
  671. #define DAC_FORCE_DATA_EN (1 << 5)
  672. #define DAC_FORCE_DATA_SEL_MASK (3 << 6)
  673. #define DAC_FORCE_DATA_MASK 0x0003ff00
  674. #define DAC_FORCE_DATA_SHIFT 8
  675. /* GEN_RESET_CNTL bit constants */
  676. #define SOFT_RESET_GUI 0x00000001
  677. #define SOFT_RESET_VCLK 0x00000100
  678. #define SOFT_RESET_PCLK 0x00000200
  679. #define SOFT_RESET_ECP 0x00000400
  680. #define SOFT_RESET_DISPENG_XCLK 0x00000800
  681. /* MEM_CNTL bit constants */
  682. #define MEM_CTLR_STATUS_IDLE 0x00000000
  683. #define MEM_CTLR_STATUS_BUSY 0x00100000
  684. #define MEM_SEQNCR_STATUS_IDLE 0x00000000
  685. #define MEM_SEQNCR_STATUS_BUSY 0x00200000
  686. #define MEM_ARBITER_STATUS_IDLE 0x00000000
  687. #define MEM_ARBITER_STATUS_BUSY 0x00400000
  688. #define MEM_REQ_UNLOCK 0x00000000
  689. #define MEM_REQ_LOCK 0x00800000
  690. #define MEM_NUM_CHANNELS_MASK 0x00000001
  691. #define MEM_USE_B_CH_ONLY 0x00000002
  692. #define RV100_MEM_HALF_MODE 0x00000008
  693. #define R300_MEM_NUM_CHANNELS_MASK 0x00000003
  694. #define R300_MEM_USE_CD_CH_ONLY 0x00000004
  695. /* RBBM_SOFT_RESET bit constants */
  696. #define SOFT_RESET_CP (1 << 0)
  697. #define SOFT_RESET_HI (1 << 1)
  698. #define SOFT_RESET_SE (1 << 2)
  699. #define SOFT_RESET_RE (1 << 3)
  700. #define SOFT_RESET_PP (1 << 4)
  701. #define SOFT_RESET_E2 (1 << 5)
  702. #define SOFT_RESET_RB (1 << 6)
  703. #define SOFT_RESET_HDP (1 << 7)
  704. /* WAIT_UNTIL bit constants */
  705. #define WAIT_DMA_GUI_IDLE (1 << 9)
  706. #define WAIT_2D_IDLECLEAN (1 << 16)
  707. /* SURFACE_CNTL bit consants */
  708. #define SURF_TRANSLATION_DIS (1 << 8)
  709. #define NONSURF_AP0_SWP_16BPP (1 << 20)
  710. #define NONSURF_AP0_SWP_32BPP (1 << 21)
  711. #define NONSURF_AP1_SWP_16BPP (1 << 22)
  712. #define NONSURF_AP1_SWP_32BPP (1 << 23)
  713. /* DEFAULT_SC_BOTTOM_RIGHT bit constants */
  714. #define DEFAULT_SC_RIGHT_MAX (0x1fff << 0)
  715. #define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16)
  716. /* MM_INDEX bit constants */
  717. #define MM_APER 0x80000000
  718. /* CLR_CMP_CNTL bit constants */
  719. #define COMPARE_SRC_FALSE 0x00000000
  720. #define COMPARE_SRC_TRUE 0x00000001
  721. #define COMPARE_SRC_NOT_EQUAL 0x00000004
  722. #define COMPARE_SRC_EQUAL 0x00000005
  723. #define COMPARE_SRC_EQUAL_FLIP 0x00000007
  724. #define COMPARE_DST_FALSE 0x00000000
  725. #define COMPARE_DST_TRUE 0x00000100
  726. #define COMPARE_DST_NOT_EQUAL 0x00000400
  727. #define COMPARE_DST_EQUAL 0x00000500
  728. #define COMPARE_DESTINATION 0x00000000
  729. #define COMPARE_SOURCE 0x01000000
  730. #define COMPARE_SRC_AND_DST 0x02000000
  731. /* DP_CNTL bit constants */
  732. #define DST_X_RIGHT_TO_LEFT 0x00000000
  733. #define DST_X_LEFT_TO_RIGHT 0x00000001
  734. #define DST_Y_BOTTOM_TO_TOP 0x00000000
  735. #define DST_Y_TOP_TO_BOTTOM 0x00000002
  736. #define DST_X_MAJOR 0x00000000
  737. #define DST_Y_MAJOR 0x00000004
  738. #define DST_X_TILE 0x00000008
  739. #define DST_Y_TILE 0x00000010
  740. #define DST_LAST_PEL 0x00000020
  741. #define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000
  742. #define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040
  743. #define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000
  744. #define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080
  745. #define DST_BRES_SIGN 0x00000100
  746. #define DST_HOST_BIG_ENDIAN_EN 0x00000200
  747. #define DST_POLYLINE_NONLAST 0x00008000
  748. #define DST_RASTER_STALL 0x00010000
  749. #define DST_POLY_EDGE 0x00040000
  750. /* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */
  751. #define DST_X_MAJOR_S 0x00000000
  752. #define DST_Y_MAJOR_S 0x00000001
  753. #define DST_Y_BOTTOM_TO_TOP_S 0x00000000
  754. #define DST_Y_TOP_TO_BOTTOM_S 0x00008000
  755. #define DST_X_RIGHT_TO_LEFT_S 0x00000000
  756. #define DST_X_LEFT_TO_RIGHT_S 0x80000000
  757. /* DP_DATATYPE bit constants */
  758. #define DST_8BPP 0x00000002
  759. #define DST_15BPP 0x00000003
  760. #define DST_16BPP 0x00000004
  761. #define DST_24BPP 0x00000005
  762. #define DST_32BPP 0x00000006
  763. #define DST_8BPP_RGB332 0x00000007
  764. #define DST_8BPP_Y8 0x00000008
  765. #define DST_8BPP_RGB8 0x00000009
  766. #define DST_16BPP_VYUY422 0x0000000b
  767. #define DST_16BPP_YVYU422 0x0000000c
  768. #define DST_32BPP_AYUV444 0x0000000e
  769. #define DST_16BPP_ARGB4444 0x0000000f
  770. #define BRUSH_SOLIDCOLOR 0x00000d00
  771. #define SRC_MONO 0x00000000
  772. #define SRC_MONO_LBKGD 0x00010000
  773. #define SRC_DSTCOLOR 0x00030000
  774. #define BYTE_ORDER_MSB_TO_LSB 0x00000000
  775. #define BYTE_ORDER_LSB_TO_MSB 0x40000000
  776. #define DP_CONVERSION_TEMP 0x80000000
  777. #define HOST_BIG_ENDIAN_EN (1 << 29)
  778. /* DP_GUI_MASTER_CNTL bit constants */
  779. #define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000
  780. #define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001
  781. #define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000
  782. #define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002
  783. #define GMC_SRC_CLIP_DEFAULT 0x00000000
  784. #define GMC_SRC_CLIP_LEAVE 0x00000004
  785. #define GMC_DST_CLIP_DEFAULT 0x00000000
  786. #define GMC_DST_CLIP_LEAVE 0x00000008
  787. #define GMC_BRUSH_8x8MONO 0x00000000
  788. #define GMC_BRUSH_8x8MONO_LBKGD 0x00000010
  789. #define GMC_BRUSH_8x1MONO 0x00000020
  790. #define GMC_BRUSH_8x1MONO_LBKGD 0x00000030
  791. #define GMC_BRUSH_1x8MONO 0x00000040
  792. #define GMC_BRUSH_1x8MONO_LBKGD 0x00000050
  793. #define GMC_BRUSH_32x1MONO 0x00000060
  794. #define GMC_BRUSH_32x1MONO_LBKGD 0x00000070
  795. #define GMC_BRUSH_32x32MONO 0x00000080
  796. #define GMC_BRUSH_32x32MONO_LBKGD 0x00000090
  797. #define GMC_BRUSH_8x8COLOR 0x000000a0
  798. #define GMC_BRUSH_8x1COLOR 0x000000b0
  799. #define GMC_BRUSH_1x8COLOR 0x000000c0
  800. #define GMC_BRUSH_SOLID_COLOR 0x000000d0
  801. #define GMC_DST_8BPP 0x00000200
  802. #define GMC_DST_15BPP 0x00000300
  803. #define GMC_DST_16BPP 0x00000400
  804. #define GMC_DST_24BPP 0x00000500
  805. #define GMC_DST_32BPP 0x00000600
  806. #define GMC_DST_8BPP_RGB332 0x00000700
  807. #define GMC_DST_8BPP_Y8 0x00000800
  808. #define GMC_DST_8BPP_RGB8 0x00000900
  809. #define GMC_DST_16BPP_VYUY422 0x00000b00
  810. #define GMC_DST_16BPP_YVYU422 0x00000c00
  811. #define GMC_DST_32BPP_AYUV444 0x00000e00
  812. #define GMC_DST_16BPP_ARGB4444 0x00000f00
  813. #define GMC_SRC_MONO 0x00000000
  814. #define GMC_SRC_MONO_LBKGD 0x00001000
  815. #define GMC_SRC_DSTCOLOR 0x00003000
  816. #define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000
  817. #define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000
  818. #define GMC_DP_CONVERSION_TEMP_9300 0x00008000
  819. #define GMC_DP_CONVERSION_TEMP_6500 0x00000000
  820. #define GMC_DP_SRC_RECT 0x02000000
  821. #define GMC_DP_SRC_HOST 0x03000000
  822. #define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000
  823. #define GMC_3D_FCN_EN_CLR 0x00000000
  824. #define GMC_3D_FCN_EN_SET 0x08000000
  825. #define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000
  826. #define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000
  827. #define GMC_AUX_CLIP_LEAVE 0x00000000
  828. #define GMC_AUX_CLIP_CLEAR 0x20000000
  829. #define GMC_WRITE_MASK_LEAVE 0x00000000
  830. #define GMC_WRITE_MASK_SET 0x40000000
  831. #define GMC_CLR_CMP_CNTL_DIS (1 << 28)
  832. #define GMC_SRC_DATATYPE_COLOR (3 << 12)
  833. #define ROP3_S 0x00cc0000
  834. #define ROP3_SRCCOPY 0x00cc0000
  835. #define ROP3_P 0x00f00000
  836. #define ROP3_PATCOPY 0x00f00000
  837. #define DP_SRC_SOURCE_MASK (7 << 24)
  838. #define GMC_BRUSH_NONE (15 << 4)
  839. #define DP_SRC_SOURCE_MEMORY (2 << 24)
  840. #define GMC_BRUSH_SOLIDCOLOR 0x000000d0
  841. /* DP_MIX bit constants */
  842. #define DP_SRC_RECT 0x00000200
  843. #define DP_SRC_HOST 0x00000300
  844. #define DP_SRC_HOST_BYTEALIGN 0x00000400
  845. /* MPLL_CNTL bit constants */
  846. #define MPLL_RESET 0x00000001
  847. /* MDLL_CKO bit constants */
  848. #define MCKOA_SLEEP 0x00000001
  849. #define MCKOA_RESET 0x00000002
  850. #define MCKOA_REF_SKEW_MASK 0x00000700
  851. #define MCKOA_FB_SKEW_MASK 0x00007000
  852. /* MDLL_RDCKA bit constants */
  853. #define MRDCKA0_SLEEP 0x00000001
  854. #define MRDCKA0_RESET 0x00000002
  855. #define MRDCKA1_SLEEP 0x00010000
  856. #define MRDCKA1_RESET 0x00020000
  857. /* VCLK_ECP_CNTL constants */
  858. #define VCLK_SRC_SEL_MASK 0x03
  859. #define VCLK_SRC_SEL_CPUCLK 0x00
  860. #define VCLK_SRC_SEL_PSCANCLK 0x01
  861. #define VCLK_SRC_SEL_BYTECLK 0x02
  862. #define VCLK_SRC_SEL_PPLLCLK 0x03
  863. #define PIXCLK_ALWAYS_ONb 0x00000040
  864. #define PIXCLK_DAC_ALWAYS_ONb 0x00000080
  865. /* BUS_CNTL1 constants */
  866. #define BUS_CNTL1_MOBILE_PLATFORM_SEL_MASK 0x0c000000
  867. #define BUS_CNTL1_MOBILE_PLATFORM_SEL_SHIFT 26
  868. #define BUS_CNTL1_AGPCLK_VALID 0x80000000
  869. /* PLL_PWRMGT_CNTL constants */
  870. #define PLL_PWRMGT_CNTL_SPLL_TURNOFF 0x00000002
  871. #define PLL_PWRMGT_CNTL_PPLL_TURNOFF 0x00000004
  872. #define PLL_PWRMGT_CNTL_P2PLL_TURNOFF 0x00000008
  873. #define PLL_PWRMGT_CNTL_TVPLL_TURNOFF 0x00000010
  874. #define PLL_PWRMGT_CNTL_MOBILE_SU 0x00010000
  875. #define PLL_PWRMGT_CNTL_SU_SCLK_USE_BCLK 0x00020000
  876. #define PLL_PWRMGT_CNTL_SU_MCLK_USE_BCLK 0x00040000
  877. /* TV_DAC_CNTL constants */
  878. #define TV_DAC_CNTL_BGSLEEP 0x00000040
  879. #define TV_DAC_CNTL_DETECT 0x00000010
  880. #define TV_DAC_CNTL_BGADJ_MASK 0x000f0000
  881. #define TV_DAC_CNTL_DACADJ_MASK 0x00f00000
  882. #define TV_DAC_CNTL_BGADJ__SHIFT 16
  883. #define TV_DAC_CNTL_DACADJ__SHIFT 20
  884. #define TV_DAC_CNTL_RDACPD 0x01000000
  885. #define TV_DAC_CNTL_GDACPD 0x02000000
  886. #define TV_DAC_CNTL_BDACPD 0x04000000
  887. /* DISP_MISC_CNTL constants */
  888. #define DISP_MISC_CNTL_SOFT_RESET_GRPH_PP (1 << 0)
  889. #define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_PP (1 << 1)
  890. #define DISP_MISC_CNTL_SOFT_RESET_OV0_PP (1 << 2)
  891. #define DISP_MISC_CNTL_SOFT_RESET_GRPH_SCLK (1 << 4)
  892. #define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_SCLK (1 << 5)
  893. #define DISP_MISC_CNTL_SOFT_RESET_OV0_SCLK (1 << 6)
  894. #define DISP_MISC_CNTL_SOFT_RESET_GRPH2_PP (1 << 12)
  895. #define DISP_MISC_CNTL_SOFT_RESET_GRPH2_SCLK (1 << 15)
  896. #define DISP_MISC_CNTL_SOFT_RESET_LVDS (1 << 16)
  897. #define DISP_MISC_CNTL_SOFT_RESET_TMDS (1 << 17)
  898. #define DISP_MISC_CNTL_SOFT_RESET_DIG_TMDS (1 << 18)
  899. #define DISP_MISC_CNTL_SOFT_RESET_TV (1 << 19)
  900. /* DISP_PWR_MAN constants */
  901. #define DISP_PWR_MAN_DISP_PWR_MAN_D3_CRTC_EN (1 << 0)
  902. #define DISP_PWR_MAN_DISP2_PWR_MAN_D3_CRTC2_EN (1 << 4)
  903. #define DISP_PWR_MAN_DISP_D3_RST (1 << 16)
  904. #define DISP_PWR_MAN_DISP_D3_REG_RST (1 << 17)
  905. #define DISP_PWR_MAN_DISP_D3_GRPH_RST (1 << 18)
  906. #define DISP_PWR_MAN_DISP_D3_SUBPIC_RST (1 << 19)
  907. #define DISP_PWR_MAN_DISP_D3_OV0_RST (1 << 20)
  908. #define DISP_PWR_MAN_DISP_D1D2_GRPH_RST (1 << 21)
  909. #define DISP_PWR_MAN_DISP_D1D2_SUBPIC_RST (1 << 22)
  910. #define DISP_PWR_MAN_DISP_D1D2_OV0_RST (1 << 23)
  911. #define DISP_PWR_MAN_DIG_TMDS_ENABLE_RST (1 << 24)
  912. #define DISP_PWR_MAN_TV_ENABLE_RST (1 << 25)
  913. #define DISP_PWR_MAN_AUTO_PWRUP_EN (1 << 26)
  914. /* masks */
  915. #define CNFG_MEMSIZE_MASK 0x1f000000
  916. #define MEM_CFG_TYPE 0x40000000
  917. #define DST_OFFSET_MASK 0x003fffff
  918. #define DST_PITCH_MASK 0x3fc00000
  919. #define DEFAULT_TILE_MASK 0xc0000000
  920. #define PPLL_DIV_SEL_MASK 0x00000300
  921. #define PPLL_RESET 0x00000001
  922. #define PPLL_SLEEP 0x00000002
  923. #define PPLL_ATOMIC_UPDATE_EN 0x00010000
  924. #define PPLL_REF_DIV_MASK 0x000003ff
  925. #define PPLL_FB3_DIV_MASK 0x000007ff
  926. #define PPLL_POST3_DIV_MASK 0x00070000
  927. #define PPLL_ATOMIC_UPDATE_R 0x00008000
  928. #define PPLL_ATOMIC_UPDATE_W 0x00008000
  929. #define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000
  930. #define R300_PPLL_REF_DIV_ACC_MASK (0x3ff << 18)
  931. #define R300_PPLL_REF_DIV_ACC_SHIFT 18
  932. #define GUI_ACTIVE 0x80000000
  933. #define MC_IND_INDEX 0x01F8
  934. #define MC_IND_DATA 0x01FC
  935. /* PAD_CTLR_STRENGTH */
  936. #define PAD_MANUAL_OVERRIDE 0x80000000
  937. // pllCLK_PIN_CNTL
  938. #define CLK_PIN_CNTL__OSC_EN_MASK 0x00000001L
  939. #define CLK_PIN_CNTL__OSC_EN 0x00000001L
  940. #define CLK_PIN_CNTL__XTL_LOW_GAIN_MASK 0x00000004L
  941. #define CLK_PIN_CNTL__XTL_LOW_GAIN 0x00000004L
  942. #define CLK_PIN_CNTL__DONT_USE_XTALIN_MASK 0x00000010L
  943. #define CLK_PIN_CNTL__DONT_USE_XTALIN 0x00000010L
  944. #define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE_MASK 0x00000020L
  945. #define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE 0x00000020L
  946. #define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN_MASK 0x00000800L
  947. #define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN 0x00000800L
  948. #define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN_MASK 0x00001000L
  949. #define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN 0x00001000L
  950. #define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND_MASK 0x00002000L
  951. #define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND 0x00002000L
  952. #define CLK_PIN_CNTL__CG_SPARE_MASK 0x00004000L
  953. #define CLK_PIN_CNTL__CG_SPARE 0x00004000L
  954. #define CLK_PIN_CNTL__SCLK_DYN_START_CNTL_MASK 0x00008000L
  955. #define CLK_PIN_CNTL__SCLK_DYN_START_CNTL 0x00008000L
  956. #define CLK_PIN_CNTL__CP_CLK_RUNNING_MASK 0x00010000L
  957. #define CLK_PIN_CNTL__CP_CLK_RUNNING 0x00010000L
  958. #define CLK_PIN_CNTL__CG_SPARE_RD_MASK 0x00060000L
  959. #define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb_MASK 0x00080000L
  960. #define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb 0x00080000L
  961. #define CLK_PIN_CNTL__PWRSEQ_DELAY_MASK 0xff000000L
  962. // pllCLK_PWRMGT_CNTL
  963. #define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF__SHIFT 0x00000000
  964. #define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF__SHIFT 0x00000001
  965. #define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF__SHIFT 0x00000002
  966. #define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF__SHIFT 0x00000003
  967. #define CLK_PWRMGT_CNTL__MCLK_TURNOFF__SHIFT 0x00000004
  968. #define CLK_PWRMGT_CNTL__SCLK_TURNOFF__SHIFT 0x00000005
  969. #define CLK_PWRMGT_CNTL__PCLK_TURNOFF__SHIFT 0x00000006
  970. #define CLK_PWRMGT_CNTL__P2CLK_TURNOFF__SHIFT 0x00000007
  971. #define CLK_PWRMGT_CNTL__MC_CH_MODE__SHIFT 0x00000008
  972. #define CLK_PWRMGT_CNTL__TEST_MODE__SHIFT 0x00000009
  973. #define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN__SHIFT 0x0000000a
  974. #define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE__SHIFT 0x0000000c
  975. #define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT__SHIFT 0x0000000d
  976. #define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT__SHIFT 0x0000000f
  977. #define CLK_PWRMGT_CNTL__MC_BUSY__SHIFT 0x00000010
  978. #define CLK_PWRMGT_CNTL__MC_INT_CNTL__SHIFT 0x00000011
  979. #define CLK_PWRMGT_CNTL__MC_SWITCH__SHIFT 0x00000012
  980. #define CLK_PWRMGT_CNTL__DLL_READY__SHIFT 0x00000013
  981. #define CLK_PWRMGT_CNTL__DISP_PM__SHIFT 0x00000014
  982. #define CLK_PWRMGT_CNTL__DYN_STOP_MODE__SHIFT 0x00000015
  983. #define CLK_PWRMGT_CNTL__CG_NO1_DEBUG__SHIFT 0x00000018
  984. #define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF__SHIFT 0x0000001e
  985. #define CLK_PWRMGT_CNTL__TVCLK_TURNOFF__SHIFT 0x0000001f
  986. // pllP2PLL_CNTL
  987. #define P2PLL_CNTL__P2PLL_RESET_MASK 0x00000001L
  988. #define P2PLL_CNTL__P2PLL_RESET 0x00000001L
  989. #define P2PLL_CNTL__P2PLL_SLEEP_MASK 0x00000002L
  990. #define P2PLL_CNTL__P2PLL_SLEEP 0x00000002L
  991. #define P2PLL_CNTL__P2PLL_TST_EN_MASK 0x00000004L
  992. #define P2PLL_CNTL__P2PLL_TST_EN 0x00000004L
  993. #define P2PLL_CNTL__P2PLL_REFCLK_SEL_MASK 0x00000010L
  994. #define P2PLL_CNTL__P2PLL_REFCLK_SEL 0x00000010L
  995. #define P2PLL_CNTL__P2PLL_FBCLK_SEL_MASK 0x00000020L
  996. #define P2PLL_CNTL__P2PLL_FBCLK_SEL 0x00000020L
  997. #define P2PLL_CNTL__P2PLL_TCPOFF_MASK 0x00000040L
  998. #define P2PLL_CNTL__P2PLL_TCPOFF 0x00000040L
  999. #define P2PLL_CNTL__P2PLL_TVCOMAX_MASK 0x00000080L
  1000. #define P2PLL_CNTL__P2PLL_TVCOMAX 0x00000080L
  1001. #define P2PLL_CNTL__P2PLL_PCP_MASK 0x00000700L
  1002. #define P2PLL_CNTL__P2PLL_PVG_MASK 0x00003800L
  1003. #define P2PLL_CNTL__P2PLL_PDC_MASK 0x0000c000L
  1004. #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN_MASK 0x00010000L
  1005. #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN 0x00010000L
  1006. #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC_MASK 0x00040000L
  1007. #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC 0x00040000L
  1008. #define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET_MASK 0x00080000L
  1009. #define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET 0x00080000L
  1010. // pllPIXCLKS_CNTL
  1011. #define PIXCLKS_CNTL__PIX2CLK_SRC_SEL__SHIFT 0x00000000
  1012. #define PIXCLKS_CNTL__PIX2CLK_INVERT__SHIFT 0x00000004
  1013. #define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT__SHIFT 0x00000005
  1014. #define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb__SHIFT 0x00000006
  1015. #define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb__SHIFT 0x00000007
  1016. #define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL__SHIFT 0x00000008
  1017. #define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb__SHIFT 0x0000000b
  1018. #define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb__SHIFT 0x0000000c
  1019. #define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb__SHIFT 0x0000000d
  1020. #define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb__SHIFT 0x0000000e
  1021. #define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb__SHIFT 0x0000000f
  1022. // pllPIXCLKS_CNTL
  1023. #define PIXCLKS_CNTL__PIX2CLK_SRC_SEL_MASK 0x00000003L
  1024. #define PIXCLKS_CNTL__PIX2CLK_INVERT 0x00000010L
  1025. #define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT 0x00000020L
  1026. #define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb 0x00000040L
  1027. #define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb 0x00000080L
  1028. #define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL 0x00000100L
  1029. #define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb 0x00000800L
  1030. #define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb 0x00001000L
  1031. #define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb 0x00002000L
  1032. #define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb 0x00004000L
  1033. #define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb 0x00008000L
  1034. #define PIXCLKS_CNTL__DISP_TVOUT_PIXCLK_TV_ALWAYS_ONb (1 << 9)
  1035. #define PIXCLKS_CNTL__R300_DVOCLK_ALWAYS_ONb (1 << 10)
  1036. #define PIXCLKS_CNTL__R300_PIXCLK_DVO_ALWAYS_ONb (1 << 13)
  1037. #define PIXCLKS_CNTL__R300_PIXCLK_TRANS_ALWAYS_ONb (1 << 16)
  1038. #define PIXCLKS_CNTL__R300_PIXCLK_TVO_ALWAYS_ONb (1 << 17)
  1039. #define PIXCLKS_CNTL__R300_P2G2CLK_ALWAYS_ONb (1 << 18)
  1040. #define PIXCLKS_CNTL__R300_P2G2CLK_DAC_ALWAYS_ONb (1 << 19)
  1041. #define PIXCLKS_CNTL__R300_DISP_DAC_PIXCLK_DAC2_BLANK_OFF (1 << 23)
  1042. // pllP2PLL_DIV_0
  1043. #define P2PLL_DIV_0__P2PLL_FB_DIV_MASK 0x000007ffL
  1044. #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W_MASK 0x00008000L
  1045. #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W 0x00008000L
  1046. #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R_MASK 0x00008000L
  1047. #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R 0x00008000L
  1048. #define P2PLL_DIV_0__P2PLL_POST_DIV_MASK 0x00070000L
  1049. // pllSCLK_CNTL
  1050. #define SCLK_CNTL__SCLK_SRC_SEL_MASK 0x00000007L
  1051. #define SCLK_CNTL__CP_MAX_DYN_STOP_LAT 0x00000008L
  1052. #define SCLK_CNTL__HDP_MAX_DYN_STOP_LAT 0x00000010L
  1053. #define SCLK_CNTL__TV_MAX_DYN_STOP_LAT 0x00000020L
  1054. #define SCLK_CNTL__E2_MAX_DYN_STOP_LAT 0x00000040L
  1055. #define SCLK_CNTL__SE_MAX_DYN_STOP_LAT 0x00000080L
  1056. #define SCLK_CNTL__IDCT_MAX_DYN_STOP_LAT 0x00000100L
  1057. #define SCLK_CNTL__VIP_MAX_DYN_STOP_LAT 0x00000200L
  1058. #define SCLK_CNTL__RE_MAX_DYN_STOP_LAT 0x00000400L
  1059. #define SCLK_CNTL__PB_MAX_DYN_STOP_LAT 0x00000800L
  1060. #define SCLK_CNTL__TAM_MAX_DYN_STOP_LAT 0x00001000L
  1061. #define SCLK_CNTL__TDM_MAX_DYN_STOP_LAT 0x00002000L
  1062. #define SCLK_CNTL__RB_MAX_DYN_STOP_LAT 0x00004000L
  1063. #define SCLK_CNTL__DYN_STOP_LAT_MASK 0x00007ff8
  1064. #define SCLK_CNTL__FORCE_DISP2 0x00008000L
  1065. #define SCLK_CNTL__FORCE_CP 0x00010000L
  1066. #define SCLK_CNTL__FORCE_HDP 0x00020000L
  1067. #define SCLK_CNTL__FORCE_DISP1 0x00040000L
  1068. #define SCLK_CNTL__FORCE_TOP 0x00080000L
  1069. #define SCLK_CNTL__FORCE_E2 0x00100000L
  1070. #define SCLK_CNTL__FORCE_SE 0x00200000L
  1071. #define SCLK_CNTL__FORCE_IDCT 0x00400000L
  1072. #define SCLK_CNTL__FORCE_VIP 0x00800000L
  1073. #define SCLK_CNTL__FORCE_RE 0x01000000L
  1074. #define SCLK_CNTL__FORCE_PB 0x02000000L
  1075. #define SCLK_CNTL__FORCE_TAM 0x04000000L
  1076. #define SCLK_CNTL__FORCE_TDM 0x08000000L
  1077. #define SCLK_CNTL__FORCE_RB 0x10000000L
  1078. #define SCLK_CNTL__FORCE_TV_SCLK 0x20000000L
  1079. #define SCLK_CNTL__FORCE_SUBPIC 0x40000000L
  1080. #define SCLK_CNTL__FORCE_OV0 0x80000000L
  1081. #define SCLK_CNTL__R300_FORCE_VAP (1<<21)
  1082. #define SCLK_CNTL__R300_FORCE_SR (1<<25)
  1083. #define SCLK_CNTL__R300_FORCE_PX (1<<26)
  1084. #define SCLK_CNTL__R300_FORCE_TX (1<<27)
  1085. #define SCLK_CNTL__R300_FORCE_US (1<<28)
  1086. #define SCLK_CNTL__R300_FORCE_SU (1<<30)
  1087. #define SCLK_CNTL__FORCEON_MASK 0xffff8000L
  1088. // pllSCLK_CNTL2
  1089. #define SCLK_CNTL2__R300_TCL_MAX_DYN_STOP_LAT (1<<10)
  1090. #define SCLK_CNTL2__R300_GA_MAX_DYN_STOP_LAT (1<<11)
  1091. #define SCLK_CNTL2__R300_CBA_MAX_DYN_STOP_LAT (1<<12)
  1092. #define SCLK_CNTL2__R300_FORCE_TCL (1<<13)
  1093. #define SCLK_CNTL2__R300_FORCE_CBA (1<<14)
  1094. #define SCLK_CNTL2__R300_FORCE_GA (1<<15)
  1095. // SCLK_MORE_CNTL
  1096. #define SCLK_MORE_CNTL__DISPREGS_MAX_DYN_STOP_LAT 0x00000001L
  1097. #define SCLK_MORE_CNTL__MC_GUI_MAX_DYN_STOP_LAT 0x00000002L
  1098. #define SCLK_MORE_CNTL__MC_HOST_MAX_DYN_STOP_LAT 0x00000004L
  1099. #define SCLK_MORE_CNTL__FORCE_DISPREGS 0x00000100L
  1100. #define SCLK_MORE_CNTL__FORCE_MC_GUI 0x00000200L
  1101. #define SCLK_MORE_CNTL__FORCE_MC_HOST 0x00000400L
  1102. #define SCLK_MORE_CNTL__STOP_SCLK_EN 0x00001000L
  1103. #define SCLK_MORE_CNTL__STOP_SCLK_A 0x00002000L
  1104. #define SCLK_MORE_CNTL__STOP_SCLK_B 0x00004000L
  1105. #define SCLK_MORE_CNTL__STOP_SCLK_C 0x00008000L
  1106. #define SCLK_MORE_CNTL__HALF_SPEED_SCLK 0x00010000L
  1107. #define SCLK_MORE_CNTL__IO_CG_VOLTAGE_DROP 0x00020000L
  1108. #define SCLK_MORE_CNTL__TVFB_SOFT_RESET 0x00040000L
  1109. #define SCLK_MORE_CNTL__VOLTAGE_DROP_SYNC 0x00080000L
  1110. #define SCLK_MORE_CNTL__IDLE_DELAY_HALF_SCLK 0x00400000L
  1111. #define SCLK_MORE_CNTL__AGP_BUSY_HALF_SCLK 0x00800000L
  1112. #define SCLK_MORE_CNTL__CG_SPARE_RD_C_MASK 0xff000000L
  1113. #define SCLK_MORE_CNTL__FORCEON 0x00000700L
  1114. // MCLK_CNTL
  1115. #define MCLK_CNTL__MCLKA_SRC_SEL_MASK 0x00000007L
  1116. #define MCLK_CNTL__YCLKA_SRC_SEL_MASK 0x00000070L
  1117. #define MCLK_CNTL__MCLKB_SRC_SEL_MASK 0x00000700L
  1118. #define MCLK_CNTL__YCLKB_SRC_SEL_MASK 0x00007000L
  1119. #define MCLK_CNTL__FORCE_MCLKA_MASK 0x00010000L
  1120. #define MCLK_CNTL__FORCE_MCLKA 0x00010000L
  1121. #define MCLK_CNTL__FORCE_MCLKB_MASK 0x00020000L
  1122. #define MCLK_CNTL__FORCE_MCLKB 0x00020000L
  1123. #define MCLK_CNTL__FORCE_YCLKA_MASK 0x00040000L
  1124. #define MCLK_CNTL__FORCE_YCLKA 0x00040000L
  1125. #define MCLK_CNTL__FORCE_YCLKB_MASK 0x00080000L
  1126. #define MCLK_CNTL__FORCE_YCLKB 0x00080000L
  1127. #define MCLK_CNTL__FORCE_MC_MASK 0x00100000L
  1128. #define MCLK_CNTL__FORCE_MC 0x00100000L
  1129. #define MCLK_CNTL__FORCE_AIC_MASK 0x00200000L
  1130. #define MCLK_CNTL__FORCE_AIC 0x00200000L
  1131. #define MCLK_CNTL__MRDCKA0_SOUTSEL_MASK 0x03000000L
  1132. #define MCLK_CNTL__MRDCKA1_SOUTSEL_MASK 0x0c000000L
  1133. #define MCLK_CNTL__MRDCKB0_SOUTSEL_MASK 0x30000000L
  1134. #define MCLK_CNTL__MRDCKB1_SOUTSEL_MASK 0xc0000000L
  1135. #define MCLK_CNTL__R300_DISABLE_MC_MCLKA (1 << 21)
  1136. #define MCLK_CNTL__R300_DISABLE_MC_MCLKB (1 << 21)
  1137. // MCLK_MISC
  1138. #define MCLK_MISC__SCLK_SOURCED_FROM_MPLL_SEL_MASK 0x00000003L
  1139. #define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL_MASK 0x00000004L
  1140. #define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL 0x00000004L
  1141. #define MCLK_MISC__ENABLE_SCLK_FROM_MPLL_MASK 0x00000008L
  1142. #define MCLK_MISC__ENABLE_SCLK_FROM_MPLL 0x00000008L
  1143. #define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN_MASK 0x00000010L
  1144. #define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN 0x00000010L
  1145. #define MCLK_MISC__DLL_READY_LAT_MASK 0x00000100L
  1146. #define MCLK_MISC__DLL_READY_LAT 0x00000100L
  1147. #define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT_MASK 0x00001000L
  1148. #define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT 0x00001000L
  1149. #define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT_MASK 0x00002000L
  1150. #define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT 0x00002000L
  1151. #define MCLK_MISC__MC_MCLK_DYN_ENABLE_MASK 0x00004000L
  1152. #define MCLK_MISC__MC_MCLK_DYN_ENABLE 0x00004000L
  1153. #define MCLK_MISC__IO_MCLK_DYN_ENABLE_MASK 0x00008000L
  1154. #define MCLK_MISC__IO_MCLK_DYN_ENABLE 0x00008000L
  1155. #define MCLK_MISC__CGM_CLK_TO_OUTPIN_MASK 0x00010000L
  1156. #define MCLK_MISC__CGM_CLK_TO_OUTPIN 0x00010000L
  1157. #define MCLK_MISC__CLK_OR_COUNT_SEL_MASK 0x00020000L
  1158. #define MCLK_MISC__CLK_OR_COUNT_SEL 0x00020000L
  1159. #define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND_MASK 0x00040000L
  1160. #define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND 0x00040000L
  1161. #define MCLK_MISC__CGM_SPARE_RD_MASK 0x00300000L
  1162. #define MCLK_MISC__CGM_SPARE_A_RD_MASK 0x00c00000L
  1163. #define MCLK_MISC__TCLK_TO_YCLKB_EN_MASK 0x01000000L
  1164. #define MCLK_MISC__TCLK_TO_YCLKB_EN 0x01000000L
  1165. #define MCLK_MISC__CGM_SPARE_A_MASK 0x0e000000L
  1166. // VCLK_ECP_CNTL
  1167. #define VCLK_ECP_CNTL__VCLK_SRC_SEL_MASK 0x00000003L
  1168. #define VCLK_ECP_CNTL__VCLK_INVERT 0x00000010L
  1169. #define VCLK_ECP_CNTL__PIXCLK_SRC_INVERT 0x00000020L
  1170. #define VCLK_ECP_CNTL__PIXCLK_ALWAYS_ONb 0x00000040L
  1171. #define VCLK_ECP_CNTL__PIXCLK_DAC_ALWAYS_ONb 0x00000080L
  1172. #define VCLK_ECP_CNTL__ECP_DIV_MASK 0x00000300L
  1173. #define VCLK_ECP_CNTL__ECP_FORCE_ON 0x00040000L
  1174. #define VCLK_ECP_CNTL__SUBCLK_FORCE_ON 0x00080000L
  1175. #define VCLK_ECP_CNTL__R300_DISP_DAC_PIXCLK_DAC_BLANK_OFF (1<<23)
  1176. // PLL_PWRMGT_CNTL
  1177. #define PLL_PWRMGT_CNTL__MPLL_TURNOFF_MASK 0x00000001L
  1178. #define PLL_PWRMGT_CNTL__MPLL_TURNOFF 0x00000001L
  1179. #define PLL_PWRMGT_CNTL__SPLL_TURNOFF_MASK 0x00000002L
  1180. #define PLL_PWRMGT_CNTL__SPLL_TURNOFF 0x00000002L
  1181. #define PLL_PWRMGT_CNTL__PPLL_TURNOFF_MASK 0x00000004L
  1182. #define PLL_PWRMGT_CNTL__PPLL_TURNOFF 0x00000004L
  1183. #define PLL_PWRMGT_CNTL__P2PLL_TURNOFF_MASK 0x00000008L
  1184. #define PLL_PWRMGT_CNTL__P2PLL_TURNOFF 0x00000008L
  1185. #define PLL_PWRMGT_CNTL__TVPLL_TURNOFF_MASK 0x00000010L
  1186. #define PLL_PWRMGT_CNTL__TVPLL_TURNOFF 0x00000010L
  1187. #define PLL_PWRMGT_CNTL__AGPCLK_DYN_STOP_LAT_MASK 0x000001e0L
  1188. #define PLL_PWRMGT_CNTL__APM_POWER_STATE_MASK 0x00000600L
  1189. #define PLL_PWRMGT_CNTL__APM_PWRSTATE_RD_MASK 0x00001800L
  1190. #define PLL_PWRMGT_CNTL__PM_MODE_SEL_MASK 0x00002000L
  1191. #define PLL_PWRMGT_CNTL__PM_MODE_SEL 0x00002000L
  1192. #define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND_MASK 0x00004000L
  1193. #define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND 0x00004000L
  1194. #define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND_MASK 0x00008000L
  1195. #define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND 0x00008000L
  1196. #define PLL_PWRMGT_CNTL__MOBILE_SU_MASK 0x00010000L
  1197. #define PLL_PWRMGT_CNTL__MOBILE_SU 0x00010000L
  1198. #define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK_MASK 0x00020000L
  1199. #define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK 0x00020000L
  1200. #define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK_MASK 0x00040000L
  1201. #define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK 0x00040000L
  1202. #define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE_MASK 0x00080000L
  1203. #define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE 0x00080000L
  1204. #define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE_MASK 0x00100000L
  1205. #define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE 0x00100000L
  1206. #define PLL_PWRMGT_CNTL__TCL_CLOCK_CTIVE_RD_MASK 0x00200000L
  1207. #define PLL_PWRMGT_CNTL__TCL_CLOCK_ACTIVE_RD 0x00200000L
  1208. #define PLL_PWRMGT_CNTL__CG_NO2_DEBUG_MASK 0xff000000L
  1209. // CLK_PWRMGT_CNTL
  1210. #define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF_MASK 0x00000001L
  1211. #define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF 0x00000001L
  1212. #define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF_MASK 0x00000002L
  1213. #define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF 0x00000002L
  1214. #define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF_MASK 0x00000004L
  1215. #define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF 0x00000004L
  1216. #define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF_MASK 0x00000008L
  1217. #define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF 0x00000008L
  1218. #define CLK_PWRMGT_CNTL__MCLK_TURNOFF_MASK 0x00000010L
  1219. #define CLK_PWRMGT_CNTL__MCLK_TURNOFF 0x00000010L
  1220. #define CLK_PWRMGT_CNTL__SCLK_TURNOFF_MASK 0x00000020L
  1221. #define CLK_PWRMGT_CNTL__SCLK_TURNOFF 0x00000020L
  1222. #define CLK_PWRMGT_CNTL__PCLK_TURNOFF_MASK 0x00000040L
  1223. #define CLK_PWRMGT_CNTL__PCLK_TURNOFF 0x00000040L
  1224. #define CLK_PWRMGT_CNTL__P2CLK_TURNOFF_MASK 0x00000080L
  1225. #define CLK_PWRMGT_CNTL__P2CLK_TURNOFF 0x00000080L
  1226. #define CLK_PWRMGT_CNTL__MC_CH_MODE_MASK 0x00000100L
  1227. #define CLK_PWRMGT_CNTL__MC_CH_MODE 0x00000100L
  1228. #define CLK_PWRMGT_CNTL__TEST_MODE_MASK 0x00000200L
  1229. #define CLK_PWRMGT_CNTL__TEST_MODE 0x00000200L
  1230. #define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN_MASK 0x00000400L
  1231. #define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN 0x00000400L
  1232. #define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE_MASK 0x00001000L
  1233. #define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE 0x00001000L
  1234. #define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT_MASK 0x00006000L
  1235. #define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT_MASK 0x00008000L
  1236. #define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT 0x00008000L
  1237. #define CLK_PWRMGT_CNTL__MC_BUSY_MASK 0x00010000L
  1238. #define CLK_PWRMGT_CNTL__MC_BUSY 0x00010000L
  1239. #define CLK_PWRMGT_CNTL__MC_INT_CNTL_MASK 0x00020000L
  1240. #define CLK_PWRMGT_CNTL__MC_INT_CNTL 0x00020000L
  1241. #define CLK_PWRMGT_CNTL__MC_SWITCH_MASK 0x00040000L
  1242. #define CLK_PWRMGT_CNTL__MC_SWITCH 0x00040000L
  1243. #define CLK_PWRMGT_CNTL__DLL_READY_MASK 0x00080000L
  1244. #define CLK_PWRMGT_CNTL__DLL_READY 0x00080000L
  1245. #define CLK_PWRMGT_CNTL__DISP_PM_MASK 0x00100000L
  1246. #define CLK_PWRMGT_CNTL__DISP_PM 0x00100000L
  1247. #define CLK_PWRMGT_CNTL__DYN_STOP_MODE_MASK 0x00e00000L
  1248. #define CLK_PWRMGT_CNTL__CG_NO1_DEBUG_MASK 0x3f000000L
  1249. #define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF_MASK 0x40000000L
  1250. #define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF 0x40000000L
  1251. #define CLK_PWRMGT_CNTL__TVCLK_TURNOFF_MASK 0x80000000L
  1252. #define CLK_PWRMGT_CNTL__TVCLK_TURNOFF 0x80000000L
  1253. // BUS_CNTL1
  1254. #define BUS_CNTL1__PMI_IO_DISABLE_MASK 0x00000001L
  1255. #define BUS_CNTL1__PMI_IO_DISABLE 0x00000001L
  1256. #define BUS_CNTL1__PMI_MEM_DISABLE_MASK 0x00000002L
  1257. #define BUS_CNTL1__PMI_MEM_DISABLE 0x00000002L
  1258. #define BUS_CNTL1__PMI_BM_DISABLE_MASK 0x00000004L
  1259. #define BUS_CNTL1__PMI_BM_DISABLE 0x00000004L
  1260. #define BUS_CNTL1__PMI_INT_DISABLE_MASK 0x00000008L
  1261. #define BUS_CNTL1__PMI_INT_DISABLE 0x00000008L
  1262. #define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE_MASK 0x00000020L
  1263. #define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE 0x00000020L
  1264. #define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS_MASK 0x00000100L
  1265. #define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS 0x00000100L
  1266. #define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS_MASK 0x00000200L
  1267. #define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS 0x00000200L
  1268. #define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS_MASK 0x00000400L
  1269. #define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS 0x00000400L
  1270. #define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS_MASK 0x00000800L
  1271. #define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS 0x00000800L
  1272. #define BUS_CNTL1__MOBILE_PLATFORM_SEL_MASK 0x0c000000L
  1273. #define BUS_CNTL1__SEND_SBA_LATENCY_MASK 0x70000000L
  1274. #define BUS_CNTL1__AGPCLK_VALID_MASK 0x80000000L
  1275. #define BUS_CNTL1__AGPCLK_VALID 0x80000000L
  1276. // BUS_CNTL1
  1277. #define BUS_CNTL1__PMI_IO_DISABLE__SHIFT 0x00000000
  1278. #define BUS_CNTL1__PMI_MEM_DISABLE__SHIFT 0x00000001
  1279. #define BUS_CNTL1__PMI_BM_DISABLE__SHIFT 0x00000002
  1280. #define BUS_CNTL1__PMI_INT_DISABLE__SHIFT 0x00000003
  1281. #define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE__SHIFT 0x00000005
  1282. #define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS__SHIFT 0x00000008
  1283. #define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS__SHIFT 0x00000009
  1284. #define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS__SHIFT 0x0000000a
  1285. #define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS__SHIFT 0x0000000b
  1286. #define BUS_CNTL1__MOBILE_PLATFORM_SEL__SHIFT 0x0000001a
  1287. #define BUS_CNTL1__SEND_SBA_LATENCY__SHIFT 0x0000001c
  1288. #define BUS_CNTL1__AGPCLK_VALID__SHIFT 0x0000001f
  1289. // CRTC_OFFSET_CNTL
  1290. #define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_MASK 0x0000000fL
  1291. #define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_RIGHT_MASK 0x000000f0L
  1292. #define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT_MASK 0x00004000L
  1293. #define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT 0x00004000L
  1294. #define CRTC_OFFSET_CNTL__CRTC_TILE_EN_MASK 0x00008000L
  1295. #define CRTC_OFFSET_CNTL__CRTC_TILE_EN 0x00008000L
  1296. #define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL_MASK 0x00010000L
  1297. #define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL 0x00010000L
  1298. #define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN_MASK 0x00020000L
  1299. #define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN 0x00020000L
  1300. #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_EN_MASK 0x000c0000L
  1301. #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN_MASK 0x00100000L
  1302. #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN 0x00100000L
  1303. #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_MASK 0x00200000L
  1304. #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC 0x00200000L
  1305. #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN_MASK 0x10000000L
  1306. #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN 0x10000000L
  1307. #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN_MASK 0x20000000L
  1308. #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN 0x20000000L
  1309. #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_MASK 0x40000000L
  1310. #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET 0x40000000L
  1311. #define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK_MASK 0x80000000L
  1312. #define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK 0x80000000L
  1313. // CRTC_GEN_CNTL
  1314. #define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN_MASK 0x00000001L
  1315. #define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN 0x00000001L
  1316. #define CRTC_GEN_CNTL__CRTC_INTERLACE_EN_MASK 0x00000002L
  1317. #define CRTC_GEN_CNTL__CRTC_INTERLACE_EN 0x00000002L
  1318. #define CRTC_GEN_CNTL__CRTC_C_SYNC_EN_MASK 0x00000010L
  1319. #define CRTC_GEN_CNTL__CRTC_C_SYNC_EN 0x00000010L
  1320. #define CRTC_GEN_CNTL__CRTC_PIX_WIDTH_MASK 0x00000f00L
  1321. #define CRTC_GEN_CNTL__CRTC_ICON_EN_MASK 0x00008000L
  1322. #define CRTC_GEN_CNTL__CRTC_ICON_EN 0x00008000L
  1323. #define CRTC_GEN_CNTL__CRTC_CUR_EN_MASK 0x00010000L
  1324. #define CRTC_GEN_CNTL__CRTC_CUR_EN 0x00010000L
  1325. #define CRTC_GEN_CNTL__CRTC_VSTAT_MODE_MASK 0x00060000L
  1326. #define CRTC_GEN_CNTL__CRTC_CUR_MODE_MASK 0x00700000L
  1327. #define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN_MASK 0x01000000L
  1328. #define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN 0x01000000L
  1329. #define CRTC_GEN_CNTL__CRTC_EN_MASK 0x02000000L
  1330. #define CRTC_GEN_CNTL__CRTC_EN 0x02000000L
  1331. #define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B_MASK 0x04000000L
  1332. #define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B 0x04000000L
  1333. // CRTC2_GEN_CNTL
  1334. #define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN_MASK 0x00000001L
  1335. #define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN 0x00000001L
  1336. #define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN_MASK 0x00000002L
  1337. #define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN 0x00000002L
  1338. #define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE_MASK 0x00000010L
  1339. #define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE 0x00000010L
  1340. #define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE_MASK 0x00000020L
  1341. #define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE 0x00000020L
  1342. #define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE_MASK 0x00000040L
  1343. #define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE 0x00000040L
  1344. #define CRTC2_GEN_CNTL__CRT2_ON_MASK 0x00000080L
  1345. #define CRTC2_GEN_CNTL__CRT2_ON 0x00000080L
  1346. #define CRTC2_GEN_CNTL__CRTC2_PIX_WIDTH_MASK 0x00000f00L
  1347. #define CRTC2_GEN_CNTL__CRTC2_ICON_EN_MASK 0x00008000L
  1348. #define CRTC2_GEN_CNTL__CRTC2_ICON_EN 0x00008000L
  1349. #define CRTC2_GEN_CNTL__CRTC2_CUR_EN_MASK 0x00010000L
  1350. #define CRTC2_GEN_CNTL__CRTC2_CUR_EN 0x00010000L
  1351. #define CRTC2_GEN_CNTL__CRTC2_CUR_MODE_MASK 0x00700000L
  1352. #define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS_MASK 0x00800000L
  1353. #define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS 0x00800000L
  1354. #define CRTC2_GEN_CNTL__CRTC2_EN_MASK 0x02000000L
  1355. #define CRTC2_GEN_CNTL__CRTC2_EN 0x02000000L
  1356. #define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B_MASK 0x04000000L
  1357. #define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B 0x04000000L
  1358. #define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN_MASK 0x08000000L
  1359. #define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN 0x08000000L
  1360. #define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS_MASK 0x10000000L
  1361. #define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS 0x10000000L
  1362. #define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS_MASK 0x20000000L
  1363. #define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS 0x20000000L
  1364. // AGP_CNTL
  1365. #define AGP_CNTL__MAX_IDLE_CLK_MASK 0x000000ffL
  1366. #define AGP_CNTL__HOLD_RD_FIFO_MASK 0x00000100L
  1367. #define AGP_CNTL__HOLD_RD_FIFO 0x00000100L
  1368. #define AGP_CNTL__HOLD_RQ_FIFO_MASK 0x00000200L
  1369. #define AGP_CNTL__HOLD_RQ_FIFO 0x00000200L
  1370. #define AGP_CNTL__EN_2X_STBB_MASK 0x00000400L
  1371. #define AGP_CNTL__EN_2X_STBB 0x00000400L
  1372. #define AGP_CNTL__FORCE_FULL_SBA_MASK 0x00000800L
  1373. #define AGP_CNTL__FORCE_FULL_SBA 0x00000800L
  1374. #define AGP_CNTL__SBA_DIS_MASK 0x00001000L
  1375. #define AGP_CNTL__SBA_DIS 0x00001000L
  1376. #define AGP_CNTL__AGP_REV_ID_MASK 0x00002000L
  1377. #define AGP_CNTL__AGP_REV_ID 0x00002000L
  1378. #define AGP_CNTL__REG_CRIPPLE_AGP4X_MASK 0x00004000L
  1379. #define AGP_CNTL__REG_CRIPPLE_AGP4X 0x00004000L
  1380. #define AGP_CNTL__REG_CRIPPLE_AGP2X4X_MASK 0x00008000L
  1381. #define AGP_CNTL__REG_CRIPPLE_AGP2X4X 0x00008000L
  1382. #define AGP_CNTL__FORCE_INT_VREF_MASK 0x00010000L
  1383. #define AGP_CNTL__FORCE_INT_VREF 0x00010000L
  1384. #define AGP_CNTL__PENDING_SLOTS_VAL_MASK 0x00060000L
  1385. #define AGP_CNTL__PENDING_SLOTS_SEL_MASK 0x00080000L
  1386. #define AGP_CNTL__PENDING_SLOTS_SEL 0x00080000L
  1387. #define AGP_CNTL__EN_EXTENDED_AD_STB_2X_MASK 0x00100000L
  1388. #define AGP_CNTL__EN_EXTENDED_AD_STB_2X 0x00100000L
  1389. #define AGP_CNTL__DIS_QUEUED_GNT_FIX_MASK 0x00200000L
  1390. #define AGP_CNTL__DIS_QUEUED_GNT_FIX 0x00200000L
  1391. #define AGP_CNTL__EN_RDATA2X4X_MULTIRESET_MASK 0x00400000L
  1392. #define AGP_CNTL__EN_RDATA2X4X_MULTIRESET 0x00400000L
  1393. #define AGP_CNTL__EN_RBFCALM_MASK 0x00800000L
  1394. #define AGP_CNTL__EN_RBFCALM 0x00800000L
  1395. #define AGP_CNTL__FORCE_EXT_VREF_MASK 0x01000000L
  1396. #define AGP_CNTL__FORCE_EXT_VREF 0x01000000L
  1397. #define AGP_CNTL__DIS_RBF_MASK 0x02000000L
  1398. #define AGP_CNTL__DIS_RBF 0x02000000L
  1399. #define AGP_CNTL__DELAY_FIRST_SBA_EN_MASK 0x04000000L
  1400. #define AGP_CNTL__DELAY_FIRST_SBA_EN 0x04000000L
  1401. #define AGP_CNTL__DELAY_FIRST_SBA_VAL_MASK 0x38000000L
  1402. #define AGP_CNTL__AGP_MISC_MASK 0xc0000000L
  1403. // AGP_CNTL
  1404. #define AGP_CNTL__MAX_IDLE_CLK__SHIFT 0x00000000
  1405. #define AGP_CNTL__HOLD_RD_FIFO__SHIFT 0x00000008
  1406. #define AGP_CNTL__HOLD_RQ_FIFO__SHIFT 0x00000009
  1407. #define AGP_CNTL__EN_2X_STBB__SHIFT 0x0000000a
  1408. #define AGP_CNTL__FORCE_FULL_SBA__SHIFT 0x0000000b
  1409. #define AGP_CNTL__SBA_DIS__SHIFT 0x0000000c
  1410. #define AGP_CNTL__AGP_REV_ID__SHIFT 0x0000000d
  1411. #define AGP_CNTL__REG_CRIPPLE_AGP4X__SHIFT 0x0000000e
  1412. #define AGP_CNTL__REG_CRIPPLE_AGP2X4X__SHIFT 0x0000000f
  1413. #define AGP_CNTL__FORCE_INT_VREF__SHIFT 0x00000010
  1414. #define AGP_CNTL__PENDING_SLOTS_VAL__SHIFT 0x00000011
  1415. #define AGP_CNTL__PENDING_SLOTS_SEL__SHIFT 0x00000013
  1416. #define AGP_CNTL__EN_EXTENDED_AD_STB_2X__SHIFT 0x00000014
  1417. #define AGP_CNTL__DIS_QUEUED_GNT_FIX__SHIFT 0x00000015
  1418. #define AGP_CNTL__EN_RDATA2X4X_MULTIRESET__SHIFT 0x00000016
  1419. #define AGP_CNTL__EN_RBFCALM__SHIFT 0x00000017
  1420. #define AGP_CNTL__FORCE_EXT_VREF__SHIFT 0x00000018
  1421. #define AGP_CNTL__DIS_RBF__SHIFT 0x00000019
  1422. #define AGP_CNTL__DELAY_FIRST_SBA_EN__SHIFT 0x0000001a
  1423. #define AGP_CNTL__DELAY_FIRST_SBA_VAL__SHIFT 0x0000001b
  1424. #define AGP_CNTL__AGP_MISC__SHIFT 0x0000001e
  1425. // DISP_MISC_CNTL
  1426. #define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP_MASK 0x00000001L
  1427. #define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP 0x00000001L
  1428. #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP_MASK 0x00000002L
  1429. #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP 0x00000002L
  1430. #define DISP_MISC_CNTL__SOFT_RESET_OV0_PP_MASK 0x00000004L
  1431. #define DISP_MISC_CNTL__SOFT_RESET_OV0_PP 0x00000004L
  1432. #define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK_MASK 0x00000010L
  1433. #define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK 0x00000010L
  1434. #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK_MASK 0x00000020L
  1435. #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK 0x00000020L
  1436. #define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK_MASK 0x00000040L
  1437. #define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK 0x00000040L
  1438. #define DISP_MISC_CNTL__SYNC_STRENGTH_MASK 0x00000300L
  1439. #define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN_MASK 0x00000400L
  1440. #define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN 0x00000400L
  1441. #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP_MASK 0x00001000L
  1442. #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP 0x00001000L
  1443. #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK_MASK 0x00008000L
  1444. #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK 0x00008000L
  1445. #define DISP_MISC_CNTL__SOFT_RESET_LVDS_MASK 0x00010000L
  1446. #define DISP_MISC_CNTL__SOFT_RESET_LVDS 0x00010000L
  1447. #define DISP_MISC_CNTL__SOFT_RESET_TMDS_MASK 0x00020000L
  1448. #define DISP_MISC_CNTL__SOFT_RESET_TMDS 0x00020000L
  1449. #define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS_MASK 0x00040000L
  1450. #define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS 0x00040000L
  1451. #define DISP_MISC_CNTL__SOFT_RESET_TV_MASK 0x00080000L
  1452. #define DISP_MISC_CNTL__SOFT_RESET_TV 0x00080000L
  1453. #define DISP_MISC_CNTL__PALETTE2_MEM_RD_MARGIN_MASK 0x00f00000L
  1454. #define DISP_MISC_CNTL__PALETTE_MEM_RD_MARGIN_MASK 0x0f000000L
  1455. #define DISP_MISC_CNTL__RMX_BUF_MEM_RD_MARGIN_MASK 0xf0000000L
  1456. // DISP_PWR_MAN
  1457. #define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN_MASK 0x00000001L
  1458. #define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN 0x00000001L
  1459. #define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN_MASK 0x00000010L
  1460. #define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN 0x00000010L
  1461. #define DISP_PWR_MAN__DISP_PWR_MAN_DPMS_MASK 0x00000300L
  1462. #define DISP_PWR_MAN__DISP_D3_RST_MASK 0x00010000L
  1463. #define DISP_PWR_MAN__DISP_D3_RST 0x00010000L
  1464. #define DISP_PWR_MAN__DISP_D3_REG_RST_MASK 0x00020000L
  1465. #define DISP_PWR_MAN__DISP_D3_REG_RST 0x00020000L
  1466. #define DISP_PWR_MAN__DISP_D3_GRPH_RST_MASK 0x00040000L
  1467. #define DISP_PWR_MAN__DISP_D3_GRPH_RST 0x00040000L
  1468. #define DISP_PWR_MAN__DISP_D3_SUBPIC_RST_MASK 0x00080000L
  1469. #define DISP_PWR_MAN__DISP_D3_SUBPIC_RST 0x00080000L
  1470. #define DISP_PWR_MAN__DISP_D3_OV0_RST_MASK 0x00100000L
  1471. #define DISP_PWR_MAN__DISP_D3_OV0_RST 0x00100000L
  1472. #define DISP_PWR_MAN__DISP_D1D2_GRPH_RST_MASK 0x00200000L
  1473. #define DISP_PWR_MAN__DISP_D1D2_GRPH_RST 0x00200000L
  1474. #define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST_MASK 0x00400000L
  1475. #define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST 0x00400000L
  1476. #define DISP_PWR_MAN__DISP_D1D2_OV0_RST_MASK 0x00800000L
  1477. #define DISP_PWR_MAN__DISP_D1D2_OV0_RST 0x00800000L
  1478. #define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST_MASK 0x01000000L
  1479. #define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST 0x01000000L
  1480. #define DISP_PWR_MAN__TV_ENABLE_RST_MASK 0x02000000L
  1481. #define DISP_PWR_MAN__TV_ENABLE_RST 0x02000000L
  1482. #define DISP_PWR_MAN__AUTO_PWRUP_EN_MASK 0x04000000L
  1483. #define DISP_PWR_MAN__AUTO_PWRUP_EN 0x04000000L
  1484. // MC_IND_INDEX
  1485. #define MC_IND_INDEX__MC_IND_ADDR_MASK 0x0000001fL
  1486. #define MC_IND_INDEX__MC_IND_WR_EN_MASK 0x00000100L
  1487. #define MC_IND_INDEX__MC_IND_WR_EN 0x00000100L
  1488. // MC_IND_DATA
  1489. #define MC_IND_DATA__MC_IND_DATA_MASK 0xffffffffL
  1490. // MC_CHP_IO_CNTL_A1
  1491. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA__SHIFT 0x00000000
  1492. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA__SHIFT 0x00000001
  1493. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA__SHIFT 0x00000002
  1494. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA__SHIFT 0x00000003
  1495. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA__SHIFT 0x00000004
  1496. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA__SHIFT 0x00000005
  1497. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA__SHIFT 0x00000006
  1498. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA__SHIFT 0x00000007
  1499. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA__SHIFT 0x00000008
  1500. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA__SHIFT 0x00000009
  1501. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA__SHIFT 0x0000000a
  1502. #define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA__SHIFT 0x0000000c
  1503. #define MC_CHP_IO_CNTL_A1__MEM_REC_CKA__SHIFT 0x0000000e
  1504. #define MC_CHP_IO_CNTL_A1__MEM_REC_AA__SHIFT 0x00000010
  1505. #define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA__SHIFT 0x00000012
  1506. #define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA__SHIFT 0x00000014
  1507. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA__SHIFT 0x00000016
  1508. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA__SHIFT 0x00000017
  1509. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA__SHIFT 0x00000018
  1510. #define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA__SHIFT 0x0000001a
  1511. #define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA__SHIFT 0x0000001c
  1512. #define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A__SHIFT 0x0000001e
  1513. #define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A__SHIFT 0x0000001f
  1514. // MC_CHP_IO_CNTL_B1
  1515. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB__SHIFT 0x00000000
  1516. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB__SHIFT 0x00000001
  1517. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB__SHIFT 0x00000002
  1518. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB__SHIFT 0x00000003
  1519. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB__SHIFT 0x00000004
  1520. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB__SHIFT 0x00000005
  1521. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB__SHIFT 0x00000006
  1522. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB__SHIFT 0x00000007
  1523. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB__SHIFT 0x00000008
  1524. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB__SHIFT 0x00000009
  1525. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB__SHIFT 0x0000000a
  1526. #define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB__SHIFT 0x0000000c
  1527. #define MC_CHP_IO_CNTL_B1__MEM_REC_CKB__SHIFT 0x0000000e
  1528. #define MC_CHP_IO_CNTL_B1__MEM_REC_AB__SHIFT 0x00000010
  1529. #define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB__SHIFT 0x00000012
  1530. #define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB__SHIFT 0x00000014
  1531. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB__SHIFT 0x00000016
  1532. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB__SHIFT 0x00000017
  1533. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB__SHIFT 0x00000018
  1534. #define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB__SHIFT 0x0000001a
  1535. #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB__SHIFT 0x0000001c
  1536. #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B__SHIFT 0x0000001e
  1537. #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B__SHIFT 0x0000001f
  1538. // MC_CHP_IO_CNTL_A1
  1539. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA_MASK 0x00000001L
  1540. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA 0x00000001L
  1541. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA_MASK 0x00000002L
  1542. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA 0x00000002L
  1543. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA_MASK 0x00000004L
  1544. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA 0x00000004L
  1545. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA_MASK 0x00000008L
  1546. #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA 0x00000008L
  1547. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA_MASK 0x00000010L
  1548. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA 0x00000010L
  1549. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA_MASK 0x00000020L
  1550. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA 0x00000020L
  1551. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA_MASK 0x00000040L
  1552. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA 0x00000040L
  1553. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA_MASK 0x00000080L
  1554. #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA 0x00000080L
  1555. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA_MASK 0x00000100L
  1556. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA 0x00000100L
  1557. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA_MASK 0x00000200L
  1558. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA 0x00000200L
  1559. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA_MASK 0x00000400L
  1560. #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA 0x00000400L
  1561. #define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA_MASK 0x00003000L
  1562. #define MC_CHP_IO_CNTL_A1__MEM_REC_CKA_MASK 0x0000c000L
  1563. #define MC_CHP_IO_CNTL_A1__MEM_REC_AA_MASK 0x00030000L
  1564. #define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA_MASK 0x000c0000L
  1565. #define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA_MASK 0x00300000L
  1566. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA_MASK 0x00400000L
  1567. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA 0x00400000L
  1568. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA_MASK 0x00800000L
  1569. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA 0x00800000L
  1570. #define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA_MASK 0x03000000L
  1571. #define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA_MASK 0x0c000000L
  1572. #define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA_MASK 0x10000000L
  1573. #define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA 0x10000000L
  1574. #define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A_MASK 0x40000000L
  1575. #define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A 0x40000000L
  1576. #define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A_MASK 0x80000000L
  1577. #define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A 0x80000000L
  1578. // MC_CHP_IO_CNTL_B1
  1579. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB_MASK 0x00000001L
  1580. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB 0x00000001L
  1581. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB_MASK 0x00000002L
  1582. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB 0x00000002L
  1583. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB_MASK 0x00000004L
  1584. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB 0x00000004L
  1585. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB_MASK 0x00000008L
  1586. #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB 0x00000008L
  1587. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB_MASK 0x00000010L
  1588. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB 0x00000010L
  1589. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB_MASK 0x00000020L
  1590. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB 0x00000020L
  1591. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB_MASK 0x00000040L
  1592. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB 0x00000040L
  1593. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB_MASK 0x00000080L
  1594. #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB 0x00000080L
  1595. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB_MASK 0x00000100L
  1596. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB 0x00000100L
  1597. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB_MASK 0x00000200L
  1598. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB 0x00000200L
  1599. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB_MASK 0x00000400L
  1600. #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB 0x00000400L
  1601. #define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB_MASK 0x00003000L
  1602. #define MC_CHP_IO_CNTL_B1__MEM_REC_CKB_MASK 0x0000c000L
  1603. #define MC_CHP_IO_CNTL_B1__MEM_REC_AB_MASK 0x00030000L
  1604. #define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB_MASK 0x000c0000L
  1605. #define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB_MASK 0x00300000L
  1606. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB_MASK 0x00400000L
  1607. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB 0x00400000L
  1608. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB_MASK 0x00800000L
  1609. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB 0x00800000L
  1610. #define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB_MASK 0x03000000L
  1611. #define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB_MASK 0x0c000000L
  1612. #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB_MASK 0x10000000L
  1613. #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB 0x10000000L
  1614. #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B_MASK 0x40000000L
  1615. #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B 0x40000000L
  1616. #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B_MASK 0x80000000L
  1617. #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B 0x80000000L
  1618. // MEM_SDRAM_MODE_REG
  1619. #define MEM_SDRAM_MODE_REG__MEM_MODE_REG_MASK 0x00007fffL
  1620. #define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY_MASK 0x000f0000L
  1621. #define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY_MASK 0x00700000L
  1622. #define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY_MASK 0x00800000L
  1623. #define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY 0x00800000L
  1624. #define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY_MASK 0x01000000L
  1625. #define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY 0x01000000L
  1626. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD_MASK 0x02000000L
  1627. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD 0x02000000L
  1628. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA_MASK 0x04000000L
  1629. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA 0x04000000L
  1630. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR_MASK 0x08000000L
  1631. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR 0x08000000L
  1632. #define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE_MASK 0x10000000L
  1633. #define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE 0x10000000L
  1634. #define MEM_SDRAM_MODE_REG__MEM_DDR_DLL_MASK 0x20000000L
  1635. #define MEM_SDRAM_MODE_REG__MEM_DDR_DLL 0x20000000L
  1636. #define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE_MASK 0x40000000L
  1637. #define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE 0x40000000L
  1638. #define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET_MASK 0x80000000L
  1639. #define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET 0x80000000L
  1640. // MEM_SDRAM_MODE_REG
  1641. #define MEM_SDRAM_MODE_REG__MEM_MODE_REG__SHIFT 0x00000000
  1642. #define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY__SHIFT 0x00000010
  1643. #define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY__SHIFT 0x00000014
  1644. #define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY__SHIFT 0x00000017
  1645. #define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY__SHIFT 0x00000018
  1646. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD__SHIFT 0x00000019
  1647. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA__SHIFT 0x0000001a
  1648. #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR__SHIFT 0x0000001b
  1649. #define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE__SHIFT 0x0000001c
  1650. #define MEM_SDRAM_MODE_REG__MEM_DDR_DLL__SHIFT 0x0000001d
  1651. #define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE__SHIFT 0x0000001e
  1652. #define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET__SHIFT 0x0000001f
  1653. // MEM_REFRESH_CNTL
  1654. #define MEM_REFRESH_CNTL__MEM_REFRESH_RATE_MASK 0x000000ffL
  1655. #define MEM_REFRESH_CNTL__MEM_REFRESH_DIS_MASK 0x00000100L
  1656. #define MEM_REFRESH_CNTL__MEM_REFRESH_DIS 0x00000100L
  1657. #define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE_MASK 0x00000200L
  1658. #define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE 0x00000200L
  1659. #define MEM_REFRESH_CNTL__MEM_TRFC_MASK 0x0000f000L
  1660. #define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE_MASK 0x00010000L
  1661. #define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE 0x00010000L
  1662. #define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE_MASK 0x00020000L
  1663. #define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE 0x00020000L
  1664. #define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE_MASK 0x00040000L
  1665. #define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE 0x00040000L
  1666. #define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE_MASK 0x00080000L
  1667. #define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE 0x00080000L
  1668. #define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE_MASK 0x00100000L
  1669. #define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE 0x00100000L
  1670. #define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKA_MASK 0x00c00000L
  1671. #define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE_MASK 0x01000000L
  1672. #define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE 0x01000000L
  1673. #define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE_MASK 0x02000000L
  1674. #define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE 0x02000000L
  1675. #define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE_MASK 0x04000000L
  1676. #define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE 0x04000000L
  1677. #define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE_MASK 0x08000000L
  1678. #define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE 0x08000000L
  1679. #define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE_MASK 0x10000000L
  1680. #define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE 0x10000000L
  1681. #define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKB_MASK 0xc0000000L
  1682. // MC_STATUS
  1683. #define MC_STATUS__MEM_PWRUP_COMPL_A_MASK 0x00000001L
  1684. #define MC_STATUS__MEM_PWRUP_COMPL_A 0x00000001L
  1685. #define MC_STATUS__MEM_PWRUP_COMPL_B_MASK 0x00000002L
  1686. #define MC_STATUS__MEM_PWRUP_COMPL_B 0x00000002L
  1687. #define MC_STATUS__MC_IDLE_MASK 0x00000004L
  1688. #define MC_STATUS__MC_IDLE 0x00000004L
  1689. #define MC_STATUS__IMP_N_VALUE_R_BACK_MASK 0x00000078L
  1690. #define MC_STATUS__IMP_P_VALUE_R_BACK_MASK 0x00000780L
  1691. #define MC_STATUS__TEST_OUT_R_BACK_MASK 0x00000800L
  1692. #define MC_STATUS__TEST_OUT_R_BACK 0x00000800L
  1693. #define MC_STATUS__DUMMY_OUT_R_BACK_MASK 0x00001000L
  1694. #define MC_STATUS__DUMMY_OUT_R_BACK 0x00001000L
  1695. #define MC_STATUS__IMP_N_VALUE_A_R_BACK_MASK 0x0001e000L
  1696. #define MC_STATUS__IMP_P_VALUE_A_R_BACK_MASK 0x001e0000L
  1697. #define MC_STATUS__IMP_N_VALUE_CK_R_BACK_MASK 0x01e00000L
  1698. #define MC_STATUS__IMP_P_VALUE_CK_R_BACK_MASK 0x1e000000L
  1699. // MDLL_CKO
  1700. #define MDLL_CKO__MCKOA_SLEEP_MASK 0x00000001L
  1701. #define MDLL_CKO__MCKOA_SLEEP 0x00000001L
  1702. #define MDLL_CKO__MCKOA_RESET_MASK 0x00000002L
  1703. #define MDLL_CKO__MCKOA_RESET 0x00000002L
  1704. #define MDLL_CKO__MCKOA_RANGE_MASK 0x0000000cL
  1705. #define MDLL_CKO__ERSTA_SOUTSEL_MASK 0x00000030L
  1706. #define MDLL_CKO__MCKOA_FB_SEL_MASK 0x000000c0L
  1707. #define MDLL_CKO__MCKOA_REF_SKEW_MASK 0x00000700L
  1708. #define MDLL_CKO__MCKOA_FB_SKEW_MASK 0x00007000L
  1709. #define MDLL_CKO__MCKOA_BP_SEL_MASK 0x00008000L
  1710. #define MDLL_CKO__MCKOA_BP_SEL 0x00008000L
  1711. #define MDLL_CKO__MCKOB_SLEEP_MASK 0x00010000L
  1712. #define MDLL_CKO__MCKOB_SLEEP 0x00010000L
  1713. #define MDLL_CKO__MCKOB_RESET_MASK 0x00020000L
  1714. #define MDLL_CKO__MCKOB_RESET 0x00020000L
  1715. #define MDLL_CKO__MCKOB_RANGE_MASK 0x000c0000L
  1716. #define MDLL_CKO__ERSTB_SOUTSEL_MASK 0x00300000L
  1717. #define MDLL_CKO__MCKOB_FB_SEL_MASK 0x00c00000L
  1718. #define MDLL_CKO__MCKOB_REF_SKEW_MASK 0x07000000L
  1719. #define MDLL_CKO__MCKOB_FB_SKEW_MASK 0x70000000L
  1720. #define MDLL_CKO__MCKOB_BP_SEL_MASK 0x80000000L
  1721. #define MDLL_CKO__MCKOB_BP_SEL 0x80000000L
  1722. // MDLL_RDCKA
  1723. #define MDLL_RDCKA__MRDCKA0_SLEEP_MASK 0x00000001L
  1724. #define MDLL_RDCKA__MRDCKA0_SLEEP 0x00000001L
  1725. #define MDLL_RDCKA__MRDCKA0_RESET_MASK 0x00000002L
  1726. #define MDLL_RDCKA__MRDCKA0_RESET 0x00000002L
  1727. #define MDLL_RDCKA__MRDCKA0_RANGE_MASK 0x0000000cL
  1728. #define MDLL_RDCKA__MRDCKA0_REF_SEL_MASK 0x00000030L
  1729. #define MDLL_RDCKA__MRDCKA0_FB_SEL_MASK 0x000000c0L
  1730. #define MDLL_RDCKA__MRDCKA0_REF_SKEW_MASK 0x00000700L
  1731. #define MDLL_RDCKA__MRDCKA0_SINSEL_MASK 0x00000800L
  1732. #define MDLL_RDCKA__MRDCKA0_SINSEL 0x00000800L
  1733. #define MDLL_RDCKA__MRDCKA0_FB_SKEW_MASK 0x00007000L
  1734. #define MDLL_RDCKA__MRDCKA0_BP_SEL_MASK 0x00008000L
  1735. #define MDLL_RDCKA__MRDCKA0_BP_SEL 0x00008000L
  1736. #define MDLL_RDCKA__MRDCKA1_SLEEP_MASK 0x00010000L
  1737. #define MDLL_RDCKA__MRDCKA1_SLEEP 0x00010000L
  1738. #define MDLL_RDCKA__MRDCKA1_RESET_MASK 0x00020000L
  1739. #define MDLL_RDCKA__MRDCKA1_RESET 0x00020000L
  1740. #define MDLL_RDCKA__MRDCKA1_RANGE_MASK 0x000c0000L
  1741. #define MDLL_RDCKA__MRDCKA1_REF_SEL_MASK 0x00300000L
  1742. #define MDLL_RDCKA__MRDCKA1_FB_SEL_MASK 0x00c00000L
  1743. #define MDLL_RDCKA__MRDCKA1_REF_SKEW_MASK 0x07000000L
  1744. #define MDLL_RDCKA__MRDCKA1_SINSEL_MASK 0x08000000L
  1745. #define MDLL_RDCKA__MRDCKA1_SINSEL 0x08000000L
  1746. #define MDLL_RDCKA__MRDCKA1_FB_SKEW_MASK 0x70000000L
  1747. #define MDLL_RDCKA__MRDCKA1_BP_SEL_MASK 0x80000000L
  1748. #define MDLL_RDCKA__MRDCKA1_BP_SEL 0x80000000L
  1749. // MDLL_RDCKB
  1750. #define MDLL_RDCKB__MRDCKB0_SLEEP_MASK 0x00000001L
  1751. #define MDLL_RDCKB__MRDCKB0_SLEEP 0x00000001L
  1752. #define MDLL_RDCKB__MRDCKB0_RESET_MASK 0x00000002L
  1753. #define MDLL_RDCKB__MRDCKB0_RESET 0x00000002L
  1754. #define MDLL_RDCKB__MRDCKB0_RANGE_MASK 0x0000000cL
  1755. #define MDLL_RDCKB__MRDCKB0_REF_SEL_MASK 0x00000030L
  1756. #define MDLL_RDCKB__MRDCKB0_FB_SEL_MASK 0x000000c0L
  1757. #define MDLL_RDCKB__MRDCKB0_REF_SKEW_MASK 0x00000700L
  1758. #define MDLL_RDCKB__MRDCKB0_SINSEL_MASK 0x00000800L
  1759. #define MDLL_RDCKB__MRDCKB0_SINSEL 0x00000800L
  1760. #define MDLL_RDCKB__MRDCKB0_FB_SKEW_MASK 0x00007000L
  1761. #define MDLL_RDCKB__MRDCKB0_BP_SEL_MASK 0x00008000L
  1762. #define MDLL_RDCKB__MRDCKB0_BP_SEL 0x00008000L
  1763. #define MDLL_RDCKB__MRDCKB1_SLEEP_MASK 0x00010000L
  1764. #define MDLL_RDCKB__MRDCKB1_SLEEP 0x00010000L
  1765. #define MDLL_RDCKB__MRDCKB1_RESET_MASK 0x00020000L
  1766. #define MDLL_RDCKB__MRDCKB1_RESET 0x00020000L
  1767. #define MDLL_RDCKB__MRDCKB1_RANGE_MASK 0x000c0000L
  1768. #define MDLL_RDCKB__MRDCKB1_REF_SEL_MASK 0x00300000L
  1769. #define MDLL_RDCKB__MRDCKB1_FB_SEL_MASK 0x00c00000L
  1770. #define MDLL_RDCKB__MRDCKB1_REF_SKEW_MASK 0x07000000L
  1771. #define MDLL_RDCKB__MRDCKB1_SINSEL_MASK 0x08000000L
  1772. #define MDLL_RDCKB__MRDCKB1_SINSEL 0x08000000L
  1773. #define MDLL_RDCKB__MRDCKB1_FB_SKEW_MASK 0x70000000L
  1774. #define MDLL_RDCKB__MRDCKB1_BP_SEL_MASK 0x80000000L
  1775. #define MDLL_RDCKB__MRDCKB1_BP_SEL 0x80000000L
  1776. #define MDLL_R300_RDCK__MRDCKA_SLEEP 0x00000001L
  1777. #define MDLL_R300_RDCK__MRDCKA_RESET 0x00000002L
  1778. #define MDLL_R300_RDCK__MRDCKB_SLEEP 0x00000004L
  1779. #define MDLL_R300_RDCK__MRDCKB_RESET 0x00000008L
  1780. #define MDLL_R300_RDCK__MRDCKC_SLEEP 0x00000010L
  1781. #define MDLL_R300_RDCK__MRDCKC_RESET 0x00000020L
  1782. #define MDLL_R300_RDCK__MRDCKD_SLEEP 0x00000040L
  1783. #define MDLL_R300_RDCK__MRDCKD_RESET 0x00000080L
  1784. #define pllCLK_PIN_CNTL 0x0001
  1785. #define pllPPLL_CNTL 0x0002
  1786. #define pllPPLL_REF_DIV 0x0003
  1787. #define pllPPLL_DIV_0 0x0004
  1788. #define pllPPLL_DIV_1 0x0005
  1789. #define pllPPLL_DIV_2 0x0006
  1790. #define pllPPLL_DIV_3 0x0007
  1791. #define pllVCLK_ECP_CNTL 0x0008
  1792. #define pllHTOTAL_CNTL 0x0009
  1793. #define pllM_SPLL_REF_FB_DIV 0x000A
  1794. #define pllAGP_PLL_CNTL 0x000B
  1795. #define pllSPLL_CNTL 0x000C
  1796. #define pllSCLK_CNTL 0x000D
  1797. #define pllMPLL_CNTL 0x000E
  1798. #define pllMDLL_CKO 0x000F
  1799. #define pllMDLL_RDCKA 0x0010
  1800. #define pllMDLL_RDCKB 0x0011
  1801. #define pllMCLK_CNTL 0x0012
  1802. #define pllPLL_TEST_CNTL 0x0013
  1803. #define pllCLK_PWRMGT_CNTL 0x0014
  1804. #define pllPLL_PWRMGT_CNTL 0x0015
  1805. #define pllCG_TEST_MACRO_RW_WRITE 0x0016
  1806. #define pllCG_TEST_MACRO_RW_READ 0x0017
  1807. #define pllCG_TEST_MACRO_RW_DATA 0x0018
  1808. #define pllCG_TEST_MACRO_RW_CNTL 0x0019
  1809. #define pllDISP_TEST_MACRO_RW_WRITE 0x001A
  1810. #define pllDISP_TEST_MACRO_RW_READ 0x001B
  1811. #define pllDISP_TEST_MACRO_RW_DATA 0x001C
  1812. #define pllDISP_TEST_MACRO_RW_CNTL 0x001D
  1813. #define pllSCLK_CNTL2 0x001E
  1814. #define pllMCLK_MISC 0x001F
  1815. #define pllTV_PLL_FINE_CNTL 0x0020
  1816. #define pllTV_PLL_CNTL 0x0021
  1817. #define pllTV_PLL_CNTL1 0x0022
  1818. #define pllTV_DTO_INCREMENTS 0x0023
  1819. #define pllSPLL_AUX_CNTL 0x0024
  1820. #define pllMPLL_AUX_CNTL 0x0025
  1821. #define pllP2PLL_CNTL 0x002A
  1822. #define pllP2PLL_REF_DIV 0x002B
  1823. #define pllP2PLL_DIV_0 0x002C
  1824. #define pllPIXCLKS_CNTL 0x002D
  1825. #define pllHTOTAL2_CNTL 0x002E
  1826. #define pllSSPLL_CNTL 0x0030
  1827. #define pllSSPLL_REF_DIV 0x0031
  1828. #define pllSSPLL_DIV_0 0x0032
  1829. #define pllSS_INT_CNTL 0x0033
  1830. #define pllSS_TST_CNTL 0x0034
  1831. #define pllSCLK_MORE_CNTL 0x0035
  1832. #define ixMC_PERF_CNTL 0x0000
  1833. #define ixMC_PERF_SEL 0x0001
  1834. #define ixMC_PERF_REGION_0 0x0002
  1835. #define ixMC_PERF_REGION_1 0x0003
  1836. #define ixMC_PERF_COUNT_0 0x0004
  1837. #define ixMC_PERF_COUNT_1 0x0005
  1838. #define ixMC_PERF_COUNT_2 0x0006
  1839. #define ixMC_PERF_COUNT_3 0x0007
  1840. #define ixMC_PERF_COUNT_MEMCH_A 0x0008
  1841. #define ixMC_PERF_COUNT_MEMCH_B 0x0009
  1842. #define ixMC_IMP_CNTL 0x000A
  1843. #define ixMC_CHP_IO_CNTL_A0 0x000B
  1844. #define ixMC_CHP_IO_CNTL_A1 0x000C
  1845. #define ixMC_CHP_IO_CNTL_B0 0x000D
  1846. #define ixMC_CHP_IO_CNTL_B1 0x000E
  1847. #define ixMC_IMP_CNTL_0 0x000F
  1848. #define ixTC_MISMATCH_1 0x0010
  1849. #define ixTC_MISMATCH_2 0x0011
  1850. #define ixMC_BIST_CTRL 0x0012
  1851. #define ixREG_COLLAR_WRITE 0x0013
  1852. #define ixREG_COLLAR_READ 0x0014
  1853. #define ixR300_MC_IMP_CNTL 0x0018
  1854. #define ixR300_MC_CHP_IO_CNTL_A0 0x0019
  1855. #define ixR300_MC_CHP_IO_CNTL_A1 0x001a
  1856. #define ixR300_MC_CHP_IO_CNTL_B0 0x001b
  1857. #define ixR300_MC_CHP_IO_CNTL_B1 0x001c
  1858. #define ixR300_MC_CHP_IO_CNTL_C0 0x001d
  1859. #define ixR300_MC_CHP_IO_CNTL_C1 0x001e
  1860. #define ixR300_MC_CHP_IO_CNTL_D0 0x001f
  1861. #define ixR300_MC_CHP_IO_CNTL_D1 0x0020
  1862. #define ixR300_MC_IMP_CNTL_0 0x0021
  1863. #define ixR300_MC_ELPIDA_CNTL 0x0022
  1864. #define ixR300_MC_CHP_IO_OE_CNTL_CD 0x0023
  1865. #define ixR300_MC_READ_CNTL_CD 0x0024
  1866. #define ixR300_MC_MC_INIT_WR_LAT_TIMER 0x0025
  1867. #define ixR300_MC_DEBUG_CNTL 0x0026
  1868. #define ixR300_MC_BIST_CNTL_0 0x0028
  1869. #define ixR300_MC_BIST_CNTL_1 0x0029
  1870. #define ixR300_MC_BIST_CNTL_2 0x002a
  1871. #define ixR300_MC_BIST_CNTL_3 0x002b
  1872. #define ixR300_MC_BIST_CNTL_4 0x002c
  1873. #define ixR300_MC_BIST_CNTL_5 0x002d
  1874. #define ixR300_MC_IMP_STATUS 0x002e
  1875. #define ixR300_MC_DLL_CNTL 0x002f
  1876. #define NB_TOM 0x15C
  1877. #endif /* _RADEON_H */