imx-pxp.h 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Freescale PXP Register Definitions
  4. *
  5. * based on pxp_dma_v3.h, Xml Revision: 1.77, Template Revision: 1.3
  6. *
  7. * Copyright 2014-2015 Freescale Semiconductor, Inc. All Rights Reserved.
  8. */
  9. #ifndef __IMX_PXP_H__
  10. #define __IMX_PXP_H__
  11. #define HW_PXP_CTRL (0x00000000)
  12. #define HW_PXP_CTRL_SET (0x00000004)
  13. #define HW_PXP_CTRL_CLR (0x00000008)
  14. #define HW_PXP_CTRL_TOG (0x0000000c)
  15. #define BM_PXP_CTRL_SFTRST 0x80000000
  16. #define BF_PXP_CTRL_SFTRST(v) \
  17. (((v) << 31) & BM_PXP_CTRL_SFTRST)
  18. #define BM_PXP_CTRL_CLKGATE 0x40000000
  19. #define BF_PXP_CTRL_CLKGATE(v) \
  20. (((v) << 30) & BM_PXP_CTRL_CLKGATE)
  21. #define BM_PXP_CTRL_RSVD4 0x20000000
  22. #define BF_PXP_CTRL_RSVD4(v) \
  23. (((v) << 29) & BM_PXP_CTRL_RSVD4)
  24. #define BM_PXP_CTRL_EN_REPEAT 0x10000000
  25. #define BF_PXP_CTRL_EN_REPEAT(v) \
  26. (((v) << 28) & BM_PXP_CTRL_EN_REPEAT)
  27. #define BM_PXP_CTRL_ENABLE_ROTATE1 0x08000000
  28. #define BF_PXP_CTRL_ENABLE_ROTATE1(v) \
  29. (((v) << 27) & BM_PXP_CTRL_ENABLE_ROTATE1)
  30. #define BM_PXP_CTRL_ENABLE_ROTATE0 0x04000000
  31. #define BF_PXP_CTRL_ENABLE_ROTATE0(v) \
  32. (((v) << 26) & BM_PXP_CTRL_ENABLE_ROTATE0)
  33. #define BM_PXP_CTRL_ENABLE_LUT 0x02000000
  34. #define BF_PXP_CTRL_ENABLE_LUT(v) \
  35. (((v) << 25) & BM_PXP_CTRL_ENABLE_LUT)
  36. #define BM_PXP_CTRL_ENABLE_CSC2 0x01000000
  37. #define BF_PXP_CTRL_ENABLE_CSC2(v) \
  38. (((v) << 24) & BM_PXP_CTRL_ENABLE_CSC2)
  39. #define BM_PXP_CTRL_BLOCK_SIZE 0x00800000
  40. #define BF_PXP_CTRL_BLOCK_SIZE(v) \
  41. (((v) << 23) & BM_PXP_CTRL_BLOCK_SIZE)
  42. #define BV_PXP_CTRL_BLOCK_SIZE__8X8 0x0
  43. #define BV_PXP_CTRL_BLOCK_SIZE__16X16 0x1
  44. #define BM_PXP_CTRL_RSVD1 0x00400000
  45. #define BF_PXP_CTRL_RSVD1(v) \
  46. (((v) << 22) & BM_PXP_CTRL_RSVD1)
  47. #define BM_PXP_CTRL_ENABLE_ALPHA_B 0x00200000
  48. #define BF_PXP_CTRL_ENABLE_ALPHA_B(v) \
  49. (((v) << 21) & BM_PXP_CTRL_ENABLE_ALPHA_B)
  50. #define BM_PXP_CTRL_ENABLE_INPUT_FETCH_STORE 0x00100000
  51. #define BF_PXP_CTRL_ENABLE_INPUT_FETCH_STORE(v) \
  52. (((v) << 20) & BM_PXP_CTRL_ENABLE_INPUT_FETCH_STORE)
  53. #define BM_PXP_CTRL_ENABLE_WFE_B 0x00080000
  54. #define BF_PXP_CTRL_ENABLE_WFE_B(v) \
  55. (((v) << 19) & BM_PXP_CTRL_ENABLE_WFE_B)
  56. #define BM_PXP_CTRL_ENABLE_WFE_A 0x00040000
  57. #define BF_PXP_CTRL_ENABLE_WFE_A(v) \
  58. (((v) << 18) & BM_PXP_CTRL_ENABLE_WFE_A)
  59. #define BM_PXP_CTRL_ENABLE_DITHER 0x00020000
  60. #define BF_PXP_CTRL_ENABLE_DITHER(v) \
  61. (((v) << 17) & BM_PXP_CTRL_ENABLE_DITHER)
  62. #define BM_PXP_CTRL_ENABLE_PS_AS_OUT 0x00010000
  63. #define BF_PXP_CTRL_ENABLE_PS_AS_OUT(v) \
  64. (((v) << 16) & BM_PXP_CTRL_ENABLE_PS_AS_OUT)
  65. #define BM_PXP_CTRL_VFLIP1 0x00008000
  66. #define BF_PXP_CTRL_VFLIP1(v) \
  67. (((v) << 15) & BM_PXP_CTRL_VFLIP1)
  68. #define BM_PXP_CTRL_HFLIP1 0x00004000
  69. #define BF_PXP_CTRL_HFLIP1(v) \
  70. (((v) << 14) & BM_PXP_CTRL_HFLIP1)
  71. #define BP_PXP_CTRL_ROTATE1 12
  72. #define BM_PXP_CTRL_ROTATE1 0x00003000
  73. #define BF_PXP_CTRL_ROTATE1(v) \
  74. (((v) << 12) & BM_PXP_CTRL_ROTATE1)
  75. #define BV_PXP_CTRL_ROTATE1__ROT_0 0x0
  76. #define BV_PXP_CTRL_ROTATE1__ROT_90 0x1
  77. #define BV_PXP_CTRL_ROTATE1__ROT_180 0x2
  78. #define BV_PXP_CTRL_ROTATE1__ROT_270 0x3
  79. #define BM_PXP_CTRL_VFLIP0 0x00000800
  80. #define BF_PXP_CTRL_VFLIP0(v) \
  81. (((v) << 11) & BM_PXP_CTRL_VFLIP0)
  82. #define BM_PXP_CTRL_HFLIP0 0x00000400
  83. #define BF_PXP_CTRL_HFLIP0(v) \
  84. (((v) << 10) & BM_PXP_CTRL_HFLIP0)
  85. #define BP_PXP_CTRL_ROTATE0 8
  86. #define BM_PXP_CTRL_ROTATE0 0x00000300
  87. #define BF_PXP_CTRL_ROTATE0(v) \
  88. (((v) << 8) & BM_PXP_CTRL_ROTATE0)
  89. #define BV_PXP_CTRL_ROTATE0__ROT_0 0x0
  90. #define BV_PXP_CTRL_ROTATE0__ROT_90 0x1
  91. #define BV_PXP_CTRL_ROTATE0__ROT_180 0x2
  92. #define BV_PXP_CTRL_ROTATE0__ROT_270 0x3
  93. #define BP_PXP_CTRL_RSVD0 6
  94. #define BM_PXP_CTRL_RSVD0 0x000000C0
  95. #define BF_PXP_CTRL_RSVD0(v) \
  96. (((v) << 6) & BM_PXP_CTRL_RSVD0)
  97. #define BM_PXP_CTRL_HANDSHAKE_ABORT_SKIP 0x00000020
  98. #define BF_PXP_CTRL_HANDSHAKE_ABORT_SKIP(v) \
  99. (((v) << 5) & BM_PXP_CTRL_HANDSHAKE_ABORT_SKIP)
  100. #define BM_PXP_CTRL_ENABLE_LCD0_HANDSHAKE 0x00000010
  101. #define BF_PXP_CTRL_ENABLE_LCD0_HANDSHAKE(v) \
  102. (((v) << 4) & BM_PXP_CTRL_ENABLE_LCD0_HANDSHAKE)
  103. #define BM_PXP_CTRL_LUT_DMA_IRQ_ENABLE 0x00000008
  104. #define BF_PXP_CTRL_LUT_DMA_IRQ_ENABLE(v) \
  105. (((v) << 3) & BM_PXP_CTRL_LUT_DMA_IRQ_ENABLE)
  106. #define BM_PXP_CTRL_NEXT_IRQ_ENABLE 0x00000004
  107. #define BF_PXP_CTRL_NEXT_IRQ_ENABLE(v) \
  108. (((v) << 2) & BM_PXP_CTRL_NEXT_IRQ_ENABLE)
  109. #define BM_PXP_CTRL_IRQ_ENABLE 0x00000002
  110. #define BF_PXP_CTRL_IRQ_ENABLE(v) \
  111. (((v) << 1) & BM_PXP_CTRL_IRQ_ENABLE)
  112. #define BM_PXP_CTRL_ENABLE 0x00000001
  113. #define BF_PXP_CTRL_ENABLE(v) \
  114. (((v) << 0) & BM_PXP_CTRL_ENABLE)
  115. #define HW_PXP_STAT (0x00000010)
  116. #define HW_PXP_STAT_SET (0x00000014)
  117. #define HW_PXP_STAT_CLR (0x00000018)
  118. #define HW_PXP_STAT_TOG (0x0000001c)
  119. #define BP_PXP_STAT_BLOCKX 24
  120. #define BM_PXP_STAT_BLOCKX 0xFF000000
  121. #define BF_PXP_STAT_BLOCKX(v) \
  122. (((v) << 24) & BM_PXP_STAT_BLOCKX)
  123. #define BP_PXP_STAT_BLOCKY 16
  124. #define BM_PXP_STAT_BLOCKY 0x00FF0000
  125. #define BF_PXP_STAT_BLOCKY(v) \
  126. (((v) << 16) & BM_PXP_STAT_BLOCKY)
  127. #define BP_PXP_STAT_AXI_ERROR_ID_1 12
  128. #define BM_PXP_STAT_AXI_ERROR_ID_1 0x0000F000
  129. #define BF_PXP_STAT_AXI_ERROR_ID_1(v) \
  130. (((v) << 12) & BM_PXP_STAT_AXI_ERROR_ID_1)
  131. #define BM_PXP_STAT_RSVD2 0x00000800
  132. #define BF_PXP_STAT_RSVD2(v) \
  133. (((v) << 11) & BM_PXP_STAT_RSVD2)
  134. #define BM_PXP_STAT_AXI_READ_ERROR_1 0x00000400
  135. #define BF_PXP_STAT_AXI_READ_ERROR_1(v) \
  136. (((v) << 10) & BM_PXP_STAT_AXI_READ_ERROR_1)
  137. #define BM_PXP_STAT_AXI_WRITE_ERROR_1 0x00000200
  138. #define BF_PXP_STAT_AXI_WRITE_ERROR_1(v) \
  139. (((v) << 9) & BM_PXP_STAT_AXI_WRITE_ERROR_1)
  140. #define BM_PXP_STAT_LUT_DMA_LOAD_DONE_IRQ 0x00000100
  141. #define BF_PXP_STAT_LUT_DMA_LOAD_DONE_IRQ(v) \
  142. (((v) << 8) & BM_PXP_STAT_LUT_DMA_LOAD_DONE_IRQ)
  143. #define BP_PXP_STAT_AXI_ERROR_ID_0 4
  144. #define BM_PXP_STAT_AXI_ERROR_ID_0 0x000000F0
  145. #define BF_PXP_STAT_AXI_ERROR_ID_0(v) \
  146. (((v) << 4) & BM_PXP_STAT_AXI_ERROR_ID_0)
  147. #define BM_PXP_STAT_NEXT_IRQ 0x00000008
  148. #define BF_PXP_STAT_NEXT_IRQ(v) \
  149. (((v) << 3) & BM_PXP_STAT_NEXT_IRQ)
  150. #define BM_PXP_STAT_AXI_READ_ERROR_0 0x00000004
  151. #define BF_PXP_STAT_AXI_READ_ERROR_0(v) \
  152. (((v) << 2) & BM_PXP_STAT_AXI_READ_ERROR_0)
  153. #define BM_PXP_STAT_AXI_WRITE_ERROR_0 0x00000002
  154. #define BF_PXP_STAT_AXI_WRITE_ERROR_0(v) \
  155. (((v) << 1) & BM_PXP_STAT_AXI_WRITE_ERROR_0)
  156. #define BM_PXP_STAT_IRQ0 0x00000001
  157. #define BF_PXP_STAT_IRQ0(v) \
  158. (((v) << 0) & BM_PXP_STAT_IRQ0)
  159. #define HW_PXP_OUT_CTRL (0x00000020)
  160. #define HW_PXP_OUT_CTRL_SET (0x00000024)
  161. #define HW_PXP_OUT_CTRL_CLR (0x00000028)
  162. #define HW_PXP_OUT_CTRL_TOG (0x0000002c)
  163. #define BP_PXP_OUT_CTRL_ALPHA 24
  164. #define BM_PXP_OUT_CTRL_ALPHA 0xFF000000
  165. #define BF_PXP_OUT_CTRL_ALPHA(v) \
  166. (((v) << 24) & BM_PXP_OUT_CTRL_ALPHA)
  167. #define BM_PXP_OUT_CTRL_ALPHA_OUTPUT 0x00800000
  168. #define BF_PXP_OUT_CTRL_ALPHA_OUTPUT(v) \
  169. (((v) << 23) & BM_PXP_OUT_CTRL_ALPHA_OUTPUT)
  170. #define BP_PXP_OUT_CTRL_RSVD1 10
  171. #define BM_PXP_OUT_CTRL_RSVD1 0x007FFC00
  172. #define BF_PXP_OUT_CTRL_RSVD1(v) \
  173. (((v) << 10) & BM_PXP_OUT_CTRL_RSVD1)
  174. #define BP_PXP_OUT_CTRL_INTERLACED_OUTPUT 8
  175. #define BM_PXP_OUT_CTRL_INTERLACED_OUTPUT 0x00000300
  176. #define BF_PXP_OUT_CTRL_INTERLACED_OUTPUT(v) \
  177. (((v) << 8) & BM_PXP_OUT_CTRL_INTERLACED_OUTPUT)
  178. #define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__PROGRESSIVE 0x0
  179. #define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__FIELD0 0x1
  180. #define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__FIELD1 0x2
  181. #define BV_PXP_OUT_CTRL_INTERLACED_OUTPUT__INTERLACED 0x3
  182. #define BP_PXP_OUT_CTRL_RSVD0 5
  183. #define BM_PXP_OUT_CTRL_RSVD0 0x000000E0
  184. #define BF_PXP_OUT_CTRL_RSVD0(v) \
  185. (((v) << 5) & BM_PXP_OUT_CTRL_RSVD0)
  186. #define BP_PXP_OUT_CTRL_FORMAT 0
  187. #define BM_PXP_OUT_CTRL_FORMAT 0x0000001F
  188. #define BF_PXP_OUT_CTRL_FORMAT(v) \
  189. (((v) << 0) & BM_PXP_OUT_CTRL_FORMAT)
  190. #define BV_PXP_OUT_CTRL_FORMAT__ARGB8888 0x0
  191. #define BV_PXP_OUT_CTRL_FORMAT__RGB888 0x4
  192. #define BV_PXP_OUT_CTRL_FORMAT__RGB888P 0x5
  193. #define BV_PXP_OUT_CTRL_FORMAT__ARGB1555 0x8
  194. #define BV_PXP_OUT_CTRL_FORMAT__ARGB4444 0x9
  195. #define BV_PXP_OUT_CTRL_FORMAT__RGB555 0xC
  196. #define BV_PXP_OUT_CTRL_FORMAT__RGB444 0xD
  197. #define BV_PXP_OUT_CTRL_FORMAT__RGB565 0xE
  198. #define BV_PXP_OUT_CTRL_FORMAT__YUV1P444 0x10
  199. #define BV_PXP_OUT_CTRL_FORMAT__UYVY1P422 0x12
  200. #define BV_PXP_OUT_CTRL_FORMAT__VYUY1P422 0x13
  201. #define BV_PXP_OUT_CTRL_FORMAT__Y8 0x14
  202. #define BV_PXP_OUT_CTRL_FORMAT__Y4 0x15
  203. #define BV_PXP_OUT_CTRL_FORMAT__YUV2P422 0x18
  204. #define BV_PXP_OUT_CTRL_FORMAT__YUV2P420 0x19
  205. #define BV_PXP_OUT_CTRL_FORMAT__YVU2P422 0x1A
  206. #define BV_PXP_OUT_CTRL_FORMAT__YVU2P420 0x1B
  207. #define HW_PXP_OUT_BUF (0x00000030)
  208. #define BP_PXP_OUT_BUF_ADDR 0
  209. #define BM_PXP_OUT_BUF_ADDR 0xFFFFFFFF
  210. #define BF_PXP_OUT_BUF_ADDR(v) (v)
  211. #define HW_PXP_OUT_BUF2 (0x00000040)
  212. #define BP_PXP_OUT_BUF2_ADDR 0
  213. #define BM_PXP_OUT_BUF2_ADDR 0xFFFFFFFF
  214. #define BF_PXP_OUT_BUF2_ADDR(v) (v)
  215. #define HW_PXP_OUT_PITCH (0x00000050)
  216. #define BP_PXP_OUT_PITCH_RSVD 16
  217. #define BM_PXP_OUT_PITCH_RSVD 0xFFFF0000
  218. #define BF_PXP_OUT_PITCH_RSVD(v) \
  219. (((v) << 16) & BM_PXP_OUT_PITCH_RSVD)
  220. #define BP_PXP_OUT_PITCH_PITCH 0
  221. #define BM_PXP_OUT_PITCH_PITCH 0x0000FFFF
  222. #define BF_PXP_OUT_PITCH_PITCH(v) \
  223. (((v) << 0) & BM_PXP_OUT_PITCH_PITCH)
  224. #define HW_PXP_OUT_LRC (0x00000060)
  225. #define BP_PXP_OUT_LRC_RSVD1 30
  226. #define BM_PXP_OUT_LRC_RSVD1 0xC0000000
  227. #define BF_PXP_OUT_LRC_RSVD1(v) \
  228. (((v) << 30) & BM_PXP_OUT_LRC_RSVD1)
  229. #define BP_PXP_OUT_LRC_X 16
  230. #define BM_PXP_OUT_LRC_X 0x3FFF0000
  231. #define BF_PXP_OUT_LRC_X(v) \
  232. (((v) << 16) & BM_PXP_OUT_LRC_X)
  233. #define BP_PXP_OUT_LRC_RSVD0 14
  234. #define BM_PXP_OUT_LRC_RSVD0 0x0000C000
  235. #define BF_PXP_OUT_LRC_RSVD0(v) \
  236. (((v) << 14) & BM_PXP_OUT_LRC_RSVD0)
  237. #define BP_PXP_OUT_LRC_Y 0
  238. #define BM_PXP_OUT_LRC_Y 0x00003FFF
  239. #define BF_PXP_OUT_LRC_Y(v) \
  240. (((v) << 0) & BM_PXP_OUT_LRC_Y)
  241. #define HW_PXP_OUT_PS_ULC (0x00000070)
  242. #define BP_PXP_OUT_PS_ULC_RSVD1 30
  243. #define BM_PXP_OUT_PS_ULC_RSVD1 0xC0000000
  244. #define BF_PXP_OUT_PS_ULC_RSVD1(v) \
  245. (((v) << 30) & BM_PXP_OUT_PS_ULC_RSVD1)
  246. #define BP_PXP_OUT_PS_ULC_X 16
  247. #define BM_PXP_OUT_PS_ULC_X 0x3FFF0000
  248. #define BF_PXP_OUT_PS_ULC_X(v) \
  249. (((v) << 16) & BM_PXP_OUT_PS_ULC_X)
  250. #define BP_PXP_OUT_PS_ULC_RSVD0 14
  251. #define BM_PXP_OUT_PS_ULC_RSVD0 0x0000C000
  252. #define BF_PXP_OUT_PS_ULC_RSVD0(v) \
  253. (((v) << 14) & BM_PXP_OUT_PS_ULC_RSVD0)
  254. #define BP_PXP_OUT_PS_ULC_Y 0
  255. #define BM_PXP_OUT_PS_ULC_Y 0x00003FFF
  256. #define BF_PXP_OUT_PS_ULC_Y(v) \
  257. (((v) << 0) & BM_PXP_OUT_PS_ULC_Y)
  258. #define HW_PXP_OUT_PS_LRC (0x00000080)
  259. #define BP_PXP_OUT_PS_LRC_RSVD1 30
  260. #define BM_PXP_OUT_PS_LRC_RSVD1 0xC0000000
  261. #define BF_PXP_OUT_PS_LRC_RSVD1(v) \
  262. (((v) << 30) & BM_PXP_OUT_PS_LRC_RSVD1)
  263. #define BP_PXP_OUT_PS_LRC_X 16
  264. #define BM_PXP_OUT_PS_LRC_X 0x3FFF0000
  265. #define BF_PXP_OUT_PS_LRC_X(v) \
  266. (((v) << 16) & BM_PXP_OUT_PS_LRC_X)
  267. #define BP_PXP_OUT_PS_LRC_RSVD0 14
  268. #define BM_PXP_OUT_PS_LRC_RSVD0 0x0000C000
  269. #define BF_PXP_OUT_PS_LRC_RSVD0(v) \
  270. (((v) << 14) & BM_PXP_OUT_PS_LRC_RSVD0)
  271. #define BP_PXP_OUT_PS_LRC_Y 0
  272. #define BM_PXP_OUT_PS_LRC_Y 0x00003FFF
  273. #define BF_PXP_OUT_PS_LRC_Y(v) \
  274. (((v) << 0) & BM_PXP_OUT_PS_LRC_Y)
  275. #define HW_PXP_OUT_AS_ULC (0x00000090)
  276. #define BP_PXP_OUT_AS_ULC_RSVD1 30
  277. #define BM_PXP_OUT_AS_ULC_RSVD1 0xC0000000
  278. #define BF_PXP_OUT_AS_ULC_RSVD1(v) \
  279. (((v) << 30) & BM_PXP_OUT_AS_ULC_RSVD1)
  280. #define BP_PXP_OUT_AS_ULC_X 16
  281. #define BM_PXP_OUT_AS_ULC_X 0x3FFF0000
  282. #define BF_PXP_OUT_AS_ULC_X(v) \
  283. (((v) << 16) & BM_PXP_OUT_AS_ULC_X)
  284. #define BP_PXP_OUT_AS_ULC_RSVD0 14
  285. #define BM_PXP_OUT_AS_ULC_RSVD0 0x0000C000
  286. #define BF_PXP_OUT_AS_ULC_RSVD0(v) \
  287. (((v) << 14) & BM_PXP_OUT_AS_ULC_RSVD0)
  288. #define BP_PXP_OUT_AS_ULC_Y 0
  289. #define BM_PXP_OUT_AS_ULC_Y 0x00003FFF
  290. #define BF_PXP_OUT_AS_ULC_Y(v) \
  291. (((v) << 0) & BM_PXP_OUT_AS_ULC_Y)
  292. #define HW_PXP_OUT_AS_LRC (0x000000a0)
  293. #define BP_PXP_OUT_AS_LRC_RSVD1 30
  294. #define BM_PXP_OUT_AS_LRC_RSVD1 0xC0000000
  295. #define BF_PXP_OUT_AS_LRC_RSVD1(v) \
  296. (((v) << 30) & BM_PXP_OUT_AS_LRC_RSVD1)
  297. #define BP_PXP_OUT_AS_LRC_X 16
  298. #define BM_PXP_OUT_AS_LRC_X 0x3FFF0000
  299. #define BF_PXP_OUT_AS_LRC_X(v) \
  300. (((v) << 16) & BM_PXP_OUT_AS_LRC_X)
  301. #define BP_PXP_OUT_AS_LRC_RSVD0 14
  302. #define BM_PXP_OUT_AS_LRC_RSVD0 0x0000C000
  303. #define BF_PXP_OUT_AS_LRC_RSVD0(v) \
  304. (((v) << 14) & BM_PXP_OUT_AS_LRC_RSVD0)
  305. #define BP_PXP_OUT_AS_LRC_Y 0
  306. #define BM_PXP_OUT_AS_LRC_Y 0x00003FFF
  307. #define BF_PXP_OUT_AS_LRC_Y(v) \
  308. (((v) << 0) & BM_PXP_OUT_AS_LRC_Y)
  309. #define HW_PXP_PS_CTRL (0x000000b0)
  310. #define HW_PXP_PS_CTRL_SET (0x000000b4)
  311. #define HW_PXP_PS_CTRL_CLR (0x000000b8)
  312. #define HW_PXP_PS_CTRL_TOG (0x000000bc)
  313. #define BP_PXP_PS_CTRL_RSVD1 12
  314. #define BM_PXP_PS_CTRL_RSVD1 0xFFFFF000
  315. #define BF_PXP_PS_CTRL_RSVD1(v) \
  316. (((v) << 12) & BM_PXP_PS_CTRL_RSVD1)
  317. #define BP_PXP_PS_CTRL_DECX 10
  318. #define BM_PXP_PS_CTRL_DECX 0x00000C00
  319. #define BF_PXP_PS_CTRL_DECX(v) \
  320. (((v) << 10) & BM_PXP_PS_CTRL_DECX)
  321. #define BV_PXP_PS_CTRL_DECX__DISABLE 0x0
  322. #define BV_PXP_PS_CTRL_DECX__DECX2 0x1
  323. #define BV_PXP_PS_CTRL_DECX__DECX4 0x2
  324. #define BV_PXP_PS_CTRL_DECX__DECX8 0x3
  325. #define BP_PXP_PS_CTRL_DECY 8
  326. #define BM_PXP_PS_CTRL_DECY 0x00000300
  327. #define BF_PXP_PS_CTRL_DECY(v) \
  328. (((v) << 8) & BM_PXP_PS_CTRL_DECY)
  329. #define BV_PXP_PS_CTRL_DECY__DISABLE 0x0
  330. #define BV_PXP_PS_CTRL_DECY__DECY2 0x1
  331. #define BV_PXP_PS_CTRL_DECY__DECY4 0x2
  332. #define BV_PXP_PS_CTRL_DECY__DECY8 0x3
  333. #define BM_PXP_PS_CTRL_RSVD0 0x00000080
  334. #define BF_PXP_PS_CTRL_RSVD0(v) \
  335. (((v) << 7) & BM_PXP_PS_CTRL_RSVD0)
  336. #define BM_PXP_PS_CTRL_WB_SWAP 0x00000040
  337. #define BF_PXP_PS_CTRL_WB_SWAP(v) \
  338. (((v) << 6) & BM_PXP_PS_CTRL_WB_SWAP)
  339. #define BP_PXP_PS_CTRL_FORMAT 0
  340. #define BM_PXP_PS_CTRL_FORMAT 0x0000003F
  341. #define BF_PXP_PS_CTRL_FORMAT(v) \
  342. (((v) << 0) & BM_PXP_PS_CTRL_FORMAT)
  343. #define BV_PXP_PS_CTRL_FORMAT__RGB888 0x4
  344. #define BV_PXP_PS_CTRL_FORMAT__RGB555 0xC
  345. #define BV_PXP_PS_CTRL_FORMAT__RGB444 0xD
  346. #define BV_PXP_PS_CTRL_FORMAT__RGB565 0xE
  347. #define BV_PXP_PS_CTRL_FORMAT__YUV1P444 0x10
  348. #define BV_PXP_PS_CTRL_FORMAT__UYVY1P422 0x12
  349. #define BV_PXP_PS_CTRL_FORMAT__VYUY1P422 0x13
  350. #define BV_PXP_PS_CTRL_FORMAT__Y8 0x14
  351. #define BV_PXP_PS_CTRL_FORMAT__Y4 0x15
  352. #define BV_PXP_PS_CTRL_FORMAT__YUV2P422 0x18
  353. #define BV_PXP_PS_CTRL_FORMAT__YUV2P420 0x19
  354. #define BV_PXP_PS_CTRL_FORMAT__YVU2P422 0x1A
  355. #define BV_PXP_PS_CTRL_FORMAT__YVU2P420 0x1B
  356. #define BV_PXP_PS_CTRL_FORMAT__YUV422 0x1E
  357. #define BV_PXP_PS_CTRL_FORMAT__YUV420 0x1F
  358. #define HW_PXP_PS_BUF (0x000000c0)
  359. #define BP_PXP_PS_BUF_ADDR 0
  360. #define BM_PXP_PS_BUF_ADDR 0xFFFFFFFF
  361. #define BF_PXP_PS_BUF_ADDR(v) (v)
  362. #define HW_PXP_PS_UBUF (0x000000d0)
  363. #define BP_PXP_PS_UBUF_ADDR 0
  364. #define BM_PXP_PS_UBUF_ADDR 0xFFFFFFFF
  365. #define BF_PXP_PS_UBUF_ADDR(v) (v)
  366. #define HW_PXP_PS_VBUF (0x000000e0)
  367. #define BP_PXP_PS_VBUF_ADDR 0
  368. #define BM_PXP_PS_VBUF_ADDR 0xFFFFFFFF
  369. #define BF_PXP_PS_VBUF_ADDR(v) (v)
  370. #define HW_PXP_PS_PITCH (0x000000f0)
  371. #define BP_PXP_PS_PITCH_RSVD 16
  372. #define BM_PXP_PS_PITCH_RSVD 0xFFFF0000
  373. #define BF_PXP_PS_PITCH_RSVD(v) \
  374. (((v) << 16) & BM_PXP_PS_PITCH_RSVD)
  375. #define BP_PXP_PS_PITCH_PITCH 0
  376. #define BM_PXP_PS_PITCH_PITCH 0x0000FFFF
  377. #define BF_PXP_PS_PITCH_PITCH(v) \
  378. (((v) << 0) & BM_PXP_PS_PITCH_PITCH)
  379. #define HW_PXP_PS_BACKGROUND_0 (0x00000100)
  380. #define BP_PXP_PS_BACKGROUND_0_RSVD 24
  381. #define BM_PXP_PS_BACKGROUND_0_RSVD 0xFF000000
  382. #define BF_PXP_PS_BACKGROUND_0_RSVD(v) \
  383. (((v) << 24) & BM_PXP_PS_BACKGROUND_0_RSVD)
  384. #define BP_PXP_PS_BACKGROUND_0_COLOR 0
  385. #define BM_PXP_PS_BACKGROUND_0_COLOR 0x00FFFFFF
  386. #define BF_PXP_PS_BACKGROUND_0_COLOR(v) \
  387. (((v) << 0) & BM_PXP_PS_BACKGROUND_0_COLOR)
  388. #define HW_PXP_PS_SCALE (0x00000110)
  389. #define BM_PXP_PS_SCALE_RSVD2 0x80000000
  390. #define BF_PXP_PS_SCALE_RSVD2(v) \
  391. (((v) << 31) & BM_PXP_PS_SCALE_RSVD2)
  392. #define BP_PXP_PS_SCALE_YSCALE 16
  393. #define BM_PXP_PS_SCALE_YSCALE 0x7FFF0000
  394. #define BF_PXP_PS_SCALE_YSCALE(v) \
  395. (((v) << 16) & BM_PXP_PS_SCALE_YSCALE)
  396. #define BM_PXP_PS_SCALE_RSVD1 0x00008000
  397. #define BF_PXP_PS_SCALE_RSVD1(v) \
  398. (((v) << 15) & BM_PXP_PS_SCALE_RSVD1)
  399. #define BP_PXP_PS_SCALE_XSCALE 0
  400. #define BM_PXP_PS_SCALE_XSCALE 0x00007FFF
  401. #define BF_PXP_PS_SCALE_XSCALE(v) \
  402. (((v) << 0) & BM_PXP_PS_SCALE_XSCALE)
  403. #define HW_PXP_PS_OFFSET (0x00000120)
  404. #define BP_PXP_PS_OFFSET_RSVD2 28
  405. #define BM_PXP_PS_OFFSET_RSVD2 0xF0000000
  406. #define BF_PXP_PS_OFFSET_RSVD2(v) \
  407. (((v) << 28) & BM_PXP_PS_OFFSET_RSVD2)
  408. #define BP_PXP_PS_OFFSET_YOFFSET 16
  409. #define BM_PXP_PS_OFFSET_YOFFSET 0x0FFF0000
  410. #define BF_PXP_PS_OFFSET_YOFFSET(v) \
  411. (((v) << 16) & BM_PXP_PS_OFFSET_YOFFSET)
  412. #define BP_PXP_PS_OFFSET_RSVD1 12
  413. #define BM_PXP_PS_OFFSET_RSVD1 0x0000F000
  414. #define BF_PXP_PS_OFFSET_RSVD1(v) \
  415. (((v) << 12) & BM_PXP_PS_OFFSET_RSVD1)
  416. #define BP_PXP_PS_OFFSET_XOFFSET 0
  417. #define BM_PXP_PS_OFFSET_XOFFSET 0x00000FFF
  418. #define BF_PXP_PS_OFFSET_XOFFSET(v) \
  419. (((v) << 0) & BM_PXP_PS_OFFSET_XOFFSET)
  420. #define HW_PXP_PS_CLRKEYLOW_0 (0x00000130)
  421. #define BP_PXP_PS_CLRKEYLOW_0_RSVD1 24
  422. #define BM_PXP_PS_CLRKEYLOW_0_RSVD1 0xFF000000
  423. #define BF_PXP_PS_CLRKEYLOW_0_RSVD1(v) \
  424. (((v) << 24) & BM_PXP_PS_CLRKEYLOW_0_RSVD1)
  425. #define BP_PXP_PS_CLRKEYLOW_0_PIXEL 0
  426. #define BM_PXP_PS_CLRKEYLOW_0_PIXEL 0x00FFFFFF
  427. #define BF_PXP_PS_CLRKEYLOW_0_PIXEL(v) \
  428. (((v) << 0) & BM_PXP_PS_CLRKEYLOW_0_PIXEL)
  429. #define HW_PXP_PS_CLRKEYHIGH_0 (0x00000140)
  430. #define BP_PXP_PS_CLRKEYHIGH_0_RSVD1 24
  431. #define BM_PXP_PS_CLRKEYHIGH_0_RSVD1 0xFF000000
  432. #define BF_PXP_PS_CLRKEYHIGH_0_RSVD1(v) \
  433. (((v) << 24) & BM_PXP_PS_CLRKEYHIGH_0_RSVD1)
  434. #define BP_PXP_PS_CLRKEYHIGH_0_PIXEL 0
  435. #define BM_PXP_PS_CLRKEYHIGH_0_PIXEL 0x00FFFFFF
  436. #define BF_PXP_PS_CLRKEYHIGH_0_PIXEL(v) \
  437. (((v) << 0) & BM_PXP_PS_CLRKEYHIGH_0_PIXEL)
  438. #define HW_PXP_AS_CTRL (0x00000150)
  439. #define BP_PXP_AS_CTRL_RSVD1 22
  440. #define BM_PXP_AS_CTRL_RSVD1 0xFFC00000
  441. #define BF_PXP_AS_CTRL_RSVD1(v) \
  442. (((v) << 22) & BM_PXP_AS_CTRL_RSVD1)
  443. #define BM_PXP_AS_CTRL_ALPHA1_INVERT 0x00200000
  444. #define BF_PXP_AS_CTRL_ALPHA1_INVERT(v) \
  445. (((v) << 21) & BM_PXP_AS_CTRL_ALPHA1_INVERT)
  446. #define BM_PXP_AS_CTRL_ALPHA0_INVERT 0x00100000
  447. #define BF_PXP_AS_CTRL_ALPHA0_INVERT(v) \
  448. (((v) << 20) & BM_PXP_AS_CTRL_ALPHA0_INVERT)
  449. #define BP_PXP_AS_CTRL_ROP 16
  450. #define BM_PXP_AS_CTRL_ROP 0x000F0000
  451. #define BF_PXP_AS_CTRL_ROP(v) \
  452. (((v) << 16) & BM_PXP_AS_CTRL_ROP)
  453. #define BV_PXP_AS_CTRL_ROP__MASKAS 0x0
  454. #define BV_PXP_AS_CTRL_ROP__MASKNOTAS 0x1
  455. #define BV_PXP_AS_CTRL_ROP__MASKASNOT 0x2
  456. #define BV_PXP_AS_CTRL_ROP__MERGEAS 0x3
  457. #define BV_PXP_AS_CTRL_ROP__MERGENOTAS 0x4
  458. #define BV_PXP_AS_CTRL_ROP__MERGEASNOT 0x5
  459. #define BV_PXP_AS_CTRL_ROP__NOTCOPYAS 0x6
  460. #define BV_PXP_AS_CTRL_ROP__NOT 0x7
  461. #define BV_PXP_AS_CTRL_ROP__NOTMASKAS 0x8
  462. #define BV_PXP_AS_CTRL_ROP__NOTMERGEAS 0x9
  463. #define BV_PXP_AS_CTRL_ROP__XORAS 0xA
  464. #define BV_PXP_AS_CTRL_ROP__NOTXORAS 0xB
  465. #define BP_PXP_AS_CTRL_ALPHA 8
  466. #define BM_PXP_AS_CTRL_ALPHA 0x0000FF00
  467. #define BF_PXP_AS_CTRL_ALPHA(v) \
  468. (((v) << 8) & BM_PXP_AS_CTRL_ALPHA)
  469. #define BP_PXP_AS_CTRL_FORMAT 4
  470. #define BM_PXP_AS_CTRL_FORMAT 0x000000F0
  471. #define BF_PXP_AS_CTRL_FORMAT(v) \
  472. (((v) << 4) & BM_PXP_AS_CTRL_FORMAT)
  473. #define BV_PXP_AS_CTRL_FORMAT__ARGB8888 0x0
  474. #define BV_PXP_AS_CTRL_FORMAT__RGBA8888 0x1
  475. #define BV_PXP_AS_CTRL_FORMAT__RGB888 0x4
  476. #define BV_PXP_AS_CTRL_FORMAT__ARGB1555 0x8
  477. #define BV_PXP_AS_CTRL_FORMAT__ARGB4444 0x9
  478. #define BV_PXP_AS_CTRL_FORMAT__RGB555 0xC
  479. #define BV_PXP_AS_CTRL_FORMAT__RGB444 0xD
  480. #define BV_PXP_AS_CTRL_FORMAT__RGB565 0xE
  481. #define BM_PXP_AS_CTRL_ENABLE_COLORKEY 0x00000008
  482. #define BF_PXP_AS_CTRL_ENABLE_COLORKEY(v) \
  483. (((v) << 3) & BM_PXP_AS_CTRL_ENABLE_COLORKEY)
  484. #define BP_PXP_AS_CTRL_ALPHA_CTRL 1
  485. #define BM_PXP_AS_CTRL_ALPHA_CTRL 0x00000006
  486. #define BF_PXP_AS_CTRL_ALPHA_CTRL(v) \
  487. (((v) << 1) & BM_PXP_AS_CTRL_ALPHA_CTRL)
  488. #define BV_PXP_AS_CTRL_ALPHA_CTRL__Embedded 0x0
  489. #define BV_PXP_AS_CTRL_ALPHA_CTRL__Override 0x1
  490. #define BV_PXP_AS_CTRL_ALPHA_CTRL__Multiply 0x2
  491. #define BV_PXP_AS_CTRL_ALPHA_CTRL__ROPs 0x3
  492. #define BM_PXP_AS_CTRL_RSVD0 0x00000001
  493. #define BF_PXP_AS_CTRL_RSVD0(v) \
  494. (((v) << 0) & BM_PXP_AS_CTRL_RSVD0)
  495. #define HW_PXP_AS_BUF (0x00000160)
  496. #define BP_PXP_AS_BUF_ADDR 0
  497. #define BM_PXP_AS_BUF_ADDR 0xFFFFFFFF
  498. #define BF_PXP_AS_BUF_ADDR(v) (v)
  499. #define HW_PXP_AS_PITCH (0x00000170)
  500. #define BP_PXP_AS_PITCH_RSVD 16
  501. #define BM_PXP_AS_PITCH_RSVD 0xFFFF0000
  502. #define BF_PXP_AS_PITCH_RSVD(v) \
  503. (((v) << 16) & BM_PXP_AS_PITCH_RSVD)
  504. #define BP_PXP_AS_PITCH_PITCH 0
  505. #define BM_PXP_AS_PITCH_PITCH 0x0000FFFF
  506. #define BF_PXP_AS_PITCH_PITCH(v) \
  507. (((v) << 0) & BM_PXP_AS_PITCH_PITCH)
  508. #define HW_PXP_AS_CLRKEYLOW_0 (0x00000180)
  509. #define BP_PXP_AS_CLRKEYLOW_0_RSVD1 24
  510. #define BM_PXP_AS_CLRKEYLOW_0_RSVD1 0xFF000000
  511. #define BF_PXP_AS_CLRKEYLOW_0_RSVD1(v) \
  512. (((v) << 24) & BM_PXP_AS_CLRKEYLOW_0_RSVD1)
  513. #define BP_PXP_AS_CLRKEYLOW_0_PIXEL 0
  514. #define BM_PXP_AS_CLRKEYLOW_0_PIXEL 0x00FFFFFF
  515. #define BF_PXP_AS_CLRKEYLOW_0_PIXEL(v) \
  516. (((v) << 0) & BM_PXP_AS_CLRKEYLOW_0_PIXEL)
  517. #define HW_PXP_AS_CLRKEYHIGH_0 (0x00000190)
  518. #define BP_PXP_AS_CLRKEYHIGH_0_RSVD1 24
  519. #define BM_PXP_AS_CLRKEYHIGH_0_RSVD1 0xFF000000
  520. #define BF_PXP_AS_CLRKEYHIGH_0_RSVD1(v) \
  521. (((v) << 24) & BM_PXP_AS_CLRKEYHIGH_0_RSVD1)
  522. #define BP_PXP_AS_CLRKEYHIGH_0_PIXEL 0
  523. #define BM_PXP_AS_CLRKEYHIGH_0_PIXEL 0x00FFFFFF
  524. #define BF_PXP_AS_CLRKEYHIGH_0_PIXEL(v) \
  525. (((v) << 0) & BM_PXP_AS_CLRKEYHIGH_0_PIXEL)
  526. #define HW_PXP_CSC1_COEF0 (0x000001a0)
  527. #define BM_PXP_CSC1_COEF0_YCBCR_MODE 0x80000000
  528. #define BF_PXP_CSC1_COEF0_YCBCR_MODE(v) \
  529. (((v) << 31) & BM_PXP_CSC1_COEF0_YCBCR_MODE)
  530. #define BM_PXP_CSC1_COEF0_BYPASS 0x40000000
  531. #define BF_PXP_CSC1_COEF0_BYPASS(v) \
  532. (((v) << 30) & BM_PXP_CSC1_COEF0_BYPASS)
  533. #define BM_PXP_CSC1_COEF0_RSVD1 0x20000000
  534. #define BF_PXP_CSC1_COEF0_RSVD1(v) \
  535. (((v) << 29) & BM_PXP_CSC1_COEF0_RSVD1)
  536. #define BP_PXP_CSC1_COEF0_C0 18
  537. #define BM_PXP_CSC1_COEF0_C0 0x1FFC0000
  538. #define BF_PXP_CSC1_COEF0_C0(v) \
  539. (((v) << 18) & BM_PXP_CSC1_COEF0_C0)
  540. #define BP_PXP_CSC1_COEF0_UV_OFFSET 9
  541. #define BM_PXP_CSC1_COEF0_UV_OFFSET 0x0003FE00
  542. #define BF_PXP_CSC1_COEF0_UV_OFFSET(v) \
  543. (((v) << 9) & BM_PXP_CSC1_COEF0_UV_OFFSET)
  544. #define BP_PXP_CSC1_COEF0_Y_OFFSET 0
  545. #define BM_PXP_CSC1_COEF0_Y_OFFSET 0x000001FF
  546. #define BF_PXP_CSC1_COEF0_Y_OFFSET(v) \
  547. (((v) << 0) & BM_PXP_CSC1_COEF0_Y_OFFSET)
  548. #define HW_PXP_CSC1_COEF1 (0x000001b0)
  549. #define BP_PXP_CSC1_COEF1_RSVD1 27
  550. #define BM_PXP_CSC1_COEF1_RSVD1 0xF8000000
  551. #define BF_PXP_CSC1_COEF1_RSVD1(v) \
  552. (((v) << 27) & BM_PXP_CSC1_COEF1_RSVD1)
  553. #define BP_PXP_CSC1_COEF1_C1 16
  554. #define BM_PXP_CSC1_COEF1_C1 0x07FF0000
  555. #define BF_PXP_CSC1_COEF1_C1(v) \
  556. (((v) << 16) & BM_PXP_CSC1_COEF1_C1)
  557. #define BP_PXP_CSC1_COEF1_RSVD0 11
  558. #define BM_PXP_CSC1_COEF1_RSVD0 0x0000F800
  559. #define BF_PXP_CSC1_COEF1_RSVD0(v) \
  560. (((v) << 11) & BM_PXP_CSC1_COEF1_RSVD0)
  561. #define BP_PXP_CSC1_COEF1_C4 0
  562. #define BM_PXP_CSC1_COEF1_C4 0x000007FF
  563. #define BF_PXP_CSC1_COEF1_C4(v) \
  564. (((v) << 0) & BM_PXP_CSC1_COEF1_C4)
  565. #define HW_PXP_CSC1_COEF2 (0x000001c0)
  566. #define BP_PXP_CSC1_COEF2_RSVD1 27
  567. #define BM_PXP_CSC1_COEF2_RSVD1 0xF8000000
  568. #define BF_PXP_CSC1_COEF2_RSVD1(v) \
  569. (((v) << 27) & BM_PXP_CSC1_COEF2_RSVD1)
  570. #define BP_PXP_CSC1_COEF2_C2 16
  571. #define BM_PXP_CSC1_COEF2_C2 0x07FF0000
  572. #define BF_PXP_CSC1_COEF2_C2(v) \
  573. (((v) << 16) & BM_PXP_CSC1_COEF2_C2)
  574. #define BP_PXP_CSC1_COEF2_RSVD0 11
  575. #define BM_PXP_CSC1_COEF2_RSVD0 0x0000F800
  576. #define BF_PXP_CSC1_COEF2_RSVD0(v) \
  577. (((v) << 11) & BM_PXP_CSC1_COEF2_RSVD0)
  578. #define BP_PXP_CSC1_COEF2_C3 0
  579. #define BM_PXP_CSC1_COEF2_C3 0x000007FF
  580. #define BF_PXP_CSC1_COEF2_C3(v) \
  581. (((v) << 0) & BM_PXP_CSC1_COEF2_C3)
  582. #define HW_PXP_CSC2_CTRL (0x000001d0)
  583. #define BP_PXP_CSC2_CTRL_RSVD 3
  584. #define BM_PXP_CSC2_CTRL_RSVD 0xFFFFFFF8
  585. #define BF_PXP_CSC2_CTRL_RSVD(v) \
  586. (((v) << 3) & BM_PXP_CSC2_CTRL_RSVD)
  587. #define BP_PXP_CSC2_CTRL_CSC_MODE 1
  588. #define BM_PXP_CSC2_CTRL_CSC_MODE 0x00000006
  589. #define BF_PXP_CSC2_CTRL_CSC_MODE(v) \
  590. (((v) << 1) & BM_PXP_CSC2_CTRL_CSC_MODE)
  591. #define BV_PXP_CSC2_CTRL_CSC_MODE__YUV2RGB 0x0
  592. #define BV_PXP_CSC2_CTRL_CSC_MODE__YCbCr2RGB 0x1
  593. #define BV_PXP_CSC2_CTRL_CSC_MODE__RGB2YUV 0x2
  594. #define BV_PXP_CSC2_CTRL_CSC_MODE__RGB2YCbCr 0x3
  595. #define BM_PXP_CSC2_CTRL_BYPASS 0x00000001
  596. #define BF_PXP_CSC2_CTRL_BYPASS(v) \
  597. (((v) << 0) & BM_PXP_CSC2_CTRL_BYPASS)
  598. #define HW_PXP_CSC2_COEF0 (0x000001e0)
  599. #define BP_PXP_CSC2_COEF0_RSVD1 27
  600. #define BM_PXP_CSC2_COEF0_RSVD1 0xF8000000
  601. #define BF_PXP_CSC2_COEF0_RSVD1(v) \
  602. (((v) << 27) & BM_PXP_CSC2_COEF0_RSVD1)
  603. #define BP_PXP_CSC2_COEF0_A2 16
  604. #define BM_PXP_CSC2_COEF0_A2 0x07FF0000
  605. #define BF_PXP_CSC2_COEF0_A2(v) \
  606. (((v) << 16) & BM_PXP_CSC2_COEF0_A2)
  607. #define BP_PXP_CSC2_COEF0_RSVD0 11
  608. #define BM_PXP_CSC2_COEF0_RSVD0 0x0000F800
  609. #define BF_PXP_CSC2_COEF0_RSVD0(v) \
  610. (((v) << 11) & BM_PXP_CSC2_COEF0_RSVD0)
  611. #define BP_PXP_CSC2_COEF0_A1 0
  612. #define BM_PXP_CSC2_COEF0_A1 0x000007FF
  613. #define BF_PXP_CSC2_COEF0_A1(v) \
  614. (((v) << 0) & BM_PXP_CSC2_COEF0_A1)
  615. #define HW_PXP_CSC2_COEF1 (0x000001f0)
  616. #define BP_PXP_CSC2_COEF1_RSVD1 27
  617. #define BM_PXP_CSC2_COEF1_RSVD1 0xF8000000
  618. #define BF_PXP_CSC2_COEF1_RSVD1(v) \
  619. (((v) << 27) & BM_PXP_CSC2_COEF1_RSVD1)
  620. #define BP_PXP_CSC2_COEF1_B1 16
  621. #define BM_PXP_CSC2_COEF1_B1 0x07FF0000
  622. #define BF_PXP_CSC2_COEF1_B1(v) \
  623. (((v) << 16) & BM_PXP_CSC2_COEF1_B1)
  624. #define BP_PXP_CSC2_COEF1_RSVD0 11
  625. #define BM_PXP_CSC2_COEF1_RSVD0 0x0000F800
  626. #define BF_PXP_CSC2_COEF1_RSVD0(v) \
  627. (((v) << 11) & BM_PXP_CSC2_COEF1_RSVD0)
  628. #define BP_PXP_CSC2_COEF1_A3 0
  629. #define BM_PXP_CSC2_COEF1_A3 0x000007FF
  630. #define BF_PXP_CSC2_COEF1_A3(v) \
  631. (((v) << 0) & BM_PXP_CSC2_COEF1_A3)
  632. #define HW_PXP_CSC2_COEF2 (0x00000200)
  633. #define BP_PXP_CSC2_COEF2_RSVD1 27
  634. #define BM_PXP_CSC2_COEF2_RSVD1 0xF8000000
  635. #define BF_PXP_CSC2_COEF2_RSVD1(v) \
  636. (((v) << 27) & BM_PXP_CSC2_COEF2_RSVD1)
  637. #define BP_PXP_CSC2_COEF2_B3 16
  638. #define BM_PXP_CSC2_COEF2_B3 0x07FF0000
  639. #define BF_PXP_CSC2_COEF2_B3(v) \
  640. (((v) << 16) & BM_PXP_CSC2_COEF2_B3)
  641. #define BP_PXP_CSC2_COEF2_RSVD0 11
  642. #define BM_PXP_CSC2_COEF2_RSVD0 0x0000F800
  643. #define BF_PXP_CSC2_COEF2_RSVD0(v) \
  644. (((v) << 11) & BM_PXP_CSC2_COEF2_RSVD0)
  645. #define BP_PXP_CSC2_COEF2_B2 0
  646. #define BM_PXP_CSC2_COEF2_B2 0x000007FF
  647. #define BF_PXP_CSC2_COEF2_B2(v) \
  648. (((v) << 0) & BM_PXP_CSC2_COEF2_B2)
  649. #define HW_PXP_CSC2_COEF3 (0x00000210)
  650. #define BP_PXP_CSC2_COEF3_RSVD1 27
  651. #define BM_PXP_CSC2_COEF3_RSVD1 0xF8000000
  652. #define BF_PXP_CSC2_COEF3_RSVD1(v) \
  653. (((v) << 27) & BM_PXP_CSC2_COEF3_RSVD1)
  654. #define BP_PXP_CSC2_COEF3_C2 16
  655. #define BM_PXP_CSC2_COEF3_C2 0x07FF0000
  656. #define BF_PXP_CSC2_COEF3_C2(v) \
  657. (((v) << 16) & BM_PXP_CSC2_COEF3_C2)
  658. #define BP_PXP_CSC2_COEF3_RSVD0 11
  659. #define BM_PXP_CSC2_COEF3_RSVD0 0x0000F800
  660. #define BF_PXP_CSC2_COEF3_RSVD0(v) \
  661. (((v) << 11) & BM_PXP_CSC2_COEF3_RSVD0)
  662. #define BP_PXP_CSC2_COEF3_C1 0
  663. #define BM_PXP_CSC2_COEF3_C1 0x000007FF
  664. #define BF_PXP_CSC2_COEF3_C1(v) \
  665. (((v) << 0) & BM_PXP_CSC2_COEF3_C1)
  666. #define HW_PXP_CSC2_COEF4 (0x00000220)
  667. #define BP_PXP_CSC2_COEF4_RSVD1 25
  668. #define BM_PXP_CSC2_COEF4_RSVD1 0xFE000000
  669. #define BF_PXP_CSC2_COEF4_RSVD1(v) \
  670. (((v) << 25) & BM_PXP_CSC2_COEF4_RSVD1)
  671. #define BP_PXP_CSC2_COEF4_D1 16
  672. #define BM_PXP_CSC2_COEF4_D1 0x01FF0000
  673. #define BF_PXP_CSC2_COEF4_D1(v) \
  674. (((v) << 16) & BM_PXP_CSC2_COEF4_D1)
  675. #define BP_PXP_CSC2_COEF4_RSVD0 11
  676. #define BM_PXP_CSC2_COEF4_RSVD0 0x0000F800
  677. #define BF_PXP_CSC2_COEF4_RSVD0(v) \
  678. (((v) << 11) & BM_PXP_CSC2_COEF4_RSVD0)
  679. #define BP_PXP_CSC2_COEF4_C3 0
  680. #define BM_PXP_CSC2_COEF4_C3 0x000007FF
  681. #define BF_PXP_CSC2_COEF4_C3(v) \
  682. (((v) << 0) & BM_PXP_CSC2_COEF4_C3)
  683. #define HW_PXP_CSC2_COEF5 (0x00000230)
  684. #define BP_PXP_CSC2_COEF5_RSVD1 25
  685. #define BM_PXP_CSC2_COEF5_RSVD1 0xFE000000
  686. #define BF_PXP_CSC2_COEF5_RSVD1(v) \
  687. (((v) << 25) & BM_PXP_CSC2_COEF5_RSVD1)
  688. #define BP_PXP_CSC2_COEF5_D3 16
  689. #define BM_PXP_CSC2_COEF5_D3 0x01FF0000
  690. #define BF_PXP_CSC2_COEF5_D3(v) \
  691. (((v) << 16) & BM_PXP_CSC2_COEF5_D3)
  692. #define BP_PXP_CSC2_COEF5_RSVD0 9
  693. #define BM_PXP_CSC2_COEF5_RSVD0 0x0000FE00
  694. #define BF_PXP_CSC2_COEF5_RSVD0(v) \
  695. (((v) << 9) & BM_PXP_CSC2_COEF5_RSVD0)
  696. #define BP_PXP_CSC2_COEF5_D2 0
  697. #define BM_PXP_CSC2_COEF5_D2 0x000001FF
  698. #define BF_PXP_CSC2_COEF5_D2(v) \
  699. (((v) << 0) & BM_PXP_CSC2_COEF5_D2)
  700. #define HW_PXP_LUT_CTRL (0x00000240)
  701. #define BM_PXP_LUT_CTRL_BYPASS 0x80000000
  702. #define BF_PXP_LUT_CTRL_BYPASS(v) \
  703. (((v) << 31) & BM_PXP_LUT_CTRL_BYPASS)
  704. #define BP_PXP_LUT_CTRL_RSVD3 26
  705. #define BM_PXP_LUT_CTRL_RSVD3 0x7C000000
  706. #define BF_PXP_LUT_CTRL_RSVD3(v) \
  707. (((v) << 26) & BM_PXP_LUT_CTRL_RSVD3)
  708. #define BP_PXP_LUT_CTRL_LOOKUP_MODE 24
  709. #define BM_PXP_LUT_CTRL_LOOKUP_MODE 0x03000000
  710. #define BF_PXP_LUT_CTRL_LOOKUP_MODE(v) \
  711. (((v) << 24) & BM_PXP_LUT_CTRL_LOOKUP_MODE)
  712. #define BV_PXP_LUT_CTRL_LOOKUP_MODE__CACHE_RGB565 0x0
  713. #define BV_PXP_LUT_CTRL_LOOKUP_MODE__DIRECT_Y8 0x1
  714. #define BV_PXP_LUT_CTRL_LOOKUP_MODE__DIRECT_RGB444 0x2
  715. #define BV_PXP_LUT_CTRL_LOOKUP_MODE__DIRECT_RGB454 0x3
  716. #define BP_PXP_LUT_CTRL_RSVD2 18
  717. #define BM_PXP_LUT_CTRL_RSVD2 0x00FC0000
  718. #define BF_PXP_LUT_CTRL_RSVD2(v) \
  719. (((v) << 18) & BM_PXP_LUT_CTRL_RSVD2)
  720. #define BP_PXP_LUT_CTRL_OUT_MODE 16
  721. #define BM_PXP_LUT_CTRL_OUT_MODE 0x00030000
  722. #define BF_PXP_LUT_CTRL_OUT_MODE(v) \
  723. (((v) << 16) & BM_PXP_LUT_CTRL_OUT_MODE)
  724. #define BV_PXP_LUT_CTRL_OUT_MODE__RESERVED 0x0
  725. #define BV_PXP_LUT_CTRL_OUT_MODE__Y8 0x1
  726. #define BV_PXP_LUT_CTRL_OUT_MODE__RGBW4444CFA 0x2
  727. #define BV_PXP_LUT_CTRL_OUT_MODE__RGB888 0x3
  728. #define BP_PXP_LUT_CTRL_RSVD1 11
  729. #define BM_PXP_LUT_CTRL_RSVD1 0x0000F800
  730. #define BF_PXP_LUT_CTRL_RSVD1(v) \
  731. (((v) << 11) & BM_PXP_LUT_CTRL_RSVD1)
  732. #define BM_PXP_LUT_CTRL_SEL_8KB 0x00000400
  733. #define BF_PXP_LUT_CTRL_SEL_8KB(v) \
  734. (((v) << 10) & BM_PXP_LUT_CTRL_SEL_8KB)
  735. #define BM_PXP_LUT_CTRL_LRU_UPD 0x00000200
  736. #define BF_PXP_LUT_CTRL_LRU_UPD(v) \
  737. (((v) << 9) & BM_PXP_LUT_CTRL_LRU_UPD)
  738. #define BM_PXP_LUT_CTRL_INVALID 0x00000100
  739. #define BF_PXP_LUT_CTRL_INVALID(v) \
  740. (((v) << 8) & BM_PXP_LUT_CTRL_INVALID)
  741. #define BP_PXP_LUT_CTRL_RSVD0 1
  742. #define BM_PXP_LUT_CTRL_RSVD0 0x000000FE
  743. #define BF_PXP_LUT_CTRL_RSVD0(v) \
  744. (((v) << 1) & BM_PXP_LUT_CTRL_RSVD0)
  745. #define BM_PXP_LUT_CTRL_DMA_START 0x00000001
  746. #define BF_PXP_LUT_CTRL_DMA_START(v) \
  747. (((v) << 0) & BM_PXP_LUT_CTRL_DMA_START)
  748. #define HW_PXP_LUT_ADDR (0x00000250)
  749. #define BM_PXP_LUT_ADDR_RSVD2 0x80000000
  750. #define BF_PXP_LUT_ADDR_RSVD2(v) \
  751. (((v) << 31) & BM_PXP_LUT_ADDR_RSVD2)
  752. #define BP_PXP_LUT_ADDR_NUM_BYTES 16
  753. #define BM_PXP_LUT_ADDR_NUM_BYTES 0x7FFF0000
  754. #define BF_PXP_LUT_ADDR_NUM_BYTES(v) \
  755. (((v) << 16) & BM_PXP_LUT_ADDR_NUM_BYTES)
  756. #define BP_PXP_LUT_ADDR_RSVD1 14
  757. #define BM_PXP_LUT_ADDR_RSVD1 0x0000C000
  758. #define BF_PXP_LUT_ADDR_RSVD1(v) \
  759. (((v) << 14) & BM_PXP_LUT_ADDR_RSVD1)
  760. #define BP_PXP_LUT_ADDR_ADDR 0
  761. #define BM_PXP_LUT_ADDR_ADDR 0x00003FFF
  762. #define BF_PXP_LUT_ADDR_ADDR(v) \
  763. (((v) << 0) & BM_PXP_LUT_ADDR_ADDR)
  764. #define HW_PXP_LUT_DATA (0x00000260)
  765. #define BP_PXP_LUT_DATA_DATA 0
  766. #define BM_PXP_LUT_DATA_DATA 0xFFFFFFFF
  767. #define BF_PXP_LUT_DATA_DATA(v) (v)
  768. #define HW_PXP_LUT_EXTMEM (0x00000270)
  769. #define BP_PXP_LUT_EXTMEM_ADDR 0
  770. #define BM_PXP_LUT_EXTMEM_ADDR 0xFFFFFFFF
  771. #define BF_PXP_LUT_EXTMEM_ADDR(v) (v)
  772. #define HW_PXP_CFA (0x00000280)
  773. #define BP_PXP_CFA_DATA 0
  774. #define BM_PXP_CFA_DATA 0xFFFFFFFF
  775. #define BF_PXP_CFA_DATA(v) (v)
  776. #define HW_PXP_ALPHA_A_CTRL (0x00000290)
  777. #define BP_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA 24
  778. #define BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA 0xFF000000
  779. #define BF_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA(v) \
  780. (((v) << 24) & BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA)
  781. #define BP_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA 16
  782. #define BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA 0x00FF0000
  783. #define BF_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA(v) \
  784. (((v) << 16) & BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA)
  785. #define BP_PXP_ALPHA_A_CTRL_RSVD0 14
  786. #define BM_PXP_ALPHA_A_CTRL_RSVD0 0x0000C000
  787. #define BF_PXP_ALPHA_A_CTRL_RSVD0(v) \
  788. (((v) << 14) & BM_PXP_ALPHA_A_CTRL_RSVD0)
  789. #define BM_PXP_ALPHA_A_CTRL_S1_COLOR_MODE 0x00002000
  790. #define BF_PXP_ALPHA_A_CTRL_S1_COLOR_MODE(v) \
  791. (((v) << 13) & BM_PXP_ALPHA_A_CTRL_S1_COLOR_MODE)
  792. #define BV_PXP_ALPHA_A_CTRL_S1_COLOR_MODE__0 0x0
  793. #define BV_PXP_ALPHA_A_CTRL_S1_COLOR_MODE__1 0x1
  794. #define BM_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE 0x00001000
  795. #define BF_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE(v) \
  796. (((v) << 12) & BM_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE)
  797. #define BV_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE__0 0x0
  798. #define BV_PXP_ALPHA_A_CTRL_S1_ALPHA_MODE__1 0x1
  799. #define BP_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE 10
  800. #define BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE 0x00000C00
  801. #define BF_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE(v) \
  802. (((v) << 10) & BM_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE)
  803. #define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__0 0x0
  804. #define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__1 0x0
  805. #define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__2 0x0
  806. #define BV_PXP_ALPHA_A_CTRL_S1_GLOBAL_ALPHA_MODE__3 0x0
  807. #define BP_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE 8
  808. #define BM_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE 0x00000300
  809. #define BF_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE(v) \
  810. (((v) << 8) & BM_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE)
  811. #define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__0 0x0
  812. #define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__1 0x1
  813. #define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__2 0x2
  814. #define BV_PXP_ALPHA_A_CTRL_S1_S0_FACTOR_MODE__3 0x3
  815. #define BM_PXP_ALPHA_A_CTRL_RSVD1 0x00000080
  816. #define BF_PXP_ALPHA_A_CTRL_RSVD1(v) \
  817. (((v) << 7) & BM_PXP_ALPHA_A_CTRL_RSVD1)
  818. #define BM_PXP_ALPHA_A_CTRL_S0_COLOR_MODE 0x00000040
  819. #define BF_PXP_ALPHA_A_CTRL_S0_COLOR_MODE(v) \
  820. (((v) << 6) & BM_PXP_ALPHA_A_CTRL_S0_COLOR_MODE)
  821. #define BV_PXP_ALPHA_A_CTRL_S0_COLOR_MODE__0 0x0
  822. #define BV_PXP_ALPHA_A_CTRL_S0_COLOR_MODE__1 0x1
  823. #define BM_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE 0x00000020
  824. #define BF_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE(v) \
  825. (((v) << 5) & BM_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE)
  826. #define BV_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE__0 0x0
  827. #define BV_PXP_ALPHA_A_CTRL_S0_ALPHA_MODE__1 0x1
  828. #define BP_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE 3
  829. #define BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE 0x00000018
  830. #define BF_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE(v) \
  831. (((v) << 3) & BM_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE)
  832. #define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__0 0x0
  833. #define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__1 0x1
  834. #define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__2 0x2
  835. #define BV_PXP_ALPHA_A_CTRL_S0_GLOBAL_ALPHA_MODE__3 0x3
  836. #define BP_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE 1
  837. #define BM_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE 0x00000006
  838. #define BF_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE(v) \
  839. (((v) << 1) & BM_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE)
  840. #define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__0 0x0
  841. #define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__1 0x1
  842. #define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__2 0x2
  843. #define BV_PXP_ALPHA_A_CTRL_S0_S1_FACTOR_MODE__3 0x3
  844. #define BM_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE 0x00000001
  845. #define BF_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE(v) \
  846. (((v) << 0) & BM_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE)
  847. #define BV_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE__0 0x0
  848. #define BV_PXP_ALPHA_A_CTRL_POTER_DUFF_ENABLE__1 0x1
  849. #define HW_PXP_ALPHA_B_CTRL (0x000002a0)
  850. #define BP_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA 24
  851. #define BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA 0xFF000000
  852. #define BF_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA(v) \
  853. (((v) << 24) & BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA)
  854. #define BP_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA 16
  855. #define BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA 0x00FF0000
  856. #define BF_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA(v) \
  857. (((v) << 16) & BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA)
  858. #define BP_PXP_ALPHA_B_CTRL_RSVD0 14
  859. #define BM_PXP_ALPHA_B_CTRL_RSVD0 0x0000C000
  860. #define BF_PXP_ALPHA_B_CTRL_RSVD0(v) \
  861. (((v) << 14) & BM_PXP_ALPHA_B_CTRL_RSVD0)
  862. #define BM_PXP_ALPHA_B_CTRL_S1_COLOR_MODE 0x00002000
  863. #define BF_PXP_ALPHA_B_CTRL_S1_COLOR_MODE(v) \
  864. (((v) << 13) & BM_PXP_ALPHA_B_CTRL_S1_COLOR_MODE)
  865. #define BV_PXP_ALPHA_B_CTRL_S1_COLOR_MODE__0 0x0
  866. #define BV_PXP_ALPHA_B_CTRL_S1_COLOR_MODE__1 0x1
  867. #define BM_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE 0x00001000
  868. #define BF_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE(v) \
  869. (((v) << 12) & BM_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE)
  870. #define BV_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE__0 0x0
  871. #define BV_PXP_ALPHA_B_CTRL_S1_ALPHA_MODE__1 0x1
  872. #define BP_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE 10
  873. #define BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE 0x00000C00
  874. #define BF_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE(v) \
  875. (((v) << 10) & BM_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE)
  876. #define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__0 0x0
  877. #define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__1 0x1
  878. #define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__2 0x2
  879. #define BV_PXP_ALPHA_B_CTRL_S1_GLOBAL_ALPHA_MODE__3 0x3
  880. #define BP_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE 8
  881. #define BM_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE 0x00000300
  882. #define BF_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE(v) \
  883. (((v) << 8) & BM_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE)
  884. #define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__0 0x0
  885. #define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__1 0x1
  886. #define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__2 0x2
  887. #define BV_PXP_ALPHA_B_CTRL_S1_S0_FACTOR_MODE__3 0x3
  888. #define BM_PXP_ALPHA_B_CTRL_RSVD1 0x00000080
  889. #define BF_PXP_ALPHA_B_CTRL_RSVD1(v) \
  890. (((v) << 7) & BM_PXP_ALPHA_B_CTRL_RSVD1)
  891. #define BM_PXP_ALPHA_B_CTRL_S0_COLOR_MODE 0x00000040
  892. #define BF_PXP_ALPHA_B_CTRL_S0_COLOR_MODE(v) \
  893. (((v) << 6) & BM_PXP_ALPHA_B_CTRL_S0_COLOR_MODE)
  894. #define BV_PXP_ALPHA_B_CTRL_S0_COLOR_MODE__0 0x0
  895. #define BV_PXP_ALPHA_B_CTRL_S0_COLOR_MODE__1 0x1
  896. #define BM_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE 0x00000020
  897. #define BF_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE(v) \
  898. (((v) << 5) & BM_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE)
  899. #define BV_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE__0 0x0
  900. #define BV_PXP_ALPHA_B_CTRL_S0_ALPHA_MODE__1 0x1
  901. #define BP_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE 3
  902. #define BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE 0x00000018
  903. #define BF_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE(v) \
  904. (((v) << 3) & BM_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE)
  905. #define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__0 0x0
  906. #define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__1 0x1
  907. #define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__2 0x2
  908. #define BV_PXP_ALPHA_B_CTRL_S0_GLOBAL_ALPHA_MODE__3 0x3
  909. #define BP_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE 1
  910. #define BM_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE 0x00000006
  911. #define BF_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE(v) \
  912. (((v) << 1) & BM_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE)
  913. #define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__0 0x0
  914. #define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__1 0x1
  915. #define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__2 0x2
  916. #define BV_PXP_ALPHA_B_CTRL_S0_S1_FACTOR_MODE__3 0x3
  917. #define BM_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE 0x00000001
  918. #define BF_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE(v) \
  919. (((v) << 0) & BM_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE)
  920. #define BV_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE__0 0x0
  921. #define BV_PXP_ALPHA_B_CTRL_POTER_DUFF_ENABLE__1 0x1
  922. #define HW_PXP_ALPHA_B_CTRL_1 (0x000002b0)
  923. #define BP_PXP_ALPHA_B_CTRL_1_RSVD0 8
  924. #define BM_PXP_ALPHA_B_CTRL_1_RSVD0 0xFFFFFF00
  925. #define BF_PXP_ALPHA_B_CTRL_1_RSVD0(v) \
  926. (((v) << 8) & BM_PXP_ALPHA_B_CTRL_1_RSVD0)
  927. #define BP_PXP_ALPHA_B_CTRL_1_ROP 4
  928. #define BM_PXP_ALPHA_B_CTRL_1_ROP 0x000000F0
  929. #define BF_PXP_ALPHA_B_CTRL_1_ROP(v) \
  930. (((v) << 4) & BM_PXP_ALPHA_B_CTRL_1_ROP)
  931. #define BV_PXP_ALPHA_B_CTRL_1_ROP__MASKAS 0x0
  932. #define BV_PXP_ALPHA_B_CTRL_1_ROP__MASKNOTAS 0x1
  933. #define BV_PXP_ALPHA_B_CTRL_1_ROP__MASKASNOT 0x2
  934. #define BV_PXP_ALPHA_B_CTRL_1_ROP__MERGEAS 0x3
  935. #define BV_PXP_ALPHA_B_CTRL_1_ROP__MERGENOTAS 0x4
  936. #define BV_PXP_ALPHA_B_CTRL_1_ROP__MERGEASNOT 0x5
  937. #define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTCOPYAS 0x6
  938. #define BV_PXP_ALPHA_B_CTRL_1_ROP__NOT 0x7
  939. #define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTMASKAS 0x8
  940. #define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTMERGEAS 0x9
  941. #define BV_PXP_ALPHA_B_CTRL_1_ROP__XORAS 0xA
  942. #define BV_PXP_ALPHA_B_CTRL_1_ROP__NOTXORAS 0xB
  943. #define BP_PXP_ALPHA_B_CTRL_1_RSVD1 2
  944. #define BM_PXP_ALPHA_B_CTRL_1_RSVD1 0x0000000C
  945. #define BF_PXP_ALPHA_B_CTRL_1_RSVD1(v) \
  946. (((v) << 2) & BM_PXP_ALPHA_B_CTRL_1_RSVD1)
  947. #define BM_PXP_ALPHA_B_CTRL_1_OL_CLRKEY_ENABLE 0x00000002
  948. #define BF_PXP_ALPHA_B_CTRL_1_OL_CLRKEY_ENABLE(v) \
  949. (((v) << 1) & BM_PXP_ALPHA_B_CTRL_1_OL_CLRKEY_ENABLE)
  950. #define BM_PXP_ALPHA_B_CTRL_1_ROP_ENABLE 0x00000001
  951. #define BF_PXP_ALPHA_B_CTRL_1_ROP_ENABLE(v) \
  952. (((v) << 0) & BM_PXP_ALPHA_B_CTRL_1_ROP_ENABLE)
  953. #define HW_PXP_PS_BACKGROUND_1 (0x000002c0)
  954. #define BP_PXP_PS_BACKGROUND_1_RSVD 24
  955. #define BM_PXP_PS_BACKGROUND_1_RSVD 0xFF000000
  956. #define BF_PXP_PS_BACKGROUND_1_RSVD(v) \
  957. (((v) << 24) & BM_PXP_PS_BACKGROUND_1_RSVD)
  958. #define BP_PXP_PS_BACKGROUND_1_COLOR 0
  959. #define BM_PXP_PS_BACKGROUND_1_COLOR 0x00FFFFFF
  960. #define BF_PXP_PS_BACKGROUND_1_COLOR(v) \
  961. (((v) << 0) & BM_PXP_PS_BACKGROUND_1_COLOR)
  962. #define HW_PXP_PS_CLRKEYLOW_1 (0x000002d0)
  963. #define BP_PXP_PS_CLRKEYLOW_1_RSVD1 24
  964. #define BM_PXP_PS_CLRKEYLOW_1_RSVD1 0xFF000000
  965. #define BF_PXP_PS_CLRKEYLOW_1_RSVD1(v) \
  966. (((v) << 24) & BM_PXP_PS_CLRKEYLOW_1_RSVD1)
  967. #define BP_PXP_PS_CLRKEYLOW_1_PIXEL 0
  968. #define BM_PXP_PS_CLRKEYLOW_1_PIXEL 0x00FFFFFF
  969. #define BF_PXP_PS_CLRKEYLOW_1_PIXEL(v) \
  970. (((v) << 0) & BM_PXP_PS_CLRKEYLOW_1_PIXEL)
  971. #define HW_PXP_PS_CLRKEYHIGH_1 (0x000002e0)
  972. #define BP_PXP_PS_CLRKEYHIGH_1_RSVD1 24
  973. #define BM_PXP_PS_CLRKEYHIGH_1_RSVD1 0xFF000000
  974. #define BF_PXP_PS_CLRKEYHIGH_1_RSVD1(v) \
  975. (((v) << 24) & BM_PXP_PS_CLRKEYHIGH_1_RSVD1)
  976. #define BP_PXP_PS_CLRKEYHIGH_1_PIXEL 0
  977. #define BM_PXP_PS_CLRKEYHIGH_1_PIXEL 0x00FFFFFF
  978. #define BF_PXP_PS_CLRKEYHIGH_1_PIXEL(v) \
  979. (((v) << 0) & BM_PXP_PS_CLRKEYHIGH_1_PIXEL)
  980. #define HW_PXP_AS_CLRKEYLOW_1 (0x000002f0)
  981. #define BP_PXP_AS_CLRKEYLOW_1_RSVD1 24
  982. #define BM_PXP_AS_CLRKEYLOW_1_RSVD1 0xFF000000
  983. #define BF_PXP_AS_CLRKEYLOW_1_RSVD1(v) \
  984. (((v) << 24) & BM_PXP_AS_CLRKEYLOW_1_RSVD1)
  985. #define BP_PXP_AS_CLRKEYLOW_1_PIXEL 0
  986. #define BM_PXP_AS_CLRKEYLOW_1_PIXEL 0x00FFFFFF
  987. #define BF_PXP_AS_CLRKEYLOW_1_PIXEL(v) \
  988. (((v) << 0) & BM_PXP_AS_CLRKEYLOW_1_PIXEL)
  989. #define HW_PXP_AS_CLRKEYHIGH_1 (0x00000300)
  990. #define BP_PXP_AS_CLRKEYHIGH_1_RSVD1 24
  991. #define BM_PXP_AS_CLRKEYHIGH_1_RSVD1 0xFF000000
  992. #define BF_PXP_AS_CLRKEYHIGH_1_RSVD1(v) \
  993. (((v) << 24) & BM_PXP_AS_CLRKEYHIGH_1_RSVD1)
  994. #define BP_PXP_AS_CLRKEYHIGH_1_PIXEL 0
  995. #define BM_PXP_AS_CLRKEYHIGH_1_PIXEL 0x00FFFFFF
  996. #define BF_PXP_AS_CLRKEYHIGH_1_PIXEL(v) \
  997. (((v) << 0) & BM_PXP_AS_CLRKEYHIGH_1_PIXEL)
  998. #define HW_PXP_CTRL2 (0x00000310)
  999. #define HW_PXP_CTRL2_SET (0x00000314)
  1000. #define HW_PXP_CTRL2_CLR (0x00000318)
  1001. #define HW_PXP_CTRL2_TOG (0x0000031c)
  1002. #define BP_PXP_CTRL2_RSVD3 28
  1003. #define BM_PXP_CTRL2_RSVD3 0xF0000000
  1004. #define BF_PXP_CTRL2_RSVD3(v) \
  1005. (((v) << 28) & BM_PXP_CTRL2_RSVD3)
  1006. #define BM_PXP_CTRL2_ENABLE_ROTATE1 0x08000000
  1007. #define BF_PXP_CTRL2_ENABLE_ROTATE1(v) \
  1008. (((v) << 27) & BM_PXP_CTRL2_ENABLE_ROTATE1)
  1009. #define BM_PXP_CTRL2_ENABLE_ROTATE0 0x04000000
  1010. #define BF_PXP_CTRL2_ENABLE_ROTATE0(v) \
  1011. (((v) << 26) & BM_PXP_CTRL2_ENABLE_ROTATE0)
  1012. #define BM_PXP_CTRL2_ENABLE_LUT 0x02000000
  1013. #define BF_PXP_CTRL2_ENABLE_LUT(v) \
  1014. (((v) << 25) & BM_PXP_CTRL2_ENABLE_LUT)
  1015. #define BM_PXP_CTRL2_ENABLE_CSC2 0x01000000
  1016. #define BF_PXP_CTRL2_ENABLE_CSC2(v) \
  1017. (((v) << 24) & BM_PXP_CTRL2_ENABLE_CSC2)
  1018. #define BM_PXP_CTRL2_BLOCK_SIZE 0x00800000
  1019. #define BF_PXP_CTRL2_BLOCK_SIZE(v) \
  1020. (((v) << 23) & BM_PXP_CTRL2_BLOCK_SIZE)
  1021. #define BV_PXP_CTRL2_BLOCK_SIZE__8X8 0x0
  1022. #define BV_PXP_CTRL2_BLOCK_SIZE__16X16 0x1
  1023. #define BM_PXP_CTRL2_RSVD2 0x00400000
  1024. #define BF_PXP_CTRL2_RSVD2(v) \
  1025. (((v) << 22) & BM_PXP_CTRL2_RSVD2)
  1026. #define BM_PXP_CTRL2_ENABLE_ALPHA_B 0x00200000
  1027. #define BF_PXP_CTRL2_ENABLE_ALPHA_B(v) \
  1028. (((v) << 21) & BM_PXP_CTRL2_ENABLE_ALPHA_B)
  1029. #define BM_PXP_CTRL2_ENABLE_INPUT_FETCH_STORE 0x00100000
  1030. #define BF_PXP_CTRL2_ENABLE_INPUT_FETCH_STORE(v) \
  1031. (((v) << 20) & BM_PXP_CTRL2_ENABLE_INPUT_FETCH_STORE)
  1032. #define BM_PXP_CTRL2_ENABLE_WFE_B 0x00080000
  1033. #define BF_PXP_CTRL2_ENABLE_WFE_B(v) \
  1034. (((v) << 19) & BM_PXP_CTRL2_ENABLE_WFE_B)
  1035. #define BM_PXP_CTRL2_ENABLE_WFE_A 0x00040000
  1036. #define BF_PXP_CTRL2_ENABLE_WFE_A(v) \
  1037. (((v) << 18) & BM_PXP_CTRL2_ENABLE_WFE_A)
  1038. #define BM_PXP_CTRL2_ENABLE_DITHER 0x00020000
  1039. #define BF_PXP_CTRL2_ENABLE_DITHER(v) \
  1040. (((v) << 17) & BM_PXP_CTRL2_ENABLE_DITHER)
  1041. #define BM_PXP_CTRL2_RSVD1 0x00010000
  1042. #define BF_PXP_CTRL2_RSVD1(v) \
  1043. (((v) << 16) & BM_PXP_CTRL2_RSVD1)
  1044. #define BM_PXP_CTRL2_VFLIP1 0x00008000
  1045. #define BF_PXP_CTRL2_VFLIP1(v) \
  1046. (((v) << 15) & BM_PXP_CTRL2_VFLIP1)
  1047. #define BM_PXP_CTRL2_HFLIP1 0x00004000
  1048. #define BF_PXP_CTRL2_HFLIP1(v) \
  1049. (((v) << 14) & BM_PXP_CTRL2_HFLIP1)
  1050. #define BP_PXP_CTRL2_ROTATE1 12
  1051. #define BM_PXP_CTRL2_ROTATE1 0x00003000
  1052. #define BF_PXP_CTRL2_ROTATE1(v) \
  1053. (((v) << 12) & BM_PXP_CTRL2_ROTATE1)
  1054. #define BV_PXP_CTRL2_ROTATE1__ROT_0 0x0
  1055. #define BV_PXP_CTRL2_ROTATE1__ROT_90 0x1
  1056. #define BV_PXP_CTRL2_ROTATE1__ROT_180 0x2
  1057. #define BV_PXP_CTRL2_ROTATE1__ROT_270 0x3
  1058. #define BM_PXP_CTRL2_VFLIP0 0x00000800
  1059. #define BF_PXP_CTRL2_VFLIP0(v) \
  1060. (((v) << 11) & BM_PXP_CTRL2_VFLIP0)
  1061. #define BM_PXP_CTRL2_HFLIP0 0x00000400
  1062. #define BF_PXP_CTRL2_HFLIP0(v) \
  1063. (((v) << 10) & BM_PXP_CTRL2_HFLIP0)
  1064. #define BP_PXP_CTRL2_ROTATE0 8
  1065. #define BM_PXP_CTRL2_ROTATE0 0x00000300
  1066. #define BF_PXP_CTRL2_ROTATE0(v) \
  1067. (((v) << 8) & BM_PXP_CTRL2_ROTATE0)
  1068. #define BV_PXP_CTRL2_ROTATE0__ROT_0 0x0
  1069. #define BV_PXP_CTRL2_ROTATE0__ROT_90 0x1
  1070. #define BV_PXP_CTRL2_ROTATE0__ROT_180 0x2
  1071. #define BV_PXP_CTRL2_ROTATE0__ROT_270 0x3
  1072. #define BP_PXP_CTRL2_RSVD0 1
  1073. #define BM_PXP_CTRL2_RSVD0 0x000000FE
  1074. #define BF_PXP_CTRL2_RSVD0(v) \
  1075. (((v) << 1) & BM_PXP_CTRL2_RSVD0)
  1076. #define BM_PXP_CTRL2_ENABLE 0x00000001
  1077. #define BF_PXP_CTRL2_ENABLE(v) \
  1078. (((v) << 0) & BM_PXP_CTRL2_ENABLE)
  1079. #define HW_PXP_POWER_REG0 (0x00000320)
  1080. #define BP_PXP_POWER_REG0_CTRL 12
  1081. #define BM_PXP_POWER_REG0_CTRL 0xFFFFF000
  1082. #define BF_PXP_POWER_REG0_CTRL(v) \
  1083. (((v) << 12) & BM_PXP_POWER_REG0_CTRL)
  1084. #define BP_PXP_POWER_REG0_ROT0_MEM_LP_STATE 9
  1085. #define BM_PXP_POWER_REG0_ROT0_MEM_LP_STATE 0x00000E00
  1086. #define BF_PXP_POWER_REG0_ROT0_MEM_LP_STATE(v) \
  1087. (((v) << 9) & BM_PXP_POWER_REG0_ROT0_MEM_LP_STATE)
  1088. #define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__NONE 0x0
  1089. #define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__LS 0x1
  1090. #define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__DS 0x2
  1091. #define BV_PXP_POWER_REG0_ROT0_MEM_LP_STATE__SD 0x4
  1092. #define BP_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN 6
  1093. #define BM_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN 0x000001C0
  1094. #define BF_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN(v) \
  1095. (((v) << 6) & BM_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN)
  1096. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__NONE 0x0
  1097. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__LS 0x1
  1098. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__DS 0x2
  1099. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY1_BANKN__SD 0x4
  1100. #define BP_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN 3
  1101. #define BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN 0x00000038
  1102. #define BF_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN(v) \
  1103. (((v) << 3) & BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN)
  1104. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__NONE 0x0
  1105. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__LS 0x1
  1106. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__DS 0x2
  1107. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANKN__SD 0x4
  1108. #define BP_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0 0
  1109. #define BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0 0x00000007
  1110. #define BF_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0(v) \
  1111. (((v) << 0) & BM_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0)
  1112. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__NONE 0x0
  1113. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__LS 0x1
  1114. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__DS 0x2
  1115. #define BV_PXP_POWER_REG0_LUT_LP_STATE_WAY0_BANK0__SD 0x4
  1116. #define HW_PXP_POWER_REG1 (0x00000330)
  1117. #define BP_PXP_POWER_REG1_RSVD0 24
  1118. #define BM_PXP_POWER_REG1_RSVD0 0xFF000000
  1119. #define BF_PXP_POWER_REG1_RSVD0(v) \
  1120. (((v) << 24) & BM_PXP_POWER_REG1_RSVD0)
  1121. #define BP_PXP_POWER_REG1_ALU_B_MEM_LP_STATE 21
  1122. #define BM_PXP_POWER_REG1_ALU_B_MEM_LP_STATE 0x00E00000
  1123. #define BF_PXP_POWER_REG1_ALU_B_MEM_LP_STATE(v) \
  1124. (((v) << 21) & BM_PXP_POWER_REG1_ALU_B_MEM_LP_STATE)
  1125. #define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__NONE 0x0
  1126. #define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__LS 0x1
  1127. #define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__DS 0x2
  1128. #define BV_PXP_POWER_REG1_ALU_B_MEM_LP_STATE__SD 0x4
  1129. #define BP_PXP_POWER_REG1_ALU_A_MEM_LP_STATE 18
  1130. #define BM_PXP_POWER_REG1_ALU_A_MEM_LP_STATE 0x001C0000
  1131. #define BF_PXP_POWER_REG1_ALU_A_MEM_LP_STATE(v) \
  1132. (((v) << 18) & BM_PXP_POWER_REG1_ALU_A_MEM_LP_STATE)
  1133. #define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__NONE 0x0
  1134. #define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__LS 0x1
  1135. #define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__DS 0x2
  1136. #define BV_PXP_POWER_REG1_ALU_A_MEM_LP_STATE__SD 0x4
  1137. #define BP_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE 15
  1138. #define BM_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE 0x00038000
  1139. #define BF_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE(v) \
  1140. (((v) << 15) & BM_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE)
  1141. #define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__NONE 0x0
  1142. #define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__LS 0x1
  1143. #define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__DS 0x2
  1144. #define BV_PXP_POWER_REG1_DITH2_LUT_MEM_LP_STATE__SD 0x4
  1145. #define BP_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE 12
  1146. #define BM_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE 0x00007000
  1147. #define BF_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE(v) \
  1148. (((v) << 12) & BM_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE)
  1149. #define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__NONE 0x0
  1150. #define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__LS 0x1
  1151. #define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__DS 0x2
  1152. #define BV_PXP_POWER_REG1_DITH1_LUT_MEM_LP_STATE__SD 0x4
  1153. #define BP_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE 9
  1154. #define BM_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE 0x00000E00
  1155. #define BF_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE(v) \
  1156. (((v) << 9) & BM_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE)
  1157. #define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__NONE 0x0
  1158. #define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__LS 0x1
  1159. #define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__DS 0x2
  1160. #define BV_PXP_POWER_REG1_DITH0_ERR1_MEM_LP_STATE__SD 0x4
  1161. #define BP_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE 6
  1162. #define BM_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE 0x000001C0
  1163. #define BF_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE(v) \
  1164. (((v) << 6) & BM_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE)
  1165. #define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__NONE 0x0
  1166. #define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__LS 0x1
  1167. #define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__DS 0x2
  1168. #define BV_PXP_POWER_REG1_DITH0_ERR0_MEM_LP_STATE__SD 0x4
  1169. #define BP_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE 3
  1170. #define BM_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE 0x00000038
  1171. #define BF_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE(v) \
  1172. (((v) << 3) & BM_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE)
  1173. #define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__NONE 0x0
  1174. #define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__LS 0x1
  1175. #define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__DS 0x2
  1176. #define BV_PXP_POWER_REG1_DITH0_LUT_MEM_LP_STATE__SD 0x4
  1177. #define BP_PXP_POWER_REG1_ROT1_MEM_LP_STATE 0
  1178. #define BM_PXP_POWER_REG1_ROT1_MEM_LP_STATE 0x00000007
  1179. #define BF_PXP_POWER_REG1_ROT1_MEM_LP_STATE(v) \
  1180. (((v) << 0) & BM_PXP_POWER_REG1_ROT1_MEM_LP_STATE)
  1181. #define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__NONE 0x0
  1182. #define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__LS 0x1
  1183. #define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__DS 0x2
  1184. #define BV_PXP_POWER_REG1_ROT1_MEM_LP_STATE__SD 0x4
  1185. #define HW_PXP_DATA_PATH_CTRL0 (0x00000340)
  1186. #define HW_PXP_DATA_PATH_CTRL0_SET (0x00000344)
  1187. #define HW_PXP_DATA_PATH_CTRL0_CLR (0x00000348)
  1188. #define HW_PXP_DATA_PATH_CTRL0_TOG (0x0000034c)
  1189. #define BP_PXP_DATA_PATH_CTRL0_MUX15_SEL 30
  1190. #define BM_PXP_DATA_PATH_CTRL0_MUX15_SEL 0xC0000000
  1191. #define BF_PXP_DATA_PATH_CTRL0_MUX15_SEL(v) \
  1192. (((v) << 30) & BM_PXP_DATA_PATH_CTRL0_MUX15_SEL)
  1193. #define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__0 0x0
  1194. #define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__1 0x1
  1195. #define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__2 0x2
  1196. #define BV_PXP_DATA_PATH_CTRL0_MUX15_SEL__3 0x3
  1197. #define BP_PXP_DATA_PATH_CTRL0_MUX14_SEL 28
  1198. #define BM_PXP_DATA_PATH_CTRL0_MUX14_SEL 0x30000000
  1199. #define BF_PXP_DATA_PATH_CTRL0_MUX14_SEL(v) \
  1200. (((v) << 28) & BM_PXP_DATA_PATH_CTRL0_MUX14_SEL)
  1201. #define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__0 0x0
  1202. #define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__1 0x1
  1203. #define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__2 0x2
  1204. #define BV_PXP_DATA_PATH_CTRL0_MUX14_SEL__3 0x3
  1205. #define BP_PXP_DATA_PATH_CTRL0_MUX13_SEL 26
  1206. #define BM_PXP_DATA_PATH_CTRL0_MUX13_SEL 0x0C000000
  1207. #define BF_PXP_DATA_PATH_CTRL0_MUX13_SEL(v) \
  1208. (((v) << 26) & BM_PXP_DATA_PATH_CTRL0_MUX13_SEL)
  1209. #define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__0 0x0
  1210. #define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__1 0x1
  1211. #define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__2 0x2
  1212. #define BV_PXP_DATA_PATH_CTRL0_MUX13_SEL__3 0x3
  1213. #define BP_PXP_DATA_PATH_CTRL0_MUX12_SEL 24
  1214. #define BM_PXP_DATA_PATH_CTRL0_MUX12_SEL 0x03000000
  1215. #define BF_PXP_DATA_PATH_CTRL0_MUX12_SEL(v) \
  1216. (((v) << 24) & BM_PXP_DATA_PATH_CTRL0_MUX12_SEL)
  1217. #define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__0 0x0
  1218. #define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__1 0x1
  1219. #define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__2 0x2
  1220. #define BV_PXP_DATA_PATH_CTRL0_MUX12_SEL__3 0x3
  1221. #define BP_PXP_DATA_PATH_CTRL0_MUX11_SEL 22
  1222. #define BM_PXP_DATA_PATH_CTRL0_MUX11_SEL 0x00C00000
  1223. #define BF_PXP_DATA_PATH_CTRL0_MUX11_SEL(v) \
  1224. (((v) << 22) & BM_PXP_DATA_PATH_CTRL0_MUX11_SEL)
  1225. #define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__0 0x0
  1226. #define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__1 0x1
  1227. #define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__2 0x2
  1228. #define BV_PXP_DATA_PATH_CTRL0_MUX11_SEL__3 0x3
  1229. #define BP_PXP_DATA_PATH_CTRL0_MUX10_SEL 20
  1230. #define BM_PXP_DATA_PATH_CTRL0_MUX10_SEL 0x00300000
  1231. #define BF_PXP_DATA_PATH_CTRL0_MUX10_SEL(v) \
  1232. (((v) << 20) & BM_PXP_DATA_PATH_CTRL0_MUX10_SEL)
  1233. #define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__0 0x0
  1234. #define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__1 0x1
  1235. #define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__2 0x2
  1236. #define BV_PXP_DATA_PATH_CTRL0_MUX10_SEL__3 0x3
  1237. #define BP_PXP_DATA_PATH_CTRL0_MUX9_SEL 18
  1238. #define BM_PXP_DATA_PATH_CTRL0_MUX9_SEL 0x000C0000
  1239. #define BF_PXP_DATA_PATH_CTRL0_MUX9_SEL(v) \
  1240. (((v) << 18) & BM_PXP_DATA_PATH_CTRL0_MUX9_SEL)
  1241. #define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__0 0x0
  1242. #define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__1 0x1
  1243. #define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__2 0x2
  1244. #define BV_PXP_DATA_PATH_CTRL0_MUX9_SEL__3 0x3
  1245. #define BP_PXP_DATA_PATH_CTRL0_MUX8_SEL 16
  1246. #define BM_PXP_DATA_PATH_CTRL0_MUX8_SEL 0x00030000
  1247. #define BF_PXP_DATA_PATH_CTRL0_MUX8_SEL(v) \
  1248. (((v) << 16) & BM_PXP_DATA_PATH_CTRL0_MUX8_SEL)
  1249. #define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__0 0x0
  1250. #define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__1 0x1
  1251. #define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__2 0x2
  1252. #define BV_PXP_DATA_PATH_CTRL0_MUX8_SEL__3 0x3
  1253. #define BP_PXP_DATA_PATH_CTRL0_MUX7_SEL 14
  1254. #define BM_PXP_DATA_PATH_CTRL0_MUX7_SEL 0x0000C000
  1255. #define BF_PXP_DATA_PATH_CTRL0_MUX7_SEL(v) \
  1256. (((v) << 14) & BM_PXP_DATA_PATH_CTRL0_MUX7_SEL)
  1257. #define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__0 0x0
  1258. #define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__1 0x1
  1259. #define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__2 0x2
  1260. #define BV_PXP_DATA_PATH_CTRL0_MUX7_SEL__3 0x3
  1261. #define BP_PXP_DATA_PATH_CTRL0_MUX6_SEL 12
  1262. #define BM_PXP_DATA_PATH_CTRL0_MUX6_SEL 0x00003000
  1263. #define BF_PXP_DATA_PATH_CTRL0_MUX6_SEL(v) \
  1264. (((v) << 12) & BM_PXP_DATA_PATH_CTRL0_MUX6_SEL)
  1265. #define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__0 0x0
  1266. #define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__1 0x1
  1267. #define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__2 0x2
  1268. #define BV_PXP_DATA_PATH_CTRL0_MUX6_SEL__3 0x3
  1269. #define BP_PXP_DATA_PATH_CTRL0_MUX5_SEL 10
  1270. #define BM_PXP_DATA_PATH_CTRL0_MUX5_SEL 0x00000C00
  1271. #define BF_PXP_DATA_PATH_CTRL0_MUX5_SEL(v) \
  1272. (((v) << 10) & BM_PXP_DATA_PATH_CTRL0_MUX5_SEL)
  1273. #define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__0 0x0
  1274. #define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__1 0x1
  1275. #define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__2 0x2
  1276. #define BV_PXP_DATA_PATH_CTRL0_MUX5_SEL__3 0x3
  1277. #define BP_PXP_DATA_PATH_CTRL0_MUX4_SEL 8
  1278. #define BM_PXP_DATA_PATH_CTRL0_MUX4_SEL 0x00000300
  1279. #define BF_PXP_DATA_PATH_CTRL0_MUX4_SEL(v) \
  1280. (((v) << 8) & BM_PXP_DATA_PATH_CTRL0_MUX4_SEL)
  1281. #define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__0 0x0
  1282. #define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__1 0x1
  1283. #define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__2 0x2
  1284. #define BV_PXP_DATA_PATH_CTRL0_MUX4_SEL__3 0x3
  1285. #define BP_PXP_DATA_PATH_CTRL0_MUX3_SEL 6
  1286. #define BM_PXP_DATA_PATH_CTRL0_MUX3_SEL 0x000000C0
  1287. #define BF_PXP_DATA_PATH_CTRL0_MUX3_SEL(v) \
  1288. (((v) << 6) & BM_PXP_DATA_PATH_CTRL0_MUX3_SEL)
  1289. #define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__0 0x0
  1290. #define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__1 0x1
  1291. #define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__2 0x2
  1292. #define BV_PXP_DATA_PATH_CTRL0_MUX3_SEL__3 0x3
  1293. #define BP_PXP_DATA_PATH_CTRL0_MUX2_SEL 4
  1294. #define BM_PXP_DATA_PATH_CTRL0_MUX2_SEL 0x00000030
  1295. #define BF_PXP_DATA_PATH_CTRL0_MUX2_SEL(v) \
  1296. (((v) << 4) & BM_PXP_DATA_PATH_CTRL0_MUX2_SEL)
  1297. #define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__0 0x0
  1298. #define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__1 0x1
  1299. #define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__2 0x2
  1300. #define BV_PXP_DATA_PATH_CTRL0_MUX2_SEL__3 0x3
  1301. #define BP_PXP_DATA_PATH_CTRL0_MUX1_SEL 2
  1302. #define BM_PXP_DATA_PATH_CTRL0_MUX1_SEL 0x0000000C
  1303. #define BF_PXP_DATA_PATH_CTRL0_MUX1_SEL(v) \
  1304. (((v) << 2) & BM_PXP_DATA_PATH_CTRL0_MUX1_SEL)
  1305. #define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__0 0x0
  1306. #define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__1 0x1
  1307. #define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__2 0x2
  1308. #define BV_PXP_DATA_PATH_CTRL0_MUX1_SEL__3 0x3
  1309. #define BP_PXP_DATA_PATH_CTRL0_MUX0_SEL 0
  1310. #define BM_PXP_DATA_PATH_CTRL0_MUX0_SEL 0x00000003
  1311. #define BF_PXP_DATA_PATH_CTRL0_MUX0_SEL(v) \
  1312. (((v) << 0) & BM_PXP_DATA_PATH_CTRL0_MUX0_SEL)
  1313. #define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__0 0x0
  1314. #define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__1 0x1
  1315. #define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__2 0x2
  1316. #define BV_PXP_DATA_PATH_CTRL0_MUX0_SEL__3 0x3
  1317. #define HW_PXP_DATA_PATH_CTRL1 (0x00000350)
  1318. #define HW_PXP_DATA_PATH_CTRL1_SET (0x00000354)
  1319. #define HW_PXP_DATA_PATH_CTRL1_CLR (0x00000358)
  1320. #define HW_PXP_DATA_PATH_CTRL1_TOG (0x0000035c)
  1321. #define BP_PXP_DATA_PATH_CTRL1_RSVD0 4
  1322. #define BM_PXP_DATA_PATH_CTRL1_RSVD0 0xFFFFFFF0
  1323. #define BF_PXP_DATA_PATH_CTRL1_RSVD0(v) \
  1324. (((v) << 4) & BM_PXP_DATA_PATH_CTRL1_RSVD0)
  1325. #define BP_PXP_DATA_PATH_CTRL1_MUX17_SEL 2
  1326. #define BM_PXP_DATA_PATH_CTRL1_MUX17_SEL 0x0000000C
  1327. #define BF_PXP_DATA_PATH_CTRL1_MUX17_SEL(v) \
  1328. (((v) << 2) & BM_PXP_DATA_PATH_CTRL1_MUX17_SEL)
  1329. #define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__0 0x0
  1330. #define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__1 0x1
  1331. #define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__2 0x2
  1332. #define BV_PXP_DATA_PATH_CTRL1_MUX17_SEL__3 0x3
  1333. #define BP_PXP_DATA_PATH_CTRL1_MUX16_SEL 0
  1334. #define BM_PXP_DATA_PATH_CTRL1_MUX16_SEL 0x00000003
  1335. #define BF_PXP_DATA_PATH_CTRL1_MUX16_SEL(v) \
  1336. (((v) << 0) & BM_PXP_DATA_PATH_CTRL1_MUX16_SEL)
  1337. #define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__0 0x0
  1338. #define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__1 0x1
  1339. #define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__2 0x2
  1340. #define BV_PXP_DATA_PATH_CTRL1_MUX16_SEL__3 0x3
  1341. #define HW_PXP_INIT_MEM_CTRL (0x00000360)
  1342. #define HW_PXP_INIT_MEM_CTRL_SET (0x00000364)
  1343. #define HW_PXP_INIT_MEM_CTRL_CLR (0x00000368)
  1344. #define HW_PXP_INIT_MEM_CTRL_TOG (0x0000036c)
  1345. #define BM_PXP_INIT_MEM_CTRL_START 0x80000000
  1346. #define BF_PXP_INIT_MEM_CTRL_START(v) \
  1347. (((v) << 31) & BM_PXP_INIT_MEM_CTRL_START)
  1348. #define BP_PXP_INIT_MEM_CTRL_SELECT 27
  1349. #define BM_PXP_INIT_MEM_CTRL_SELECT 0x78000000
  1350. #define BF_PXP_INIT_MEM_CTRL_SELECT(v) \
  1351. (((v) << 27) & BM_PXP_INIT_MEM_CTRL_SELECT)
  1352. #define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER0_LUT 0x0
  1353. #define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER0_ERR0 0x1
  1354. #define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER0_ERR1 0x2
  1355. #define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER1_LUT 0x3
  1356. #define BV_PXP_INIT_MEM_CTRL_SELECT__DITHER2_LUT 0x4
  1357. #define BV_PXP_INIT_MEM_CTRL_SELECT__ALU_A 0x5
  1358. #define BV_PXP_INIT_MEM_CTRL_SELECT__ALU_B 0x6
  1359. #define BV_PXP_INIT_MEM_CTRL_SELECT__WFE_A_FETCH 0x7
  1360. #define BV_PXP_INIT_MEM_CTRL_SELECT__WFE_B_FETCH 0x8
  1361. #define BV_PXP_INIT_MEM_CTRL_SELECT__RESERVED 0x15
  1362. #define BP_PXP_INIT_MEM_CTRL_RSVD0 16
  1363. #define BM_PXP_INIT_MEM_CTRL_RSVD0 0x07FF0000
  1364. #define BF_PXP_INIT_MEM_CTRL_RSVD0(v) \
  1365. (((v) << 16) & BM_PXP_INIT_MEM_CTRL_RSVD0)
  1366. #define BP_PXP_INIT_MEM_CTRL_ADDR 0
  1367. #define BM_PXP_INIT_MEM_CTRL_ADDR 0x0000FFFF
  1368. #define BF_PXP_INIT_MEM_CTRL_ADDR(v) \
  1369. (((v) << 0) & BM_PXP_INIT_MEM_CTRL_ADDR)
  1370. #define HW_PXP_INIT_MEM_DATA (0x00000370)
  1371. #define BP_PXP_INIT_MEM_DATA_DATA 0
  1372. #define BM_PXP_INIT_MEM_DATA_DATA 0xFFFFFFFF
  1373. #define BF_PXP_INIT_MEM_DATA_DATA(v) (v)
  1374. #define HW_PXP_INIT_MEM_DATA_HIGH (0x00000380)
  1375. #define BP_PXP_INIT_MEM_DATA_HIGH_DATA 0
  1376. #define BM_PXP_INIT_MEM_DATA_HIGH_DATA 0xFFFFFFFF
  1377. #define BF_PXP_INIT_MEM_DATA_HIGH_DATA(v) (v)
  1378. #define HW_PXP_IRQ_MASK (0x00000390)
  1379. #define HW_PXP_IRQ_MASK_SET (0x00000394)
  1380. #define HW_PXP_IRQ_MASK_CLR (0x00000398)
  1381. #define HW_PXP_IRQ_MASK_TOG (0x0000039c)
  1382. #define BM_PXP_IRQ_MASK_COMPRESS_DONE_IRQ_EN 0x80000000
  1383. #define BF_PXP_IRQ_MASK_COMPRESS_DONE_IRQ_EN(v) \
  1384. (((v) << 31) & BM_PXP_IRQ_MASK_COMPRESS_DONE_IRQ_EN)
  1385. #define BP_PXP_IRQ_MASK_RSVD1 16
  1386. #define BM_PXP_IRQ_MASK_RSVD1 0x7FFF0000
  1387. #define BF_PXP_IRQ_MASK_RSVD1(v) \
  1388. (((v) << 16) & BM_PXP_IRQ_MASK_RSVD1)
  1389. #define BM_PXP_IRQ_MASK_WFE_B_STORE_IRQ_EN 0x00008000
  1390. #define BF_PXP_IRQ_MASK_WFE_B_STORE_IRQ_EN(v) \
  1391. (((v) << 15) & BM_PXP_IRQ_MASK_WFE_B_STORE_IRQ_EN)
  1392. #define BM_PXP_IRQ_MASK_WFE_A_STORE_IRQ_EN 0x00004000
  1393. #define BF_PXP_IRQ_MASK_WFE_A_STORE_IRQ_EN(v) \
  1394. (((v) << 14) & BM_PXP_IRQ_MASK_WFE_A_STORE_IRQ_EN)
  1395. #define BM_PXP_IRQ_MASK_DITHER_STORE_IRQ_EN 0x00002000
  1396. #define BF_PXP_IRQ_MASK_DITHER_STORE_IRQ_EN(v) \
  1397. (((v) << 13) & BM_PXP_IRQ_MASK_DITHER_STORE_IRQ_EN)
  1398. #define BM_PXP_IRQ_MASK_FIRST_STORE_IRQ_EN 0x00001000
  1399. #define BF_PXP_IRQ_MASK_FIRST_STORE_IRQ_EN(v) \
  1400. (((v) << 12) & BM_PXP_IRQ_MASK_FIRST_STORE_IRQ_EN)
  1401. #define BM_PXP_IRQ_MASK_WFE_B_CH1_STORE_IRQ_EN 0x00000800
  1402. #define BF_PXP_IRQ_MASK_WFE_B_CH1_STORE_IRQ_EN(v) \
  1403. (((v) << 11) & BM_PXP_IRQ_MASK_WFE_B_CH1_STORE_IRQ_EN)
  1404. #define BM_PXP_IRQ_MASK_WFE_B_CH0_STORE_IRQ_EN 0x00000400
  1405. #define BF_PXP_IRQ_MASK_WFE_B_CH0_STORE_IRQ_EN(v) \
  1406. (((v) << 10) & BM_PXP_IRQ_MASK_WFE_B_CH0_STORE_IRQ_EN)
  1407. #define BM_PXP_IRQ_MASK_WFE_A_CH1_STORE_IRQ_EN 0x00000200
  1408. #define BF_PXP_IRQ_MASK_WFE_A_CH1_STORE_IRQ_EN(v) \
  1409. (((v) << 9) & BM_PXP_IRQ_MASK_WFE_A_CH1_STORE_IRQ_EN)
  1410. #define BM_PXP_IRQ_MASK_WFE_A_CH0_STORE_IRQ_EN 0x00000100
  1411. #define BF_PXP_IRQ_MASK_WFE_A_CH0_STORE_IRQ_EN(v) \
  1412. (((v) << 8) & BM_PXP_IRQ_MASK_WFE_A_CH0_STORE_IRQ_EN)
  1413. #define BM_PXP_IRQ_MASK_DITHER_CH1_STORE_IRQ_EN 0x00000080
  1414. #define BF_PXP_IRQ_MASK_DITHER_CH1_STORE_IRQ_EN(v) \
  1415. (((v) << 7) & BM_PXP_IRQ_MASK_DITHER_CH1_STORE_IRQ_EN)
  1416. #define BM_PXP_IRQ_MASK_DITHER_CH0_STORE_IRQ_EN 0x00000040
  1417. #define BF_PXP_IRQ_MASK_DITHER_CH0_STORE_IRQ_EN(v) \
  1418. (((v) << 6) & BM_PXP_IRQ_MASK_DITHER_CH0_STORE_IRQ_EN)
  1419. #define BM_PXP_IRQ_MASK_DITHER_CH1_PREFETCH_IRQ_EN 0x00000020
  1420. #define BF_PXP_IRQ_MASK_DITHER_CH1_PREFETCH_IRQ_EN(v) \
  1421. (((v) << 5) & BM_PXP_IRQ_MASK_DITHER_CH1_PREFETCH_IRQ_EN)
  1422. #define BM_PXP_IRQ_MASK_DITHER_CH0_PREFETCH_IRQ_EN 0x00000010
  1423. #define BF_PXP_IRQ_MASK_DITHER_CH0_PREFETCH_IRQ_EN(v) \
  1424. (((v) << 4) & BM_PXP_IRQ_MASK_DITHER_CH0_PREFETCH_IRQ_EN)
  1425. #define BM_PXP_IRQ_MASK_FIRST_CH1_STORE_IRQ_EN 0x00000008
  1426. #define BF_PXP_IRQ_MASK_FIRST_CH1_STORE_IRQ_EN(v) \
  1427. (((v) << 3) & BM_PXP_IRQ_MASK_FIRST_CH1_STORE_IRQ_EN)
  1428. #define BM_PXP_IRQ_MASK_FIRST_CH0_STORE_IRQ_EN 0x00000004
  1429. #define BF_PXP_IRQ_MASK_FIRST_CH0_STORE_IRQ_EN(v) \
  1430. (((v) << 2) & BM_PXP_IRQ_MASK_FIRST_CH0_STORE_IRQ_EN)
  1431. #define BM_PXP_IRQ_MASK_FIRST_CH1_PREFETCH_IRQ_EN 0x00000002
  1432. #define BF_PXP_IRQ_MASK_FIRST_CH1_PREFETCH_IRQ_EN(v) \
  1433. (((v) << 1) & BM_PXP_IRQ_MASK_FIRST_CH1_PREFETCH_IRQ_EN)
  1434. #define BM_PXP_IRQ_MASK_FIRST_CH0_PREFETCH_IRQ_EN 0x00000001
  1435. #define BF_PXP_IRQ_MASK_FIRST_CH0_PREFETCH_IRQ_EN(v) \
  1436. (((v) << 0) & BM_PXP_IRQ_MASK_FIRST_CH0_PREFETCH_IRQ_EN)
  1437. #define HW_PXP_IRQ (0x000003a0)
  1438. #define HW_PXP_IRQ_SET (0x000003a4)
  1439. #define HW_PXP_IRQ_CLR (0x000003a8)
  1440. #define HW_PXP_IRQ_TOG (0x000003ac)
  1441. #define BM_PXP_IRQ_COMPRESS_DONE_IRQ 0x80000000
  1442. #define BF_PXP_IRQ_COMPRESS_DONE_IRQ(v) \
  1443. (((v) << 31) & BM_PXP_IRQ_COMPRESS_DONE_IRQ)
  1444. #define BP_PXP_IRQ_RSVD1 16
  1445. #define BM_PXP_IRQ_RSVD1 0x7FFF0000
  1446. #define BF_PXP_IRQ_RSVD1(v) \
  1447. (((v) << 16) & BM_PXP_IRQ_RSVD1)
  1448. #define BM_PXP_IRQ_WFE_B_STORE_IRQ 0x00008000
  1449. #define BF_PXP_IRQ_WFE_B_STORE_IRQ(v) \
  1450. (((v) << 15) & BM_PXP_IRQ_WFE_B_STORE_IRQ)
  1451. #define BM_PXP_IRQ_WFE_A_STORE_IRQ 0x00004000
  1452. #define BF_PXP_IRQ_WFE_A_STORE_IRQ(v) \
  1453. (((v) << 14) & BM_PXP_IRQ_WFE_A_STORE_IRQ)
  1454. #define BM_PXP_IRQ_DITHER_STORE_IRQ 0x00002000
  1455. #define BF_PXP_IRQ_DITHER_STORE_IRQ(v) \
  1456. (((v) << 13) & BM_PXP_IRQ_DITHER_STORE_IRQ)
  1457. #define BM_PXP_IRQ_FIRST_STORE_IRQ 0x00001000
  1458. #define BF_PXP_IRQ_FIRST_STORE_IRQ(v) \
  1459. (((v) << 12) & BM_PXP_IRQ_FIRST_STORE_IRQ)
  1460. #define BM_PXP_IRQ_WFE_B_CH1_STORE_IRQ 0x00000800
  1461. #define BF_PXP_IRQ_WFE_B_CH1_STORE_IRQ(v) \
  1462. (((v) << 11) & BM_PXP_IRQ_WFE_B_CH1_STORE_IRQ)
  1463. #define BM_PXP_IRQ_WFE_B_CH0_STORE_IRQ 0x00000400
  1464. #define BF_PXP_IRQ_WFE_B_CH0_STORE_IRQ(v) \
  1465. (((v) << 10) & BM_PXP_IRQ_WFE_B_CH0_STORE_IRQ)
  1466. #define BM_PXP_IRQ_WFE_A_CH1_STORE_IRQ 0x00000200
  1467. #define BF_PXP_IRQ_WFE_A_CH1_STORE_IRQ(v) \
  1468. (((v) << 9) & BM_PXP_IRQ_WFE_A_CH1_STORE_IRQ)
  1469. #define BM_PXP_IRQ_WFE_A_CH0_STORE_IRQ 0x00000100
  1470. #define BF_PXP_IRQ_WFE_A_CH0_STORE_IRQ(v) \
  1471. (((v) << 8) & BM_PXP_IRQ_WFE_A_CH0_STORE_IRQ)
  1472. #define BM_PXP_IRQ_DITHER_CH1_STORE_IRQ 0x00000080
  1473. #define BF_PXP_IRQ_DITHER_CH1_STORE_IRQ(v) \
  1474. (((v) << 7) & BM_PXP_IRQ_DITHER_CH1_STORE_IRQ)
  1475. #define BM_PXP_IRQ_DITHER_CH0_STORE_IRQ 0x00000040
  1476. #define BF_PXP_IRQ_DITHER_CH0_STORE_IRQ(v) \
  1477. (((v) << 6) & BM_PXP_IRQ_DITHER_CH0_STORE_IRQ)
  1478. #define BM_PXP_IRQ_DITHER_CH1_PREFETCH_IRQ 0x00000020
  1479. #define BF_PXP_IRQ_DITHER_CH1_PREFETCH_IRQ(v) \
  1480. (((v) << 5) & BM_PXP_IRQ_DITHER_CH1_PREFETCH_IRQ)
  1481. #define BM_PXP_IRQ_DITHER_CH0_PREFETCH_IRQ 0x00000010
  1482. #define BF_PXP_IRQ_DITHER_CH0_PREFETCH_IRQ(v) \
  1483. (((v) << 4) & BM_PXP_IRQ_DITHER_CH0_PREFETCH_IRQ)
  1484. #define BM_PXP_IRQ_FIRST_CH1_STORE_IRQ 0x00000008
  1485. #define BF_PXP_IRQ_FIRST_CH1_STORE_IRQ(v) \
  1486. (((v) << 3) & BM_PXP_IRQ_FIRST_CH1_STORE_IRQ)
  1487. #define BM_PXP_IRQ_FIRST_CH0_STORE_IRQ 0x00000004
  1488. #define BF_PXP_IRQ_FIRST_CH0_STORE_IRQ(v) \
  1489. (((v) << 2) & BM_PXP_IRQ_FIRST_CH0_STORE_IRQ)
  1490. #define BM_PXP_IRQ_FIRST_CH1_PREFETCH_IRQ 0x00000002
  1491. #define BF_PXP_IRQ_FIRST_CH1_PREFETCH_IRQ(v) \
  1492. (((v) << 1) & BM_PXP_IRQ_FIRST_CH1_PREFETCH_IRQ)
  1493. #define BM_PXP_IRQ_FIRST_CH0_PREFETCH_IRQ 0x00000001
  1494. #define BF_PXP_IRQ_FIRST_CH0_PREFETCH_IRQ(v) \
  1495. (((v) << 0) & BM_PXP_IRQ_FIRST_CH0_PREFETCH_IRQ)
  1496. #define HW_PXP_NEXT (0x00000400)
  1497. #define BP_PXP_NEXT_POINTER 2
  1498. #define BM_PXP_NEXT_POINTER 0xFFFFFFFC
  1499. #define BF_PXP_NEXT_POINTER(v) \
  1500. (((v) << 2) & BM_PXP_NEXT_POINTER)
  1501. #define BM_PXP_NEXT_RSVD 0x00000002
  1502. #define BF_PXP_NEXT_RSVD(v) \
  1503. (((v) << 1) & BM_PXP_NEXT_RSVD)
  1504. #define BM_PXP_NEXT_ENABLED 0x00000001
  1505. #define BF_PXP_NEXT_ENABLED(v) \
  1506. (((v) << 0) & BM_PXP_NEXT_ENABLED)
  1507. #define HW_PXP_DEBUGCTRL (0x00000410)
  1508. #define BP_PXP_DEBUGCTRL_RSVD 12
  1509. #define BM_PXP_DEBUGCTRL_RSVD 0xFFFFF000
  1510. #define BF_PXP_DEBUGCTRL_RSVD(v) \
  1511. (((v) << 12) & BM_PXP_DEBUGCTRL_RSVD)
  1512. #define BP_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT 8
  1513. #define BM_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT 0x00000F00
  1514. #define BF_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT(v) \
  1515. (((v) << 8) & BM_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT)
  1516. #define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__NONE 0x0
  1517. #define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__MISS_CNT 0x1
  1518. #define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__HIT_CNT 0x2
  1519. #define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__LAT_CNT 0x4
  1520. #define BV_PXP_DEBUGCTRL_LUT_CLR_STAT_CNT__MAX_LAT 0x8
  1521. #define BP_PXP_DEBUGCTRL_SELECT 0
  1522. #define BM_PXP_DEBUGCTRL_SELECT 0x000000FF
  1523. #define BF_PXP_DEBUGCTRL_SELECT(v) \
  1524. (((v) << 0) & BM_PXP_DEBUGCTRL_SELECT)
  1525. #define BV_PXP_DEBUGCTRL_SELECT__NONE 0x0
  1526. #define BV_PXP_DEBUGCTRL_SELECT__CTRL 0x1
  1527. #define BV_PXP_DEBUGCTRL_SELECT__PSBUF 0x2
  1528. #define BV_PXP_DEBUGCTRL_SELECT__PSBAX 0x3
  1529. #define BV_PXP_DEBUGCTRL_SELECT__PSBAY 0x4
  1530. #define BV_PXP_DEBUGCTRL_SELECT__ASBUF 0x5
  1531. #define BV_PXP_DEBUGCTRL_SELECT__ROTATION 0x6
  1532. #define BV_PXP_DEBUGCTRL_SELECT__OUTBUF0 0x7
  1533. #define BV_PXP_DEBUGCTRL_SELECT__OUTBUF1 0x8
  1534. #define BV_PXP_DEBUGCTRL_SELECT__OUTBUF2 0x9
  1535. #define BV_PXP_DEBUGCTRL_SELECT__LUT_STAT 0x10
  1536. #define BV_PXP_DEBUGCTRL_SELECT__LUT_MISS 0x11
  1537. #define BV_PXP_DEBUGCTRL_SELECT__LUT_HIT 0x12
  1538. #define BV_PXP_DEBUGCTRL_SELECT__LUT_LAT 0x13
  1539. #define BV_PXP_DEBUGCTRL_SELECT__LUT_MAX_LAT 0x14
  1540. #define HW_PXP_DEBUG (0x00000420)
  1541. #define BP_PXP_DEBUG_DATA 0
  1542. #define BM_PXP_DEBUG_DATA 0xFFFFFFFF
  1543. #define BF_PXP_DEBUG_DATA(v) (v)
  1544. #define HW_PXP_VERSION (0x00000430)
  1545. #define BP_PXP_VERSION_MAJOR 24
  1546. #define BM_PXP_VERSION_MAJOR 0xFF000000
  1547. #define BF_PXP_VERSION_MAJOR(v) \
  1548. (((v) << 24) & BM_PXP_VERSION_MAJOR)
  1549. #define BP_PXP_VERSION_MINOR 16
  1550. #define BM_PXP_VERSION_MINOR 0x00FF0000
  1551. #define BF_PXP_VERSION_MINOR(v) \
  1552. (((v) << 16) & BM_PXP_VERSION_MINOR)
  1553. #define BP_PXP_VERSION_STEP 0
  1554. #define BM_PXP_VERSION_STEP 0x0000FFFF
  1555. #define BF_PXP_VERSION_STEP(v) \
  1556. (((v) << 0) & BM_PXP_VERSION_STEP)
  1557. #endif /* __IMX_PXP_H__ */