regs-pinctrl.h 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  1. /*
  2. * Freescale i.MX28 PINCTRL Register Definitions
  3. *
  4. * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
  5. * on behalf of DENX Software Engineering GmbH
  6. *
  7. * Based on code from LTIB:
  8. * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #ifndef __MX28_REGS_PINCTRL_H__
  13. #define __MX28_REGS_PINCTRL_H__
  14. #include <asm/imx-common/regs-common.h>
  15. #ifndef __ASSEMBLY__
  16. struct mxs_pinctrl_regs {
  17. mxs_reg_32(hw_pinctrl_ctrl) /* 0x0 */
  18. uint32_t reserved1[60];
  19. mxs_reg_32(hw_pinctrl_muxsel0) /* 0x100 */
  20. mxs_reg_32(hw_pinctrl_muxsel1) /* 0x110 */
  21. mxs_reg_32(hw_pinctrl_muxsel2) /* 0x120 */
  22. mxs_reg_32(hw_pinctrl_muxsel3) /* 0x130 */
  23. mxs_reg_32(hw_pinctrl_muxsel4) /* 0x140 */
  24. mxs_reg_32(hw_pinctrl_muxsel5) /* 0x150 */
  25. mxs_reg_32(hw_pinctrl_muxsel6) /* 0x160 */
  26. mxs_reg_32(hw_pinctrl_muxsel7) /* 0x170 */
  27. mxs_reg_32(hw_pinctrl_muxsel8) /* 0x180 */
  28. mxs_reg_32(hw_pinctrl_muxsel9) /* 0x190 */
  29. mxs_reg_32(hw_pinctrl_muxsel10) /* 0x1a0 */
  30. mxs_reg_32(hw_pinctrl_muxsel11) /* 0x1b0 */
  31. mxs_reg_32(hw_pinctrl_muxsel12) /* 0x1c0 */
  32. mxs_reg_32(hw_pinctrl_muxsel13) /* 0x1d0 */
  33. uint32_t reserved2[72];
  34. mxs_reg_32(hw_pinctrl_drive0) /* 0x300 */
  35. mxs_reg_32(hw_pinctrl_drive1) /* 0x310 */
  36. mxs_reg_32(hw_pinctrl_drive2) /* 0x320 */
  37. mxs_reg_32(hw_pinctrl_drive3) /* 0x330 */
  38. mxs_reg_32(hw_pinctrl_drive4) /* 0x340 */
  39. mxs_reg_32(hw_pinctrl_drive5) /* 0x350 */
  40. mxs_reg_32(hw_pinctrl_drive6) /* 0x360 */
  41. mxs_reg_32(hw_pinctrl_drive7) /* 0x370 */
  42. mxs_reg_32(hw_pinctrl_drive8) /* 0x380 */
  43. mxs_reg_32(hw_pinctrl_drive9) /* 0x390 */
  44. mxs_reg_32(hw_pinctrl_drive10) /* 0x3a0 */
  45. mxs_reg_32(hw_pinctrl_drive11) /* 0x3b0 */
  46. mxs_reg_32(hw_pinctrl_drive12) /* 0x3c0 */
  47. mxs_reg_32(hw_pinctrl_drive13) /* 0x3d0 */
  48. mxs_reg_32(hw_pinctrl_drive14) /* 0x3e0 */
  49. mxs_reg_32(hw_pinctrl_drive15) /* 0x3f0 */
  50. mxs_reg_32(hw_pinctrl_drive16) /* 0x400 */
  51. mxs_reg_32(hw_pinctrl_drive17) /* 0x410 */
  52. mxs_reg_32(hw_pinctrl_drive18) /* 0x420 */
  53. mxs_reg_32(hw_pinctrl_drive19) /* 0x430 */
  54. uint32_t reserved3[112];
  55. mxs_reg_32(hw_pinctrl_pull0) /* 0x600 */
  56. mxs_reg_32(hw_pinctrl_pull1) /* 0x610 */
  57. mxs_reg_32(hw_pinctrl_pull2) /* 0x620 */
  58. mxs_reg_32(hw_pinctrl_pull3) /* 0x630 */
  59. mxs_reg_32(hw_pinctrl_pull4) /* 0x640 */
  60. mxs_reg_32(hw_pinctrl_pull5) /* 0x650 */
  61. mxs_reg_32(hw_pinctrl_pull6) /* 0x660 */
  62. uint32_t reserved4[36];
  63. mxs_reg_32(hw_pinctrl_dout0) /* 0x700 */
  64. mxs_reg_32(hw_pinctrl_dout1) /* 0x710 */
  65. mxs_reg_32(hw_pinctrl_dout2) /* 0x720 */
  66. mxs_reg_32(hw_pinctrl_dout3) /* 0x730 */
  67. mxs_reg_32(hw_pinctrl_dout4) /* 0x740 */
  68. uint32_t reserved5[108];
  69. mxs_reg_32(hw_pinctrl_din0) /* 0x900 */
  70. mxs_reg_32(hw_pinctrl_din1) /* 0x910 */
  71. mxs_reg_32(hw_pinctrl_din2) /* 0x920 */
  72. mxs_reg_32(hw_pinctrl_din3) /* 0x930 */
  73. mxs_reg_32(hw_pinctrl_din4) /* 0x940 */
  74. uint32_t reserved6[108];
  75. mxs_reg_32(hw_pinctrl_doe0) /* 0xb00 */
  76. mxs_reg_32(hw_pinctrl_doe1) /* 0xb10 */
  77. mxs_reg_32(hw_pinctrl_doe2) /* 0xb20 */
  78. mxs_reg_32(hw_pinctrl_doe3) /* 0xb30 */
  79. mxs_reg_32(hw_pinctrl_doe4) /* 0xb40 */
  80. uint32_t reserved7[300];
  81. mxs_reg_32(hw_pinctrl_pin2irq0) /* 0x1000 */
  82. mxs_reg_32(hw_pinctrl_pin2irq1) /* 0x1010 */
  83. mxs_reg_32(hw_pinctrl_pin2irq2) /* 0x1020 */
  84. mxs_reg_32(hw_pinctrl_pin2irq3) /* 0x1030 */
  85. mxs_reg_32(hw_pinctrl_pin2irq4) /* 0x1040 */
  86. uint32_t reserved8[44];
  87. mxs_reg_32(hw_pinctrl_irqen0) /* 0x1100 */
  88. mxs_reg_32(hw_pinctrl_irqen1) /* 0x1110 */
  89. mxs_reg_32(hw_pinctrl_irqen2) /* 0x1120 */
  90. mxs_reg_32(hw_pinctrl_irqen3) /* 0x1130 */
  91. mxs_reg_32(hw_pinctrl_irqen4) /* 0x1140 */
  92. uint32_t reserved9[44];
  93. mxs_reg_32(hw_pinctrl_irqlevel0) /* 0x1200 */
  94. mxs_reg_32(hw_pinctrl_irqlevel1) /* 0x1210 */
  95. mxs_reg_32(hw_pinctrl_irqlevel2) /* 0x1220 */
  96. mxs_reg_32(hw_pinctrl_irqlevel3) /* 0x1230 */
  97. mxs_reg_32(hw_pinctrl_irqlevel4) /* 0x1240 */
  98. uint32_t reserved10[44];
  99. mxs_reg_32(hw_pinctrl_irqpol0) /* 0x1300 */
  100. mxs_reg_32(hw_pinctrl_irqpol1) /* 0x1310 */
  101. mxs_reg_32(hw_pinctrl_irqpol2) /* 0x1320 */
  102. mxs_reg_32(hw_pinctrl_irqpol3) /* 0x1330 */
  103. mxs_reg_32(hw_pinctrl_irqpol4) /* 0x1340 */
  104. uint32_t reserved11[44];
  105. mxs_reg_32(hw_pinctrl_irqstat0) /* 0x1400 */
  106. mxs_reg_32(hw_pinctrl_irqstat1) /* 0x1410 */
  107. mxs_reg_32(hw_pinctrl_irqstat2) /* 0x1420 */
  108. mxs_reg_32(hw_pinctrl_irqstat3) /* 0x1430 */
  109. mxs_reg_32(hw_pinctrl_irqstat4) /* 0x1440 */
  110. uint32_t reserved12[380];
  111. mxs_reg_32(hw_pinctrl_emi_odt_ctrl) /* 0x1a40 */
  112. uint32_t reserved13[76];
  113. mxs_reg_32(hw_pinctrl_emi_ds_ctrl) /* 0x1b80 */
  114. };
  115. #endif
  116. #define PINCTRL_CTRL_SFTRST (1 << 31)
  117. #define PINCTRL_CTRL_CLKGATE (1 << 30)
  118. #define PINCTRL_CTRL_PRESENT4 (1 << 24)
  119. #define PINCTRL_CTRL_PRESENT3 (1 << 23)
  120. #define PINCTRL_CTRL_PRESENT2 (1 << 22)
  121. #define PINCTRL_CTRL_PRESENT1 (1 << 21)
  122. #define PINCTRL_CTRL_PRESENT0 (1 << 20)
  123. #define PINCTRL_CTRL_IRQOUT4 (1 << 4)
  124. #define PINCTRL_CTRL_IRQOUT3 (1 << 3)
  125. #define PINCTRL_CTRL_IRQOUT2 (1 << 2)
  126. #define PINCTRL_CTRL_IRQOUT1 (1 << 1)
  127. #define PINCTRL_CTRL_IRQOUT0 (1 << 0)
  128. #define PINCTRL_MUXSEL0_BANK0_PIN07_MASK (0x3 << 14)
  129. #define PINCTRL_MUXSEL0_BANK0_PIN07_OFFSET 14
  130. #define PINCTRL_MUXSEL0_BANK0_PIN06_MASK (0x3 << 12)
  131. #define PINCTRL_MUXSEL0_BANK0_PIN06_OFFSET 12
  132. #define PINCTRL_MUXSEL0_BANK0_PIN05_MASK (0x3 << 10)
  133. #define PINCTRL_MUXSEL0_BANK0_PIN05_OFFSET 10
  134. #define PINCTRL_MUXSEL0_BANK0_PIN04_MASK (0x3 << 8)
  135. #define PINCTRL_MUXSEL0_BANK0_PIN04_OFFSET 8
  136. #define PINCTRL_MUXSEL0_BANK0_PIN03_MASK (0x3 << 6)
  137. #define PINCTRL_MUXSEL0_BANK0_PIN03_OFFSET 6
  138. #define PINCTRL_MUXSEL0_BANK0_PIN02_MASK (0x3 << 4)
  139. #define PINCTRL_MUXSEL0_BANK0_PIN02_OFFSET 4
  140. #define PINCTRL_MUXSEL0_BANK0_PIN01_MASK (0x3 << 2)
  141. #define PINCTRL_MUXSEL0_BANK0_PIN01_OFFSET 2
  142. #define PINCTRL_MUXSEL0_BANK0_PIN00_MASK (0x3 << 0)
  143. #define PINCTRL_MUXSEL0_BANK0_PIN00_OFFSET 0
  144. #define PINCTRL_MUXSEL1_BANK0_PIN28_MASK (0x3 << 24)
  145. #define PINCTRL_MUXSEL1_BANK0_PIN28_OFFSET 24
  146. #define PINCTRL_MUXSEL1_BANK0_PIN27_MASK (0x3 << 22)
  147. #define PINCTRL_MUXSEL1_BANK0_PIN27_OFFSET 22
  148. #define PINCTRL_MUXSEL1_BANK0_PIN26_MASK (0x3 << 20)
  149. #define PINCTRL_MUXSEL1_BANK0_PIN26_OFFSET 20
  150. #define PINCTRL_MUXSEL1_BANK0_PIN25_MASK (0x3 << 18)
  151. #define PINCTRL_MUXSEL1_BANK0_PIN25_OFFSET 18
  152. #define PINCTRL_MUXSEL1_BANK0_PIN24_MASK (0x3 << 16)
  153. #define PINCTRL_MUXSEL1_BANK0_PIN24_OFFSET 16
  154. #define PINCTRL_MUXSEL1_BANK0_PIN23_MASK (0x3 << 14)
  155. #define PINCTRL_MUXSEL1_BANK0_PIN23_OFFSET 14
  156. #define PINCTRL_MUXSEL1_BANK0_PIN22_MASK (0x3 << 12)
  157. #define PINCTRL_MUXSEL1_BANK0_PIN22_OFFSET 12
  158. #define PINCTRL_MUXSEL1_BANK0_PIN21_MASK (0x3 << 10)
  159. #define PINCTRL_MUXSEL1_BANK0_PIN21_OFFSET 10
  160. #define PINCTRL_MUXSEL1_BANK0_PIN20_MASK (0x3 << 8)
  161. #define PINCTRL_MUXSEL1_BANK0_PIN20_OFFSET 8
  162. #define PINCTRL_MUXSEL1_BANK0_PIN19_MASK (0x3 << 6)
  163. #define PINCTRL_MUXSEL1_BANK0_PIN19_OFFSET 6
  164. #define PINCTRL_MUXSEL1_BANK0_PIN18_MASK (0x3 << 4)
  165. #define PINCTRL_MUXSEL1_BANK0_PIN18_OFFSET 4
  166. #define PINCTRL_MUXSEL1_BANK0_PIN17_MASK (0x3 << 2)
  167. #define PINCTRL_MUXSEL1_BANK0_PIN17_OFFSET 2
  168. #define PINCTRL_MUXSEL1_BANK0_PIN16_MASK (0x3 << 0)
  169. #define PINCTRL_MUXSEL1_BANK0_PIN16_OFFSET 0
  170. #define PINCTRL_MUXSEL2_BANK1_PIN15_MASK (0x3 << 30)
  171. #define PINCTRL_MUXSEL2_BANK1_PIN15_OFFSET 30
  172. #define PINCTRL_MUXSEL2_BANK1_PIN14_MASK (0x3 << 28)
  173. #define PINCTRL_MUXSEL2_BANK1_PIN14_OFFSET 28
  174. #define PINCTRL_MUXSEL2_BANK1_PIN13_MASK (0x3 << 26)
  175. #define PINCTRL_MUXSEL2_BANK1_PIN13_OFFSET 26
  176. #define PINCTRL_MUXSEL2_BANK1_PIN12_MASK (0x3 << 24)
  177. #define PINCTRL_MUXSEL2_BANK1_PIN12_OFFSET 24
  178. #define PINCTRL_MUXSEL2_BANK1_PIN11_MASK (0x3 << 22)
  179. #define PINCTRL_MUXSEL2_BANK1_PIN11_OFFSET 22
  180. #define PINCTRL_MUXSEL2_BANK1_PIN10_MASK (0x3 << 20)
  181. #define PINCTRL_MUXSEL2_BANK1_PIN10_OFFSET 20
  182. #define PINCTRL_MUXSEL2_BANK1_PIN09_MASK (0x3 << 18)
  183. #define PINCTRL_MUXSEL2_BANK1_PIN09_OFFSET 18
  184. #define PINCTRL_MUXSEL2_BANK1_PIN08_MASK (0x3 << 16)
  185. #define PINCTRL_MUXSEL2_BANK1_PIN08_OFFSET 16
  186. #define PINCTRL_MUXSEL2_BANK1_PIN07_MASK (0x3 << 14)
  187. #define PINCTRL_MUXSEL2_BANK1_PIN07_OFFSET 14
  188. #define PINCTRL_MUXSEL2_BANK1_PIN06_MASK (0x3 << 12)
  189. #define PINCTRL_MUXSEL2_BANK1_PIN06_OFFSET 12
  190. #define PINCTRL_MUXSEL2_BANK1_PIN05_MASK (0x3 << 10)
  191. #define PINCTRL_MUXSEL2_BANK1_PIN05_OFFSET 10
  192. #define PINCTRL_MUXSEL2_BANK1_PIN04_MASK (0x3 << 8)
  193. #define PINCTRL_MUXSEL2_BANK1_PIN04_OFFSET 8
  194. #define PINCTRL_MUXSEL2_BANK1_PIN03_MASK (0x3 << 6)
  195. #define PINCTRL_MUXSEL2_BANK1_PIN03_OFFSET 6
  196. #define PINCTRL_MUXSEL2_BANK1_PIN02_MASK (0x3 << 4)
  197. #define PINCTRL_MUXSEL2_BANK1_PIN02_OFFSET 4
  198. #define PINCTRL_MUXSEL2_BANK1_PIN01_MASK (0x3 << 2)
  199. #define PINCTRL_MUXSEL2_BANK1_PIN01_OFFSET 2
  200. #define PINCTRL_MUXSEL2_BANK1_PIN00_MASK (0x3 << 0)
  201. #define PINCTRL_MUXSEL2_BANK1_PIN00_OFFSET 0
  202. #define PINCTRL_MUXSEL3_BANK1_PIN31_MASK (0x3 << 30)
  203. #define PINCTRL_MUXSEL3_BANK1_PIN31_OFFSET 30
  204. #define PINCTRL_MUXSEL3_BANK1_PIN30_MASK (0x3 << 28)
  205. #define PINCTRL_MUXSEL3_BANK1_PIN30_OFFSET 28
  206. #define PINCTRL_MUXSEL3_BANK1_PIN29_MASK (0x3 << 26)
  207. #define PINCTRL_MUXSEL3_BANK1_PIN29_OFFSET 26
  208. #define PINCTRL_MUXSEL3_BANK1_PIN28_MASK (0x3 << 24)
  209. #define PINCTRL_MUXSEL3_BANK1_PIN28_OFFSET 24
  210. #define PINCTRL_MUXSEL3_BANK1_PIN27_MASK (0x3 << 22)
  211. #define PINCTRL_MUXSEL3_BANK1_PIN27_OFFSET 22
  212. #define PINCTRL_MUXSEL3_BANK1_PIN26_MASK (0x3 << 20)
  213. #define PINCTRL_MUXSEL3_BANK1_PIN26_OFFSET 20
  214. #define PINCTRL_MUXSEL3_BANK1_PIN25_MASK (0x3 << 18)
  215. #define PINCTRL_MUXSEL3_BANK1_PIN25_OFFSET 18
  216. #define PINCTRL_MUXSEL3_BANK1_PIN24_MASK (0x3 << 16)
  217. #define PINCTRL_MUXSEL3_BANK1_PIN24_OFFSET 16
  218. #define PINCTRL_MUXSEL3_BANK1_PIN23_MASK (0x3 << 14)
  219. #define PINCTRL_MUXSEL3_BANK1_PIN23_OFFSET 14
  220. #define PINCTRL_MUXSEL3_BANK1_PIN22_MASK (0x3 << 12)
  221. #define PINCTRL_MUXSEL3_BANK1_PIN22_OFFSET 12
  222. #define PINCTRL_MUXSEL3_BANK1_PIN21_MASK (0x3 << 10)
  223. #define PINCTRL_MUXSEL3_BANK1_PIN21_OFFSET 10
  224. #define PINCTRL_MUXSEL3_BANK1_PIN20_MASK (0x3 << 8)
  225. #define PINCTRL_MUXSEL3_BANK1_PIN20_OFFSET 8
  226. #define PINCTRL_MUXSEL3_BANK1_PIN19_MASK (0x3 << 6)
  227. #define PINCTRL_MUXSEL3_BANK1_PIN19_OFFSET 6
  228. #define PINCTRL_MUXSEL3_BANK1_PIN18_MASK (0x3 << 4)
  229. #define PINCTRL_MUXSEL3_BANK1_PIN18_OFFSET 4
  230. #define PINCTRL_MUXSEL3_BANK1_PIN17_MASK (0x3 << 2)
  231. #define PINCTRL_MUXSEL3_BANK1_PIN17_OFFSET 2
  232. #define PINCTRL_MUXSEL3_BANK1_PIN16_MASK (0x3 << 0)
  233. #define PINCTRL_MUXSEL3_BANK1_PIN16_OFFSET 0
  234. #define PINCTRL_MUXSEL4_BANK2_PIN15_MASK (0x3 << 30)
  235. #define PINCTRL_MUXSEL4_BANK2_PIN15_OFFSET 30
  236. #define PINCTRL_MUXSEL4_BANK2_PIN14_MASK (0x3 << 28)
  237. #define PINCTRL_MUXSEL4_BANK2_PIN14_OFFSET 28
  238. #define PINCTRL_MUXSEL4_BANK2_PIN13_MASK (0x3 << 26)
  239. #define PINCTRL_MUXSEL4_BANK2_PIN13_OFFSET 26
  240. #define PINCTRL_MUXSEL4_BANK2_PIN12_MASK (0x3 << 24)
  241. #define PINCTRL_MUXSEL4_BANK2_PIN12_OFFSET 24
  242. #define PINCTRL_MUXSEL4_BANK2_PIN10_MASK (0x3 << 20)
  243. #define PINCTRL_MUXSEL4_BANK2_PIN10_OFFSET 20
  244. #define PINCTRL_MUXSEL4_BANK2_PIN09_MASK (0x3 << 18)
  245. #define PINCTRL_MUXSEL4_BANK2_PIN09_OFFSET 18
  246. #define PINCTRL_MUXSEL4_BANK2_PIN08_MASK (0x3 << 16)
  247. #define PINCTRL_MUXSEL4_BANK2_PIN08_OFFSET 16
  248. #define PINCTRL_MUXSEL4_BANK2_PIN07_MASK (0x3 << 14)
  249. #define PINCTRL_MUXSEL4_BANK2_PIN07_OFFSET 14
  250. #define PINCTRL_MUXSEL4_BANK2_PIN06_MASK (0x3 << 12)
  251. #define PINCTRL_MUXSEL4_BANK2_PIN06_OFFSET 12
  252. #define PINCTRL_MUXSEL4_BANK2_PIN05_MASK (0x3 << 10)
  253. #define PINCTRL_MUXSEL4_BANK2_PIN05_OFFSET 10
  254. #define PINCTRL_MUXSEL4_BANK2_PIN04_MASK (0x3 << 8)
  255. #define PINCTRL_MUXSEL4_BANK2_PIN04_OFFSET 8
  256. #define PINCTRL_MUXSEL4_BANK2_PIN03_MASK (0x3 << 6)
  257. #define PINCTRL_MUXSEL4_BANK2_PIN03_OFFSET 6
  258. #define PINCTRL_MUXSEL4_BANK2_PIN02_MASK (0x3 << 4)
  259. #define PINCTRL_MUXSEL4_BANK2_PIN02_OFFSET 4
  260. #define PINCTRL_MUXSEL4_BANK2_PIN01_MASK (0x3 << 2)
  261. #define PINCTRL_MUXSEL4_BANK2_PIN01_OFFSET 2
  262. #define PINCTRL_MUXSEL4_BANK2_PIN00_MASK (0x3 << 0)
  263. #define PINCTRL_MUXSEL4_BANK2_PIN00_OFFSET 0
  264. #define PINCTRL_MUXSEL5_BANK2_PIN27_MASK (0x3 << 22)
  265. #define PINCTRL_MUXSEL5_BANK2_PIN27_OFFSET 22
  266. #define PINCTRL_MUXSEL5_BANK2_PIN26_MASK (0x3 << 20)
  267. #define PINCTRL_MUXSEL5_BANK2_PIN26_OFFSET 20
  268. #define PINCTRL_MUXSEL5_BANK2_PIN25_MASK (0x3 << 18)
  269. #define PINCTRL_MUXSEL5_BANK2_PIN25_OFFSET 18
  270. #define PINCTRL_MUXSEL5_BANK2_PIN24_MASK (0x3 << 16)
  271. #define PINCTRL_MUXSEL5_BANK2_PIN24_OFFSET 16
  272. #define PINCTRL_MUXSEL5_BANK2_PIN21_MASK (0x3 << 10)
  273. #define PINCTRL_MUXSEL5_BANK2_PIN21_OFFSET 10
  274. #define PINCTRL_MUXSEL5_BANK2_PIN20_MASK (0x3 << 8)
  275. #define PINCTRL_MUXSEL5_BANK2_PIN20_OFFSET 8
  276. #define PINCTRL_MUXSEL5_BANK2_PIN19_MASK (0x3 << 6)
  277. #define PINCTRL_MUXSEL5_BANK2_PIN19_OFFSET 6
  278. #define PINCTRL_MUXSEL5_BANK2_PIN18_MASK (0x3 << 4)
  279. #define PINCTRL_MUXSEL5_BANK2_PIN18_OFFSET 4
  280. #define PINCTRL_MUXSEL5_BANK2_PIN17_MASK (0x3 << 2)
  281. #define PINCTRL_MUXSEL5_BANK2_PIN17_OFFSET 2
  282. #define PINCTRL_MUXSEL5_BANK2_PIN16_MASK (0x3 << 0)
  283. #define PINCTRL_MUXSEL5_BANK2_PIN16_OFFSET 0
  284. #define PINCTRL_MUXSEL6_BANK3_PIN15_MASK (0x3 << 30)
  285. #define PINCTRL_MUXSEL6_BANK3_PIN15_OFFSET 30
  286. #define PINCTRL_MUXSEL6_BANK3_PIN14_MASK (0x3 << 28)
  287. #define PINCTRL_MUXSEL6_BANK3_PIN14_OFFSET 28
  288. #define PINCTRL_MUXSEL6_BANK3_PIN13_MASK (0x3 << 26)
  289. #define PINCTRL_MUXSEL6_BANK3_PIN13_OFFSET 26
  290. #define PINCTRL_MUXSEL6_BANK3_PIN12_MASK (0x3 << 24)
  291. #define PINCTRL_MUXSEL6_BANK3_PIN12_OFFSET 24
  292. #define PINCTRL_MUXSEL6_BANK3_PIN11_MASK (0x3 << 22)
  293. #define PINCTRL_MUXSEL6_BANK3_PIN11_OFFSET 22
  294. #define PINCTRL_MUXSEL6_BANK3_PIN10_MASK (0x3 << 20)
  295. #define PINCTRL_MUXSEL6_BANK3_PIN10_OFFSET 20
  296. #define PINCTRL_MUXSEL6_BANK3_PIN09_MASK (0x3 << 18)
  297. #define PINCTRL_MUXSEL6_BANK3_PIN09_OFFSET 18
  298. #define PINCTRL_MUXSEL6_BANK3_PIN08_MASK (0x3 << 16)
  299. #define PINCTRL_MUXSEL6_BANK3_PIN08_OFFSET 16
  300. #define PINCTRL_MUXSEL6_BANK3_PIN07_MASK (0x3 << 14)
  301. #define PINCTRL_MUXSEL6_BANK3_PIN07_OFFSET 14
  302. #define PINCTRL_MUXSEL6_BANK3_PIN06_MASK (0x3 << 12)
  303. #define PINCTRL_MUXSEL6_BANK3_PIN06_OFFSET 12
  304. #define PINCTRL_MUXSEL6_BANK3_PIN05_MASK (0x3 << 10)
  305. #define PINCTRL_MUXSEL6_BANK3_PIN05_OFFSET 10
  306. #define PINCTRL_MUXSEL6_BANK3_PIN04_MASK (0x3 << 8)
  307. #define PINCTRL_MUXSEL6_BANK3_PIN04_OFFSET 8
  308. #define PINCTRL_MUXSEL6_BANK3_PIN03_MASK (0x3 << 6)
  309. #define PINCTRL_MUXSEL6_BANK3_PIN03_OFFSET 6
  310. #define PINCTRL_MUXSEL6_BANK3_PIN02_MASK (0x3 << 4)
  311. #define PINCTRL_MUXSEL6_BANK3_PIN02_OFFSET 4
  312. #define PINCTRL_MUXSEL6_BANK3_PIN01_MASK (0x3 << 2)
  313. #define PINCTRL_MUXSEL6_BANK3_PIN01_OFFSET 2
  314. #define PINCTRL_MUXSEL6_BANK3_PIN00_MASK (0x3 << 0)
  315. #define PINCTRL_MUXSEL6_BANK3_PIN00_OFFSET 0
  316. #define PINCTRL_MUXSEL7_BANK3_PIN30_MASK (0x3 << 28)
  317. #define PINCTRL_MUXSEL7_BANK3_PIN30_OFFSET 28
  318. #define PINCTRL_MUXSEL7_BANK3_PIN29_MASK (0x3 << 26)
  319. #define PINCTRL_MUXSEL7_BANK3_PIN29_OFFSET 26
  320. #define PINCTRL_MUXSEL7_BANK3_PIN28_MASK (0x3 << 24)
  321. #define PINCTRL_MUXSEL7_BANK3_PIN28_OFFSET 24
  322. #define PINCTRL_MUXSEL7_BANK3_PIN27_MASK (0x3 << 22)
  323. #define PINCTRL_MUXSEL7_BANK3_PIN27_OFFSET 22
  324. #define PINCTRL_MUXSEL7_BANK3_PIN26_MASK (0x3 << 20)
  325. #define PINCTRL_MUXSEL7_BANK3_PIN26_OFFSET 20
  326. #define PINCTRL_MUXSEL7_BANK3_PIN25_MASK (0x3 << 18)
  327. #define PINCTRL_MUXSEL7_BANK3_PIN25_OFFSET 18
  328. #define PINCTRL_MUXSEL7_BANK3_PIN24_MASK (0x3 << 16)
  329. #define PINCTRL_MUXSEL7_BANK3_PIN24_OFFSET 16
  330. #define PINCTRL_MUXSEL7_BANK3_PIN23_MASK (0x3 << 14)
  331. #define PINCTRL_MUXSEL7_BANK3_PIN23_OFFSET 14
  332. #define PINCTRL_MUXSEL7_BANK3_PIN22_MASK (0x3 << 12)
  333. #define PINCTRL_MUXSEL7_BANK3_PIN22_OFFSET 12
  334. #define PINCTRL_MUXSEL7_BANK3_PIN21_MASK (0x3 << 10)
  335. #define PINCTRL_MUXSEL7_BANK3_PIN21_OFFSET 10
  336. #define PINCTRL_MUXSEL7_BANK3_PIN20_MASK (0x3 << 8)
  337. #define PINCTRL_MUXSEL7_BANK3_PIN20_OFFSET 8
  338. #define PINCTRL_MUXSEL7_BANK3_PIN18_MASK (0x3 << 4)
  339. #define PINCTRL_MUXSEL7_BANK3_PIN18_OFFSET 4
  340. #define PINCTRL_MUXSEL7_BANK3_PIN17_MASK (0x3 << 2)
  341. #define PINCTRL_MUXSEL7_BANK3_PIN17_OFFSET 2
  342. #define PINCTRL_MUXSEL7_BANK3_PIN16_MASK (0x3 << 0)
  343. #define PINCTRL_MUXSEL7_BANK3_PIN16_OFFSET 0
  344. #define PINCTRL_MUXSEL8_BANK4_PIN15_MASK (0x3 << 30)
  345. #define PINCTRL_MUXSEL8_BANK4_PIN15_OFFSET 30
  346. #define PINCTRL_MUXSEL8_BANK4_PIN14_MASK (0x3 << 28)
  347. #define PINCTRL_MUXSEL8_BANK4_PIN14_OFFSET 28
  348. #define PINCTRL_MUXSEL8_BANK4_PIN13_MASK (0x3 << 26)
  349. #define PINCTRL_MUXSEL8_BANK4_PIN13_OFFSET 26
  350. #define PINCTRL_MUXSEL8_BANK4_PIN12_MASK (0x3 << 24)
  351. #define PINCTRL_MUXSEL8_BANK4_PIN12_OFFSET 24
  352. #define PINCTRL_MUXSEL8_BANK4_PIN11_MASK (0x3 << 22)
  353. #define PINCTRL_MUXSEL8_BANK4_PIN11_OFFSET 22
  354. #define PINCTRL_MUXSEL8_BANK4_PIN10_MASK (0x3 << 20)
  355. #define PINCTRL_MUXSEL8_BANK4_PIN10_OFFSET 20
  356. #define PINCTRL_MUXSEL8_BANK4_PIN09_MASK (0x3 << 18)
  357. #define PINCTRL_MUXSEL8_BANK4_PIN09_OFFSET 18
  358. #define PINCTRL_MUXSEL8_BANK4_PIN08_MASK (0x3 << 16)
  359. #define PINCTRL_MUXSEL8_BANK4_PIN08_OFFSET 16
  360. #define PINCTRL_MUXSEL8_BANK4_PIN07_MASK (0x3 << 14)
  361. #define PINCTRL_MUXSEL8_BANK4_PIN07_OFFSET 14
  362. #define PINCTRL_MUXSEL8_BANK4_PIN06_MASK (0x3 << 12)
  363. #define PINCTRL_MUXSEL8_BANK4_PIN06_OFFSET 12
  364. #define PINCTRL_MUXSEL8_BANK4_PIN05_MASK (0x3 << 10)
  365. #define PINCTRL_MUXSEL8_BANK4_PIN05_OFFSET 10
  366. #define PINCTRL_MUXSEL8_BANK4_PIN04_MASK (0x3 << 8)
  367. #define PINCTRL_MUXSEL8_BANK4_PIN04_OFFSET 8
  368. #define PINCTRL_MUXSEL8_BANK4_PIN03_MASK (0x3 << 6)
  369. #define PINCTRL_MUXSEL8_BANK4_PIN03_OFFSET 6
  370. #define PINCTRL_MUXSEL8_BANK4_PIN02_MASK (0x3 << 4)
  371. #define PINCTRL_MUXSEL8_BANK4_PIN02_OFFSET 4
  372. #define PINCTRL_MUXSEL8_BANK4_PIN01_MASK (0x3 << 2)
  373. #define PINCTRL_MUXSEL8_BANK4_PIN01_OFFSET 2
  374. #define PINCTRL_MUXSEL8_BANK4_PIN00_MASK (0x3 << 0)
  375. #define PINCTRL_MUXSEL8_BANK4_PIN00_OFFSET 0
  376. #define PINCTRL_MUXSEL9_BANK4_PIN20_MASK (0x3 << 8)
  377. #define PINCTRL_MUXSEL9_BANK4_PIN20_OFFSET 8
  378. #define PINCTRL_MUXSEL9_BANK4_PIN16_MASK (0x3 << 0)
  379. #define PINCTRL_MUXSEL9_BANK4_PIN16_OFFSET 0
  380. #define PINCTRL_MUXSEL10_BANK5_PIN15_MASK (0x3 << 30)
  381. #define PINCTRL_MUXSEL10_BANK5_PIN15_OFFSET 30
  382. #define PINCTRL_MUXSEL10_BANK5_PIN14_MASK (0x3 << 28)
  383. #define PINCTRL_MUXSEL10_BANK5_PIN14_OFFSET 28
  384. #define PINCTRL_MUXSEL10_BANK5_PIN13_MASK (0x3 << 26)
  385. #define PINCTRL_MUXSEL10_BANK5_PIN13_OFFSET 26
  386. #define PINCTRL_MUXSEL10_BANK5_PIN12_MASK (0x3 << 24)
  387. #define PINCTRL_MUXSEL10_BANK5_PIN12_OFFSET 24
  388. #define PINCTRL_MUXSEL10_BANK5_PIN11_MASK (0x3 << 22)
  389. #define PINCTRL_MUXSEL10_BANK5_PIN11_OFFSET 22
  390. #define PINCTRL_MUXSEL10_BANK5_PIN10_MASK (0x3 << 20)
  391. #define PINCTRL_MUXSEL10_BANK5_PIN10_OFFSET 20
  392. #define PINCTRL_MUXSEL10_BANK5_PIN09_MASK (0x3 << 18)
  393. #define PINCTRL_MUXSEL10_BANK5_PIN09_OFFSET 18
  394. #define PINCTRL_MUXSEL10_BANK5_PIN08_MASK (0x3 << 16)
  395. #define PINCTRL_MUXSEL10_BANK5_PIN08_OFFSET 16
  396. #define PINCTRL_MUXSEL10_BANK5_PIN07_MASK (0x3 << 14)
  397. #define PINCTRL_MUXSEL10_BANK5_PIN07_OFFSET 14
  398. #define PINCTRL_MUXSEL10_BANK5_PIN06_MASK (0x3 << 12)
  399. #define PINCTRL_MUXSEL10_BANK5_PIN06_OFFSET 12
  400. #define PINCTRL_MUXSEL10_BANK5_PIN05_MASK (0x3 << 10)
  401. #define PINCTRL_MUXSEL10_BANK5_PIN05_OFFSET 10
  402. #define PINCTRL_MUXSEL10_BANK5_PIN04_MASK (0x3 << 8)
  403. #define PINCTRL_MUXSEL10_BANK5_PIN04_OFFSET 8
  404. #define PINCTRL_MUXSEL10_BANK5_PIN03_MASK (0x3 << 6)
  405. #define PINCTRL_MUXSEL10_BANK5_PIN03_OFFSET 6
  406. #define PINCTRL_MUXSEL10_BANK5_PIN02_MASK (0x3 << 4)
  407. #define PINCTRL_MUXSEL10_BANK5_PIN02_OFFSET 4
  408. #define PINCTRL_MUXSEL10_BANK5_PIN01_MASK (0x3 << 2)
  409. #define PINCTRL_MUXSEL10_BANK5_PIN01_OFFSET 2
  410. #define PINCTRL_MUXSEL10_BANK5_PIN00_MASK (0x3 << 0)
  411. #define PINCTRL_MUXSEL10_BANK5_PIN00_OFFSET 0
  412. #define PINCTRL_MUXSEL11_BANK5_PIN26_MASK (0x3 << 20)
  413. #define PINCTRL_MUXSEL11_BANK5_PIN26_OFFSET 20
  414. #define PINCTRL_MUXSEL11_BANK5_PIN23_MASK (0x3 << 14)
  415. #define PINCTRL_MUXSEL11_BANK5_PIN23_OFFSET 14
  416. #define PINCTRL_MUXSEL11_BANK5_PIN22_MASK (0x3 << 12)
  417. #define PINCTRL_MUXSEL11_BANK5_PIN22_OFFSET 12
  418. #define PINCTRL_MUXSEL11_BANK5_PIN21_MASK (0x3 << 10)
  419. #define PINCTRL_MUXSEL11_BANK5_PIN21_OFFSET 10
  420. #define PINCTRL_MUXSEL11_BANK5_PIN20_MASK (0x3 << 8)
  421. #define PINCTRL_MUXSEL11_BANK5_PIN20_OFFSET 8
  422. #define PINCTRL_MUXSEL11_BANK5_PIN19_MASK (0x3 << 6)
  423. #define PINCTRL_MUXSEL11_BANK5_PIN19_OFFSET 6
  424. #define PINCTRL_MUXSEL11_BANK5_PIN18_MASK (0x3 << 4)
  425. #define PINCTRL_MUXSEL11_BANK5_PIN18_OFFSET 4
  426. #define PINCTRL_MUXSEL11_BANK5_PIN17_MASK (0x3 << 2)
  427. #define PINCTRL_MUXSEL11_BANK5_PIN17_OFFSET 2
  428. #define PINCTRL_MUXSEL11_BANK5_PIN16_MASK (0x3 << 0)
  429. #define PINCTRL_MUXSEL11_BANK5_PIN16_OFFSET 0
  430. #define PINCTRL_MUXSEL12_BANK6_PIN14_MASK (0x3 << 28)
  431. #define PINCTRL_MUXSEL12_BANK6_PIN14_OFFSET 28
  432. #define PINCTRL_MUXSEL12_BANK6_PIN13_MASK (0x3 << 26)
  433. #define PINCTRL_MUXSEL12_BANK6_PIN13_OFFSET 26
  434. #define PINCTRL_MUXSEL12_BANK6_PIN12_MASK (0x3 << 24)
  435. #define PINCTRL_MUXSEL12_BANK6_PIN12_OFFSET 24
  436. #define PINCTRL_MUXSEL12_BANK6_PIN11_MASK (0x3 << 22)
  437. #define PINCTRL_MUXSEL12_BANK6_PIN11_OFFSET 22
  438. #define PINCTRL_MUXSEL12_BANK6_PIN10_MASK (0x3 << 20)
  439. #define PINCTRL_MUXSEL12_BANK6_PIN10_OFFSET 20
  440. #define PINCTRL_MUXSEL12_BANK6_PIN09_MASK (0x3 << 18)
  441. #define PINCTRL_MUXSEL12_BANK6_PIN09_OFFSET 18
  442. #define PINCTRL_MUXSEL12_BANK6_PIN08_MASK (0x3 << 16)
  443. #define PINCTRL_MUXSEL12_BANK6_PIN08_OFFSET 16
  444. #define PINCTRL_MUXSEL12_BANK6_PIN07_MASK (0x3 << 14)
  445. #define PINCTRL_MUXSEL12_BANK6_PIN07_OFFSET 14
  446. #define PINCTRL_MUXSEL12_BANK6_PIN06_MASK (0x3 << 12)
  447. #define PINCTRL_MUXSEL12_BANK6_PIN06_OFFSET 12
  448. #define PINCTRL_MUXSEL12_BANK6_PIN05_MASK (0x3 << 10)
  449. #define PINCTRL_MUXSEL12_BANK6_PIN05_OFFSET 10
  450. #define PINCTRL_MUXSEL12_BANK6_PIN04_MASK (0x3 << 8)
  451. #define PINCTRL_MUXSEL12_BANK6_PIN04_OFFSET 8
  452. #define PINCTRL_MUXSEL12_BANK6_PIN03_MASK (0x3 << 6)
  453. #define PINCTRL_MUXSEL12_BANK6_PIN03_OFFSET 6
  454. #define PINCTRL_MUXSEL12_BANK6_PIN02_MASK (0x3 << 4)
  455. #define PINCTRL_MUXSEL12_BANK6_PIN02_OFFSET 4
  456. #define PINCTRL_MUXSEL12_BANK6_PIN01_MASK (0x3 << 2)
  457. #define PINCTRL_MUXSEL12_BANK6_PIN01_OFFSET 2
  458. #define PINCTRL_MUXSEL12_BANK6_PIN00_MASK (0x3 << 0)
  459. #define PINCTRL_MUXSEL12_BANK6_PIN00_OFFSET 0
  460. #define PINCTRL_MUXSEL13_BANK6_PIN24_MASK (0x3 << 16)
  461. #define PINCTRL_MUXSEL13_BANK6_PIN24_OFFSET 16
  462. #define PINCTRL_MUXSEL13_BANK6_PIN23_MASK (0x3 << 14)
  463. #define PINCTRL_MUXSEL13_BANK6_PIN23_OFFSET 14
  464. #define PINCTRL_MUXSEL13_BANK6_PIN22_MASK (0x3 << 12)
  465. #define PINCTRL_MUXSEL13_BANK6_PIN22_OFFSET 12
  466. #define PINCTRL_MUXSEL13_BANK6_PIN21_MASK (0x3 << 10)
  467. #define PINCTRL_MUXSEL13_BANK6_PIN21_OFFSET 10
  468. #define PINCTRL_MUXSEL13_BANK6_PIN20_MASK (0x3 << 8)
  469. #define PINCTRL_MUXSEL13_BANK6_PIN20_OFFSET 8
  470. #define PINCTRL_MUXSEL13_BANK6_PIN19_MASK (0x3 << 6)
  471. #define PINCTRL_MUXSEL13_BANK6_PIN19_OFFSET 6
  472. #define PINCTRL_MUXSEL13_BANK6_PIN18_MASK (0x3 << 4)
  473. #define PINCTRL_MUXSEL13_BANK6_PIN18_OFFSET 4
  474. #define PINCTRL_MUXSEL13_BANK6_PIN17_MASK (0x3 << 2)
  475. #define PINCTRL_MUXSEL13_BANK6_PIN17_OFFSET 2
  476. #define PINCTRL_MUXSEL13_BANK6_PIN16_MASK (0x3 << 0)
  477. #define PINCTRL_MUXSEL13_BANK6_PIN16_OFFSET 0
  478. #define PINCTRL_DRIVE0_BANK0_PIN07_V (1 << 30)
  479. #define PINCTRL_DRIVE0_BANK0_PIN07_MA_MASK (0x3 << 28)
  480. #define PINCTRL_DRIVE0_BANK0_PIN07_MA_OFFSET 28
  481. #define PINCTRL_DRIVE0_BANK0_PIN06_V (1 << 26)
  482. #define PINCTRL_DRIVE0_BANK0_PIN06_MA_MASK (0x3 << 24)
  483. #define PINCTRL_DRIVE0_BANK0_PIN06_MA_OFFSET 24
  484. #define PINCTRL_DRIVE0_BANK0_PIN05_V (1 << 22)
  485. #define PINCTRL_DRIVE0_BANK0_PIN05_MA_MASK (0x3 << 20)
  486. #define PINCTRL_DRIVE0_BANK0_PIN05_MA_OFFSET 20
  487. #define PINCTRL_DRIVE0_BANK0_PIN04_V (1 << 18)
  488. #define PINCTRL_DRIVE0_BANK0_PIN04_MA_MASK (0x3 << 16)
  489. #define PINCTRL_DRIVE0_BANK0_PIN04_MA_OFFSET 16
  490. #define PINCTRL_DRIVE0_BANK0_PIN03_V (1 << 14)
  491. #define PINCTRL_DRIVE0_BANK0_PIN03_MA_MASK (0x3 << 12)
  492. #define PINCTRL_DRIVE0_BANK0_PIN03_MA_OFFSET 12
  493. #define PINCTRL_DRIVE0_BANK0_PIN02_V (1 << 10)
  494. #define PINCTRL_DRIVE0_BANK0_PIN02_MA_MASK (0x3 << 8)
  495. #define PINCTRL_DRIVE0_BANK0_PIN02_MA_OFFSET 8
  496. #define PINCTRL_DRIVE0_BANK0_PIN01_V (1 << 6)
  497. #define PINCTRL_DRIVE0_BANK0_PIN01_MA_MASK (0x3 << 4)
  498. #define PINCTRL_DRIVE0_BANK0_PIN01_MA_OFFSET 4
  499. #define PINCTRL_DRIVE0_BANK0_PIN00_V (1 << 2)
  500. #define PINCTRL_DRIVE0_BANK0_PIN00_MA_MASK (0x3 << 0)
  501. #define PINCTRL_DRIVE0_BANK0_PIN00_MA_OFFSET 0
  502. #define PINCTRL_DRIVE2_BANK0_PIN23_V (1 << 30)
  503. #define PINCTRL_DRIVE2_BANK0_PIN23_MA_MASK (0x3 << 28)
  504. #define PINCTRL_DRIVE2_BANK0_PIN23_MA_OFFSET 28
  505. #define PINCTRL_DRIVE2_BANK0_PIN22_V (1 << 26)
  506. #define PINCTRL_DRIVE2_BANK0_PIN22_MA_MASK (0x3 << 24)
  507. #define PINCTRL_DRIVE2_BANK0_PIN22_MA_OFFSET 24
  508. #define PINCTRL_DRIVE2_BANK0_PIN21_V (1 << 22)
  509. #define PINCTRL_DRIVE2_BANK0_PIN21_MA_MASK (0x3 << 20)
  510. #define PINCTRL_DRIVE2_BANK0_PIN21_MA_OFFSET 20
  511. #define PINCTRL_DRIVE2_BANK0_PIN20_V (1 << 18)
  512. #define PINCTRL_DRIVE2_BANK0_PIN20_MA_MASK (0x3 << 16)
  513. #define PINCTRL_DRIVE2_BANK0_PIN20_MA_OFFSET 16
  514. #define PINCTRL_DRIVE2_BANK0_PIN19_V (1 << 14)
  515. #define PINCTRL_DRIVE2_BANK0_PIN19_MA_MASK (0x3 << 12)
  516. #define PINCTRL_DRIVE2_BANK0_PIN19_MA_OFFSET 12
  517. #define PINCTRL_DRIVE2_BANK0_PIN18_V (1 << 10)
  518. #define PINCTRL_DRIVE2_BANK0_PIN18_MA_MASK (0x3 << 8)
  519. #define PINCTRL_DRIVE2_BANK0_PIN18_MA_OFFSET 8
  520. #define PINCTRL_DRIVE2_BANK0_PIN17_V (1 << 6)
  521. #define PINCTRL_DRIVE2_BANK0_PIN17_MA_MASK (0x3 << 4)
  522. #define PINCTRL_DRIVE2_BANK0_PIN17_MA_OFFSET 4
  523. #define PINCTRL_DRIVE2_BANK0_PIN16_V (1 << 2)
  524. #define PINCTRL_DRIVE2_BANK0_PIN16_MA_MASK (0x3 << 0)
  525. #define PINCTRL_DRIVE2_BANK0_PIN16_MA_OFFSET 0
  526. #define PINCTRL_DRIVE3_BANK0_PIN28_V (1 << 18)
  527. #define PINCTRL_DRIVE3_BANK0_PIN28_MA_MASK (0x3 << 16)
  528. #define PINCTRL_DRIVE3_BANK0_PIN28_MA_OFFSET 16
  529. #define PINCTRL_DRIVE3_BANK0_PIN27_V (1 << 14)
  530. #define PINCTRL_DRIVE3_BANK0_PIN27_MA_MASK (0x3 << 12)
  531. #define PINCTRL_DRIVE3_BANK0_PIN27_MA_OFFSET 12
  532. #define PINCTRL_DRIVE3_BANK0_PIN26_V (1 << 10)
  533. #define PINCTRL_DRIVE3_BANK0_PIN26_MA_MASK (0x3 << 8)
  534. #define PINCTRL_DRIVE3_BANK0_PIN26_MA_OFFSET 8
  535. #define PINCTRL_DRIVE3_BANK0_PIN25_V (1 << 6)
  536. #define PINCTRL_DRIVE3_BANK0_PIN25_MA_MASK (0x3 << 4)
  537. #define PINCTRL_DRIVE3_BANK0_PIN25_MA_OFFSET 4
  538. #define PINCTRL_DRIVE3_BANK0_PIN24_V (1 << 2)
  539. #define PINCTRL_DRIVE3_BANK0_PIN24_MA_MASK (0x3 << 0)
  540. #define PINCTRL_DRIVE3_BANK0_PIN24_MA_OFFSET 0
  541. #define PINCTRL_DRIVE4_BANK1_PIN07_V (1 << 30)
  542. #define PINCTRL_DRIVE4_BANK1_PIN07_MA_MASK (0x3 << 28)
  543. #define PINCTRL_DRIVE4_BANK1_PIN07_MA_OFFSET 28
  544. #define PINCTRL_DRIVE4_BANK1_PIN06_V (1 << 26)
  545. #define PINCTRL_DRIVE4_BANK1_PIN06_MA_MASK (0x3 << 24)
  546. #define PINCTRL_DRIVE4_BANK1_PIN06_MA_OFFSET 24
  547. #define PINCTRL_DRIVE4_BANK1_PIN05_V (1 << 22)
  548. #define PINCTRL_DRIVE4_BANK1_PIN05_MA_MASK (0x3 << 20)
  549. #define PINCTRL_DRIVE4_BANK1_PIN05_MA_OFFSET 20
  550. #define PINCTRL_DRIVE4_BANK1_PIN04_V (1 << 18)
  551. #define PINCTRL_DRIVE4_BANK1_PIN04_MA_MASK (0x3 << 16)
  552. #define PINCTRL_DRIVE4_BANK1_PIN04_MA_OFFSET 16
  553. #define PINCTRL_DRIVE4_BANK1_PIN03_V (1 << 14)
  554. #define PINCTRL_DRIVE4_BANK1_PIN03_MA_MASK (0x3 << 12)
  555. #define PINCTRL_DRIVE4_BANK1_PIN03_MA_OFFSET 12
  556. #define PINCTRL_DRIVE4_BANK1_PIN02_V (1 << 10)
  557. #define PINCTRL_DRIVE4_BANK1_PIN02_MA_MASK (0x3 << 8)
  558. #define PINCTRL_DRIVE4_BANK1_PIN02_MA_OFFSET 8
  559. #define PINCTRL_DRIVE4_BANK1_PIN01_V (1 << 6)
  560. #define PINCTRL_DRIVE4_BANK1_PIN01_MA_MASK (0x3 << 4)
  561. #define PINCTRL_DRIVE4_BANK1_PIN01_MA_OFFSET 4
  562. #define PINCTRL_DRIVE4_BANK1_PIN00_V (1 << 2)
  563. #define PINCTRL_DRIVE4_BANK1_PIN00_MA_MASK (0x3 << 0)
  564. #define PINCTRL_DRIVE4_BANK1_PIN00_MA_OFFSET 0
  565. #define PINCTRL_DRIVE5_BANK1_PIN15_V (1 << 30)
  566. #define PINCTRL_DRIVE5_BANK1_PIN15_MA_MASK (0x3 << 28)
  567. #define PINCTRL_DRIVE5_BANK1_PIN15_MA_OFFSET 28
  568. #define PINCTRL_DRIVE5_BANK1_PIN14_V (1 << 26)
  569. #define PINCTRL_DRIVE5_BANK1_PIN14_MA_MASK (0x3 << 24)
  570. #define PINCTRL_DRIVE5_BANK1_PIN14_MA_OFFSET 24
  571. #define PINCTRL_DRIVE5_BANK1_PIN13_V (1 << 22)
  572. #define PINCTRL_DRIVE5_BANK1_PIN13_MA_MASK (0x3 << 20)
  573. #define PINCTRL_DRIVE5_BANK1_PIN13_MA_OFFSET 20
  574. #define PINCTRL_DRIVE5_BANK1_PIN12_V (1 << 18)
  575. #define PINCTRL_DRIVE5_BANK1_PIN12_MA_MASK (0x3 << 16)
  576. #define PINCTRL_DRIVE5_BANK1_PIN12_MA_OFFSET 16
  577. #define PINCTRL_DRIVE5_BANK1_PIN11_V (1 << 14)
  578. #define PINCTRL_DRIVE5_BANK1_PIN11_MA_MASK (0x3 << 12)
  579. #define PINCTRL_DRIVE5_BANK1_PIN11_MA_OFFSET 12
  580. #define PINCTRL_DRIVE5_BANK1_PIN10_V (1 << 10)
  581. #define PINCTRL_DRIVE5_BANK1_PIN10_MA_MASK (0x3 << 8)
  582. #define PINCTRL_DRIVE5_BANK1_PIN10_MA_OFFSET 8
  583. #define PINCTRL_DRIVE5_BANK1_PIN09_V (1 << 6)
  584. #define PINCTRL_DRIVE5_BANK1_PIN09_MA_MASK (0x3 << 4)
  585. #define PINCTRL_DRIVE5_BANK1_PIN09_MA_OFFSET 4
  586. #define PINCTRL_DRIVE5_BANK1_PIN08_V (1 << 2)
  587. #define PINCTRL_DRIVE5_BANK1_PIN08_MA_MASK (0x3 << 0)
  588. #define PINCTRL_DRIVE5_BANK1_PIN08_MA_OFFSET 0
  589. #define PINCTRL_DRIVE6_BANK1_PIN23_V (1 << 30)
  590. #define PINCTRL_DRIVE6_BANK1_PIN23_MA_MASK (0x3 << 28)
  591. #define PINCTRL_DRIVE6_BANK1_PIN23_MA_OFFSET 28
  592. #define PINCTRL_DRIVE6_BANK1_PIN22_V (1 << 26)
  593. #define PINCTRL_DRIVE6_BANK1_PIN22_MA_MASK (0x3 << 24)
  594. #define PINCTRL_DRIVE6_BANK1_PIN22_MA_OFFSET 24
  595. #define PINCTRL_DRIVE6_BANK1_PIN21_V (1 << 22)
  596. #define PINCTRL_DRIVE6_BANK1_PIN21_MA_MASK (0x3 << 20)
  597. #define PINCTRL_DRIVE6_BANK1_PIN21_MA_OFFSET 20
  598. #define PINCTRL_DRIVE6_BANK1_PIN20_V (1 << 18)
  599. #define PINCTRL_DRIVE6_BANK1_PIN20_MA_MASK (0x3 << 16)
  600. #define PINCTRL_DRIVE6_BANK1_PIN20_MA_OFFSET 16
  601. #define PINCTRL_DRIVE6_BANK1_PIN19_V (1 << 14)
  602. #define PINCTRL_DRIVE6_BANK1_PIN19_MA_MASK (0x3 << 12)
  603. #define PINCTRL_DRIVE6_BANK1_PIN19_MA_OFFSET 12
  604. #define PINCTRL_DRIVE6_BANK1_PIN18_V (1 << 10)
  605. #define PINCTRL_DRIVE6_BANK1_PIN18_MA_MASK (0x3 << 8)
  606. #define PINCTRL_DRIVE6_BANK1_PIN18_MA_OFFSET 8
  607. #define PINCTRL_DRIVE6_BANK1_PIN17_V (1 << 6)
  608. #define PINCTRL_DRIVE6_BANK1_PIN17_MA_MASK (0x3 << 4)
  609. #define PINCTRL_DRIVE6_BANK1_PIN17_MA_OFFSET 4
  610. #define PINCTRL_DRIVE6_BANK1_PIN16_V (1 << 2)
  611. #define PINCTRL_DRIVE6_BANK1_PIN16_MA_MASK (0x3 << 0)
  612. #define PINCTRL_DRIVE6_BANK1_PIN16_MA_OFFSET 0
  613. #define PINCTRL_DRIVE7_BANK1_PIN31_V (1 << 30)
  614. #define PINCTRL_DRIVE7_BANK1_PIN31_MA_MASK (0x3 << 28)
  615. #define PINCTRL_DRIVE7_BANK1_PIN31_MA_OFFSET 28
  616. #define PINCTRL_DRIVE7_BANK1_PIN30_V (1 << 26)
  617. #define PINCTRL_DRIVE7_BANK1_PIN30_MA_MASK (0x3 << 24)
  618. #define PINCTRL_DRIVE7_BANK1_PIN30_MA_OFFSET 24
  619. #define PINCTRL_DRIVE7_BANK1_PIN29_V (1 << 22)
  620. #define PINCTRL_DRIVE7_BANK1_PIN29_MA_MASK (0x3 << 20)
  621. #define PINCTRL_DRIVE7_BANK1_PIN29_MA_OFFSET 20
  622. #define PINCTRL_DRIVE7_BANK1_PIN28_V (1 << 18)
  623. #define PINCTRL_DRIVE7_BANK1_PIN28_MA_MASK (0x3 << 16)
  624. #define PINCTRL_DRIVE7_BANK1_PIN28_MA_OFFSET 16
  625. #define PINCTRL_DRIVE7_BANK1_PIN27_V (1 << 14)
  626. #define PINCTRL_DRIVE7_BANK1_PIN27_MA_MASK (0x3 << 12)
  627. #define PINCTRL_DRIVE7_BANK1_PIN27_MA_OFFSET 12
  628. #define PINCTRL_DRIVE7_BANK1_PIN26_V (1 << 10)
  629. #define PINCTRL_DRIVE7_BANK1_PIN26_MA_MASK (0x3 << 8)
  630. #define PINCTRL_DRIVE7_BANK1_PIN26_MA_OFFSET 8
  631. #define PINCTRL_DRIVE7_BANK1_PIN25_V (1 << 6)
  632. #define PINCTRL_DRIVE7_BANK1_PIN25_MA_MASK (0x3 << 4)
  633. #define PINCTRL_DRIVE7_BANK1_PIN25_MA_OFFSET 4
  634. #define PINCTRL_DRIVE7_BANK1_PIN24_V (1 << 2)
  635. #define PINCTRL_DRIVE7_BANK1_PIN24_MA_MASK (0x3 << 0)
  636. #define PINCTRL_DRIVE7_BANK1_PIN24_MA_OFFSET 0
  637. #define PINCTRL_DRIVE8_BANK2_PIN07_V (1 << 30)
  638. #define PINCTRL_DRIVE8_BANK2_PIN07_MA_MASK (0x3 << 28)
  639. #define PINCTRL_DRIVE8_BANK2_PIN07_MA_OFFSET 28
  640. #define PINCTRL_DRIVE8_BANK2_PIN06_V (1 << 26)
  641. #define PINCTRL_DRIVE8_BANK2_PIN06_MA_MASK (0x3 << 24)
  642. #define PINCTRL_DRIVE8_BANK2_PIN06_MA_OFFSET 24
  643. #define PINCTRL_DRIVE8_BANK2_PIN05_V (1 << 22)
  644. #define PINCTRL_DRIVE8_BANK2_PIN05_MA_MASK (0x3 << 20)
  645. #define PINCTRL_DRIVE8_BANK2_PIN05_MA_OFFSET 20
  646. #define PINCTRL_DRIVE8_BANK2_PIN04_V (1 << 18)
  647. #define PINCTRL_DRIVE8_BANK2_PIN04_MA_MASK (0x3 << 16)
  648. #define PINCTRL_DRIVE8_BANK2_PIN04_MA_OFFSET 16
  649. #define PINCTRL_DRIVE8_BANK2_PIN03_V (1 << 14)
  650. #define PINCTRL_DRIVE8_BANK2_PIN03_MA_MASK (0x3 << 12)
  651. #define PINCTRL_DRIVE8_BANK2_PIN03_MA_OFFSET 12
  652. #define PINCTRL_DRIVE8_BANK2_PIN02_V (1 << 10)
  653. #define PINCTRL_DRIVE8_BANK2_PIN02_MA_MASK (0x3 << 8)
  654. #define PINCTRL_DRIVE8_BANK2_PIN02_MA_OFFSET 8
  655. #define PINCTRL_DRIVE8_BANK2_PIN01_V (1 << 6)
  656. #define PINCTRL_DRIVE8_BANK2_PIN01_MA_MASK (0x3 << 4)
  657. #define PINCTRL_DRIVE8_BANK2_PIN01_MA_OFFSET 4
  658. #define PINCTRL_DRIVE8_BANK2_PIN00_V (1 << 2)
  659. #define PINCTRL_DRIVE8_BANK2_PIN00_MA_MASK (0x3 << 0)
  660. #define PINCTRL_DRIVE8_BANK2_PIN00_MA_OFFSET 0
  661. #define PINCTRL_DRIVE9_BANK2_PIN15_V (1 << 30)
  662. #define PINCTRL_DRIVE9_BANK2_PIN15_MA_MASK (0x3 << 28)
  663. #define PINCTRL_DRIVE9_BANK2_PIN15_MA_OFFSET 28
  664. #define PINCTRL_DRIVE9_BANK2_PIN14_V (1 << 26)
  665. #define PINCTRL_DRIVE9_BANK2_PIN14_MA_MASK (0x3 << 24)
  666. #define PINCTRL_DRIVE9_BANK2_PIN14_MA_OFFSET 24
  667. #define PINCTRL_DRIVE9_BANK2_PIN13_V (1 << 22)
  668. #define PINCTRL_DRIVE9_BANK2_PIN13_MA_MASK (0x3 << 20)
  669. #define PINCTRL_DRIVE9_BANK2_PIN13_MA_OFFSET 20
  670. #define PINCTRL_DRIVE9_BANK2_PIN12_V (1 << 18)
  671. #define PINCTRL_DRIVE9_BANK2_PIN12_MA_MASK (0x3 << 16)
  672. #define PINCTRL_DRIVE9_BANK2_PIN12_MA_OFFSET 16
  673. #define PINCTRL_DRIVE9_BANK2_PIN10_V (1 << 10)
  674. #define PINCTRL_DRIVE9_BANK2_PIN10_MA_MASK (0x3 << 8)
  675. #define PINCTRL_DRIVE9_BANK2_PIN10_MA_OFFSET 8
  676. #define PINCTRL_DRIVE9_BANK2_PIN09_V (1 << 6)
  677. #define PINCTRL_DRIVE9_BANK2_PIN09_MA_MASK (0x3 << 4)
  678. #define PINCTRL_DRIVE9_BANK2_PIN09_MA_OFFSET 4
  679. #define PINCTRL_DRIVE9_BANK2_PIN08_V (1 << 2)
  680. #define PINCTRL_DRIVE9_BANK2_PIN08_MA_MASK (0x3 << 0)
  681. #define PINCTRL_DRIVE9_BANK2_PIN08_MA_OFFSET 0
  682. #define PINCTRL_DRIVE10_BANK2_PIN21_V (1 << 22)
  683. #define PINCTRL_DRIVE10_BANK2_PIN21_MA_MASK (0x3 << 20)
  684. #define PINCTRL_DRIVE10_BANK2_PIN21_MA_OFFSET 20
  685. #define PINCTRL_DRIVE10_BANK2_PIN20_V (1 << 18)
  686. #define PINCTRL_DRIVE10_BANK2_PIN20_MA_MASK (0x3 << 16)
  687. #define PINCTRL_DRIVE10_BANK2_PIN20_MA_OFFSET 16
  688. #define PINCTRL_DRIVE10_BANK2_PIN19_V (1 << 14)
  689. #define PINCTRL_DRIVE10_BANK2_PIN19_MA_MASK (0x3 << 12)
  690. #define PINCTRL_DRIVE10_BANK2_PIN19_MA_OFFSET 12
  691. #define PINCTRL_DRIVE10_BANK2_PIN18_V (1 << 10)
  692. #define PINCTRL_DRIVE10_BANK2_PIN18_MA_MASK (0x3 << 8)
  693. #define PINCTRL_DRIVE10_BANK2_PIN18_MA_OFFSET 8
  694. #define PINCTRL_DRIVE10_BANK2_PIN17_V (1 << 6)
  695. #define PINCTRL_DRIVE10_BANK2_PIN17_MA_MASK (0x3 << 4)
  696. #define PINCTRL_DRIVE10_BANK2_PIN17_MA_OFFSET 4
  697. #define PINCTRL_DRIVE10_BANK2_PIN16_V (1 << 2)
  698. #define PINCTRL_DRIVE10_BANK2_PIN16_MA_MASK (0x3 << 0)
  699. #define PINCTRL_DRIVE10_BANK2_PIN16_MA_OFFSET 0
  700. #define PINCTRL_DRIVE11_BANK2_PIN27_V (1 << 14)
  701. #define PINCTRL_DRIVE11_BANK2_PIN27_MA_MASK (0x3 << 12)
  702. #define PINCTRL_DRIVE11_BANK2_PIN27_MA_OFFSET 12
  703. #define PINCTRL_DRIVE11_BANK2_PIN26_V (1 << 10)
  704. #define PINCTRL_DRIVE11_BANK2_PIN26_MA_MASK (0x3 << 8)
  705. #define PINCTRL_DRIVE11_BANK2_PIN26_MA_OFFSET 8
  706. #define PINCTRL_DRIVE11_BANK2_PIN25_V (1 << 6)
  707. #define PINCTRL_DRIVE11_BANK2_PIN25_MA_MASK (0x3 << 4)
  708. #define PINCTRL_DRIVE11_BANK2_PIN25_MA_OFFSET 4
  709. #define PINCTRL_DRIVE11_BANK2_PIN24_V (1 << 2)
  710. #define PINCTRL_DRIVE11_BANK2_PIN24_MA_MASK (0x3 << 0)
  711. #define PINCTRL_DRIVE11_BANK2_PIN24_MA_OFFSET 0
  712. #define PINCTRL_DRIVE12_BANK3_PIN07_V (1 << 30)
  713. #define PINCTRL_DRIVE12_BANK3_PIN07_MA_MASK (0x3 << 28)
  714. #define PINCTRL_DRIVE12_BANK3_PIN07_MA_OFFSET 28
  715. #define PINCTRL_DRIVE12_BANK3_PIN06_V (1 << 26)
  716. #define PINCTRL_DRIVE12_BANK3_PIN06_MA_MASK (0x3 << 24)
  717. #define PINCTRL_DRIVE12_BANK3_PIN06_MA_OFFSET 24
  718. #define PINCTRL_DRIVE12_BANK3_PIN05_V (1 << 22)
  719. #define PINCTRL_DRIVE12_BANK3_PIN05_MA_MASK (0x3 << 20)
  720. #define PINCTRL_DRIVE12_BANK3_PIN05_MA_OFFSET 20
  721. #define PINCTRL_DRIVE12_BANK3_PIN04_V (1 << 18)
  722. #define PINCTRL_DRIVE12_BANK3_PIN04_MA_MASK (0x3 << 16)
  723. #define PINCTRL_DRIVE12_BANK3_PIN04_MA_OFFSET 16
  724. #define PINCTRL_DRIVE12_BANK3_PIN03_V (1 << 14)
  725. #define PINCTRL_DRIVE12_BANK3_PIN03_MA_MASK (0x3 << 12)
  726. #define PINCTRL_DRIVE12_BANK3_PIN03_MA_OFFSET 12
  727. #define PINCTRL_DRIVE12_BANK3_PIN02_V (1 << 10)
  728. #define PINCTRL_DRIVE12_BANK3_PIN02_MA_MASK (0x3 << 8)
  729. #define PINCTRL_DRIVE12_BANK3_PIN02_MA_OFFSET 8
  730. #define PINCTRL_DRIVE12_BANK3_PIN01_V (1 << 6)
  731. #define PINCTRL_DRIVE12_BANK3_PIN01_MA_MASK (0x3 << 4)
  732. #define PINCTRL_DRIVE12_BANK3_PIN01_MA_OFFSET 4
  733. #define PINCTRL_DRIVE12_BANK3_PIN00_V (1 << 2)
  734. #define PINCTRL_DRIVE12_BANK3_PIN00_MA_MASK (0x3 << 0)
  735. #define PINCTRL_DRIVE12_BANK3_PIN00_MA_OFFSET 0
  736. #define PINCTRL_DRIVE13_BANK3_PIN15_V (1 << 30)
  737. #define PINCTRL_DRIVE13_BANK3_PIN15_MA_MASK (0x3 << 28)
  738. #define PINCTRL_DRIVE13_BANK3_PIN15_MA_OFFSET 28
  739. #define PINCTRL_DRIVE13_BANK3_PIN14_V (1 << 26)
  740. #define PINCTRL_DRIVE13_BANK3_PIN14_MA_MASK (0x3 << 24)
  741. #define PINCTRL_DRIVE13_BANK3_PIN14_MA_OFFSET 24
  742. #define PINCTRL_DRIVE13_BANK3_PIN13_V (1 << 22)
  743. #define PINCTRL_DRIVE13_BANK3_PIN13_MA_MASK (0x3 << 20)
  744. #define PINCTRL_DRIVE13_BANK3_PIN13_MA_OFFSET 20
  745. #define PINCTRL_DRIVE13_BANK3_PIN12_V (1 << 18)
  746. #define PINCTRL_DRIVE13_BANK3_PIN12_MA_MASK (0x3 << 16)
  747. #define PINCTRL_DRIVE13_BANK3_PIN12_MA_OFFSET 16
  748. #define PINCTRL_DRIVE13_BANK3_PIN11_V (1 << 14)
  749. #define PINCTRL_DRIVE13_BANK3_PIN11_MA_MASK (0x3 << 12)
  750. #define PINCTRL_DRIVE13_BANK3_PIN11_MA_OFFSET 12
  751. #define PINCTRL_DRIVE13_BANK3_PIN10_V (1 << 10)
  752. #define PINCTRL_DRIVE13_BANK3_PIN10_MA_MASK (0x3 << 8)
  753. #define PINCTRL_DRIVE13_BANK3_PIN10_MA_OFFSET 8
  754. #define PINCTRL_DRIVE13_BANK3_PIN09_V (1 << 6)
  755. #define PINCTRL_DRIVE13_BANK3_PIN09_MA_MASK (0x3 << 4)
  756. #define PINCTRL_DRIVE13_BANK3_PIN09_MA_OFFSET 4
  757. #define PINCTRL_DRIVE13_BANK3_PIN08_V (1 << 2)
  758. #define PINCTRL_DRIVE13_BANK3_PIN08_MA_MASK (0x3 << 0)
  759. #define PINCTRL_DRIVE13_BANK3_PIN08_MA_OFFSET 0
  760. #define PINCTRL_DRIVE14_BANK3_PIN23_V (1 << 30)
  761. #define PINCTRL_DRIVE14_BANK3_PIN23_MA_MASK (0x3 << 28)
  762. #define PINCTRL_DRIVE14_BANK3_PIN23_MA_OFFSET 28
  763. #define PINCTRL_DRIVE14_BANK3_PIN22_V (1 << 26)
  764. #define PINCTRL_DRIVE14_BANK3_PIN22_MA_MASK (0x3 << 24)
  765. #define PINCTRL_DRIVE14_BANK3_PIN22_MA_OFFSET 24
  766. #define PINCTRL_DRIVE14_BANK3_PIN21_V (1 << 22)
  767. #define PINCTRL_DRIVE14_BANK3_PIN21_MA_MASK (0x3 << 20)
  768. #define PINCTRL_DRIVE14_BANK3_PIN21_MA_OFFSET 20
  769. #define PINCTRL_DRIVE14_BANK3_PIN20_V (1 << 18)
  770. #define PINCTRL_DRIVE14_BANK3_PIN20_MA_MASK (0x3 << 16)
  771. #define PINCTRL_DRIVE14_BANK3_PIN20_MA_OFFSET 16
  772. #define PINCTRL_DRIVE14_BANK3_PIN18_V (1 << 10)
  773. #define PINCTRL_DRIVE14_BANK3_PIN18_MA_MASK (0x3 << 8)
  774. #define PINCTRL_DRIVE14_BANK3_PIN18_MA_OFFSET 8
  775. #define PINCTRL_DRIVE14_BANK3_PIN17_V (1 << 6)
  776. #define PINCTRL_DRIVE14_BANK3_PIN17_MA_MASK (0x3 << 4)
  777. #define PINCTRL_DRIVE14_BANK3_PIN17_MA_OFFSET 4
  778. #define PINCTRL_DRIVE14_BANK3_PIN16_V (1 << 2)
  779. #define PINCTRL_DRIVE14_BANK3_PIN16_MA_MASK (0x3 << 0)
  780. #define PINCTRL_DRIVE14_BANK3_PIN16_MA_OFFSET 0
  781. #define PINCTRL_DRIVE15_BANK3_PIN30_V (1 << 26)
  782. #define PINCTRL_DRIVE15_BANK3_PIN30_MA_MASK (0x3 << 24)
  783. #define PINCTRL_DRIVE15_BANK3_PIN30_MA_OFFSET 24
  784. #define PINCTRL_DRIVE15_BANK3_PIN29_V (1 << 22)
  785. #define PINCTRL_DRIVE15_BANK3_PIN29_MA_MASK (0x3 << 20)
  786. #define PINCTRL_DRIVE15_BANK3_PIN29_MA_OFFSET 20
  787. #define PINCTRL_DRIVE15_BANK3_PIN28_V (1 << 18)
  788. #define PINCTRL_DRIVE15_BANK3_PIN28_MA_MASK (0x3 << 16)
  789. #define PINCTRL_DRIVE15_BANK3_PIN28_MA_OFFSET 16
  790. #define PINCTRL_DRIVE15_BANK3_PIN27_V (1 << 14)
  791. #define PINCTRL_DRIVE15_BANK3_PIN27_MA_MASK (0x3 << 12)
  792. #define PINCTRL_DRIVE15_BANK3_PIN27_MA_OFFSET 12
  793. #define PINCTRL_DRIVE15_BANK3_PIN26_V (1 << 10)
  794. #define PINCTRL_DRIVE15_BANK3_PIN26_MA_MASK (0x3 << 8)
  795. #define PINCTRL_DRIVE15_BANK3_PIN26_MA_OFFSET 8
  796. #define PINCTRL_DRIVE15_BANK3_PIN25_V (1 << 6)
  797. #define PINCTRL_DRIVE15_BANK3_PIN25_MA_MASK (0x3 << 4)
  798. #define PINCTRL_DRIVE15_BANK3_PIN25_MA_OFFSET 4
  799. #define PINCTRL_DRIVE15_BANK3_PIN24_V (1 << 2)
  800. #define PINCTRL_DRIVE15_BANK3_PIN24_MA_MASK (0x3 << 0)
  801. #define PINCTRL_DRIVE15_BANK3_PIN24_MA_OFFSET 0
  802. #define PINCTRL_DRIVE16_BANK4_PIN07_V (1 << 30)
  803. #define PINCTRL_DRIVE16_BANK4_PIN07_MA_MASK (0x3 << 28)
  804. #define PINCTRL_DRIVE16_BANK4_PIN07_MA_OFFSET 28
  805. #define PINCTRL_DRIVE16_BANK4_PIN06_V (1 << 26)
  806. #define PINCTRL_DRIVE16_BANK4_PIN06_MA_MASK (0x3 << 24)
  807. #define PINCTRL_DRIVE16_BANK4_PIN06_MA_OFFSET 24
  808. #define PINCTRL_DRIVE16_BANK4_PIN05_V (1 << 22)
  809. #define PINCTRL_DRIVE16_BANK4_PIN05_MA_MASK (0x3 << 20)
  810. #define PINCTRL_DRIVE16_BANK4_PIN05_MA_OFFSET 20
  811. #define PINCTRL_DRIVE16_BANK4_PIN04_V (1 << 18)
  812. #define PINCTRL_DRIVE16_BANK4_PIN04_MA_MASK (0x3 << 16)
  813. #define PINCTRL_DRIVE16_BANK4_PIN04_MA_OFFSET 16
  814. #define PINCTRL_DRIVE16_BANK4_PIN03_V (1 << 14)
  815. #define PINCTRL_DRIVE16_BANK4_PIN03_MA_MASK (0x3 << 12)
  816. #define PINCTRL_DRIVE16_BANK4_PIN03_MA_OFFSET 12
  817. #define PINCTRL_DRIVE16_BANK4_PIN02_V (1 << 10)
  818. #define PINCTRL_DRIVE16_BANK4_PIN02_MA_MASK (0x3 << 8)
  819. #define PINCTRL_DRIVE16_BANK4_PIN02_MA_OFFSET 8
  820. #define PINCTRL_DRIVE16_BANK4_PIN01_V (1 << 6)
  821. #define PINCTRL_DRIVE16_BANK4_PIN01_MA_MASK (0x3 << 4)
  822. #define PINCTRL_DRIVE16_BANK4_PIN01_MA_OFFSET 4
  823. #define PINCTRL_DRIVE16_BANK4_PIN00_V (1 << 2)
  824. #define PINCTRL_DRIVE16_BANK4_PIN00_MA_MASK (0x3 << 0)
  825. #define PINCTRL_DRIVE16_BANK4_PIN00_MA_OFFSET 0
  826. #define PINCTRL_DRIVE17_BANK4_PIN15_V (1 << 30)
  827. #define PINCTRL_DRIVE17_BANK4_PIN15_MA_MASK (0x3 << 28)
  828. #define PINCTRL_DRIVE17_BANK4_PIN15_MA_OFFSET 28
  829. #define PINCTRL_DRIVE17_BANK4_PIN14_V (1 << 26)
  830. #define PINCTRL_DRIVE17_BANK4_PIN14_MA_MASK (0x3 << 24)
  831. #define PINCTRL_DRIVE17_BANK4_PIN14_MA_OFFSET 24
  832. #define PINCTRL_DRIVE17_BANK4_PIN13_V (1 << 22)
  833. #define PINCTRL_DRIVE17_BANK4_PIN13_MA_MASK (0x3 << 20)
  834. #define PINCTRL_DRIVE17_BANK4_PIN13_MA_OFFSET 20
  835. #define PINCTRL_DRIVE17_BANK4_PIN12_V (1 << 18)
  836. #define PINCTRL_DRIVE17_BANK4_PIN12_MA_MASK (0x3 << 16)
  837. #define PINCTRL_DRIVE17_BANK4_PIN12_MA_OFFSET 16
  838. #define PINCTRL_DRIVE17_BANK4_PIN11_V (1 << 14)
  839. #define PINCTRL_DRIVE17_BANK4_PIN11_MA_MASK (0x3 << 12)
  840. #define PINCTRL_DRIVE17_BANK4_PIN11_MA_OFFSET 12
  841. #define PINCTRL_DRIVE17_BANK4_PIN10_V (1 << 10)
  842. #define PINCTRL_DRIVE17_BANK4_PIN10_MA_MASK (0x3 << 8)
  843. #define PINCTRL_DRIVE17_BANK4_PIN10_MA_OFFSET 8
  844. #define PINCTRL_DRIVE17_BANK4_PIN09_V (1 << 6)
  845. #define PINCTRL_DRIVE17_BANK4_PIN09_MA_MASK (0x3 << 4)
  846. #define PINCTRL_DRIVE17_BANK4_PIN09_MA_OFFSET 4
  847. #define PINCTRL_DRIVE17_BANK4_PIN08_V (1 << 2)
  848. #define PINCTRL_DRIVE17_BANK4_PIN08_MA_MASK (0x3 << 0)
  849. #define PINCTRL_DRIVE17_BANK4_PIN08_MA_OFFSET 0
  850. #define PINCTRL_DRIVE18_BANK4_PIN20_V (1 << 18)
  851. #define PINCTRL_DRIVE18_BANK4_PIN20_MA_MASK (0x3 << 16)
  852. #define PINCTRL_DRIVE18_BANK4_PIN20_MA_OFFSET 16
  853. #define PINCTRL_DRIVE18_BANK4_PIN16_V (1 << 2)
  854. #define PINCTRL_DRIVE18_BANK4_PIN16_MA_MASK (0x3 << 0)
  855. #define PINCTRL_DRIVE18_BANK4_PIN16_MA_OFFSET 0
  856. #define PINCTRL_PULL0_BANK0_PIN28 (1 << 28)
  857. #define PINCTRL_PULL0_BANK0_PIN27 (1 << 27)
  858. #define PINCTRL_PULL0_BANK0_PIN26 (1 << 26)
  859. #define PINCTRL_PULL0_BANK0_PIN25 (1 << 25)
  860. #define PINCTRL_PULL0_BANK0_PIN24 (1 << 24)
  861. #define PINCTRL_PULL0_BANK0_PIN23 (1 << 23)
  862. #define PINCTRL_PULL0_BANK0_PIN22 (1 << 22)
  863. #define PINCTRL_PULL0_BANK0_PIN21 (1 << 21)
  864. #define PINCTRL_PULL0_BANK0_PIN20 (1 << 20)
  865. #define PINCTRL_PULL0_BANK0_PIN19 (1 << 19)
  866. #define PINCTRL_PULL0_BANK0_PIN18 (1 << 18)
  867. #define PINCTRL_PULL0_BANK0_PIN17 (1 << 17)
  868. #define PINCTRL_PULL0_BANK0_PIN16 (1 << 16)
  869. #define PINCTRL_PULL0_BANK0_PIN07 (1 << 7)
  870. #define PINCTRL_PULL0_BANK0_PIN06 (1 << 6)
  871. #define PINCTRL_PULL0_BANK0_PIN05 (1 << 5)
  872. #define PINCTRL_PULL0_BANK0_PIN04 (1 << 4)
  873. #define PINCTRL_PULL0_BANK0_PIN03 (1 << 3)
  874. #define PINCTRL_PULL0_BANK0_PIN02 (1 << 2)
  875. #define PINCTRL_PULL0_BANK0_PIN01 (1 << 1)
  876. #define PINCTRL_PULL0_BANK0_PIN00 (1 << 0)
  877. #define PINCTRL_PULL1_BANK1_PIN31 (1 << 31)
  878. #define PINCTRL_PULL1_BANK1_PIN30 (1 << 30)
  879. #define PINCTRL_PULL1_BANK1_PIN29 (1 << 29)
  880. #define PINCTRL_PULL1_BANK1_PIN28 (1 << 28)
  881. #define PINCTRL_PULL1_BANK1_PIN27 (1 << 27)
  882. #define PINCTRL_PULL1_BANK1_PIN26 (1 << 26)
  883. #define PINCTRL_PULL1_BANK1_PIN25 (1 << 25)
  884. #define PINCTRL_PULL1_BANK1_PIN24 (1 << 24)
  885. #define PINCTRL_PULL1_BANK1_PIN23 (1 << 23)
  886. #define PINCTRL_PULL1_BANK1_PIN22 (1 << 22)
  887. #define PINCTRL_PULL1_BANK1_PIN21 (1 << 21)
  888. #define PINCTRL_PULL1_BANK1_PIN20 (1 << 20)
  889. #define PINCTRL_PULL1_BANK1_PIN19 (1 << 19)
  890. #define PINCTRL_PULL1_BANK1_PIN18 (1 << 18)
  891. #define PINCTRL_PULL1_BANK1_PIN17 (1 << 17)
  892. #define PINCTRL_PULL1_BANK1_PIN16 (1 << 16)
  893. #define PINCTRL_PULL1_BANK1_PIN15 (1 << 15)
  894. #define PINCTRL_PULL1_BANK1_PIN14 (1 << 14)
  895. #define PINCTRL_PULL1_BANK1_PIN13 (1 << 13)
  896. #define PINCTRL_PULL1_BANK1_PIN12 (1 << 12)
  897. #define PINCTRL_PULL1_BANK1_PIN11 (1 << 11)
  898. #define PINCTRL_PULL1_BANK1_PIN10 (1 << 10)
  899. #define PINCTRL_PULL1_BANK1_PIN09 (1 << 9)
  900. #define PINCTRL_PULL1_BANK1_PIN08 (1 << 8)
  901. #define PINCTRL_PULL1_BANK1_PIN07 (1 << 7)
  902. #define PINCTRL_PULL1_BANK1_PIN06 (1 << 6)
  903. #define PINCTRL_PULL1_BANK1_PIN05 (1 << 5)
  904. #define PINCTRL_PULL1_BANK1_PIN04 (1 << 4)
  905. #define PINCTRL_PULL1_BANK1_PIN03 (1 << 3)
  906. #define PINCTRL_PULL1_BANK1_PIN02 (1 << 2)
  907. #define PINCTRL_PULL1_BANK1_PIN01 (1 << 1)
  908. #define PINCTRL_PULL1_BANK1_PIN00 (1 << 0)
  909. #define PINCTRL_PULL2_BANK2_PIN27 (1 << 27)
  910. #define PINCTRL_PULL2_BANK2_PIN26 (1 << 26)
  911. #define PINCTRL_PULL2_BANK2_PIN25 (1 << 25)
  912. #define PINCTRL_PULL2_BANK2_PIN24 (1 << 24)
  913. #define PINCTRL_PULL2_BANK2_PIN21 (1 << 21)
  914. #define PINCTRL_PULL2_BANK2_PIN20 (1 << 20)
  915. #define PINCTRL_PULL2_BANK2_PIN19 (1 << 19)
  916. #define PINCTRL_PULL2_BANK2_PIN18 (1 << 18)
  917. #define PINCTRL_PULL2_BANK2_PIN17 (1 << 17)
  918. #define PINCTRL_PULL2_BANK2_PIN16 (1 << 16)
  919. #define PINCTRL_PULL2_BANK2_PIN15 (1 << 15)
  920. #define PINCTRL_PULL2_BANK2_PIN14 (1 << 14)
  921. #define PINCTRL_PULL2_BANK2_PIN13 (1 << 13)
  922. #define PINCTRL_PULL2_BANK2_PIN12 (1 << 12)
  923. #define PINCTRL_PULL2_BANK2_PIN10 (1 << 10)
  924. #define PINCTRL_PULL2_BANK2_PIN09 (1 << 9)
  925. #define PINCTRL_PULL2_BANK2_PIN08 (1 << 8)
  926. #define PINCTRL_PULL2_BANK2_PIN07 (1 << 7)
  927. #define PINCTRL_PULL2_BANK2_PIN06 (1 << 6)
  928. #define PINCTRL_PULL2_BANK2_PIN05 (1 << 5)
  929. #define PINCTRL_PULL2_BANK2_PIN04 (1 << 4)
  930. #define PINCTRL_PULL2_BANK2_PIN03 (1 << 3)
  931. #define PINCTRL_PULL2_BANK2_PIN02 (1 << 2)
  932. #define PINCTRL_PULL2_BANK2_PIN01 (1 << 1)
  933. #define PINCTRL_PULL2_BANK2_PIN00 (1 << 0)
  934. #define PINCTRL_PULL3_BANK3_PIN30 (1 << 30)
  935. #define PINCTRL_PULL3_BANK3_PIN29 (1 << 29)
  936. #define PINCTRL_PULL3_BANK3_PIN28 (1 << 28)
  937. #define PINCTRL_PULL3_BANK3_PIN27 (1 << 27)
  938. #define PINCTRL_PULL3_BANK3_PIN26 (1 << 26)
  939. #define PINCTRL_PULL3_BANK3_PIN25 (1 << 25)
  940. #define PINCTRL_PULL3_BANK3_PIN24 (1 << 24)
  941. #define PINCTRL_PULL3_BANK3_PIN23 (1 << 23)
  942. #define PINCTRL_PULL3_BANK3_PIN22 (1 << 22)
  943. #define PINCTRL_PULL3_BANK3_PIN21 (1 << 21)
  944. #define PINCTRL_PULL3_BANK3_PIN20 (1 << 20)
  945. #define PINCTRL_PULL3_BANK3_PIN18 (1 << 18)
  946. #define PINCTRL_PULL3_BANK3_PIN17 (1 << 17)
  947. #define PINCTRL_PULL3_BANK3_PIN16 (1 << 16)
  948. #define PINCTRL_PULL3_BANK3_PIN15 (1 << 15)
  949. #define PINCTRL_PULL3_BANK3_PIN14 (1 << 14)
  950. #define PINCTRL_PULL3_BANK3_PIN13 (1 << 13)
  951. #define PINCTRL_PULL3_BANK3_PIN12 (1 << 12)
  952. #define PINCTRL_PULL3_BANK3_PIN11 (1 << 11)
  953. #define PINCTRL_PULL3_BANK3_PIN10 (1 << 10)
  954. #define PINCTRL_PULL3_BANK3_PIN09 (1 << 9)
  955. #define PINCTRL_PULL3_BANK3_PIN08 (1 << 8)
  956. #define PINCTRL_PULL3_BANK3_PIN07 (1 << 7)
  957. #define PINCTRL_PULL3_BANK3_PIN06 (1 << 6)
  958. #define PINCTRL_PULL3_BANK3_PIN05 (1 << 5)
  959. #define PINCTRL_PULL3_BANK3_PIN04 (1 << 4)
  960. #define PINCTRL_PULL3_BANK3_PIN03 (1 << 3)
  961. #define PINCTRL_PULL3_BANK3_PIN02 (1 << 2)
  962. #define PINCTRL_PULL3_BANK3_PIN01 (1 << 1)
  963. #define PINCTRL_PULL3_BANK3_PIN00 (1 << 0)
  964. #define PINCTRL_PULL4_BANK4_PIN20 (1 << 20)
  965. #define PINCTRL_PULL4_BANK4_PIN16 (1 << 16)
  966. #define PINCTRL_PULL4_BANK4_PIN15 (1 << 15)
  967. #define PINCTRL_PULL4_BANK4_PIN14 (1 << 14)
  968. #define PINCTRL_PULL4_BANK4_PIN13 (1 << 13)
  969. #define PINCTRL_PULL4_BANK4_PIN12 (1 << 12)
  970. #define PINCTRL_PULL4_BANK4_PIN11 (1 << 11)
  971. #define PINCTRL_PULL4_BANK4_PIN10 (1 << 10)
  972. #define PINCTRL_PULL4_BANK4_PIN09 (1 << 9)
  973. #define PINCTRL_PULL4_BANK4_PIN08 (1 << 8)
  974. #define PINCTRL_PULL4_BANK4_PIN07 (1 << 7)
  975. #define PINCTRL_PULL4_BANK4_PIN06 (1 << 6)
  976. #define PINCTRL_PULL4_BANK4_PIN05 (1 << 5)
  977. #define PINCTRL_PULL4_BANK4_PIN04 (1 << 4)
  978. #define PINCTRL_PULL4_BANK4_PIN03 (1 << 3)
  979. #define PINCTRL_PULL4_BANK4_PIN02 (1 << 2)
  980. #define PINCTRL_PULL4_BANK4_PIN01 (1 << 1)
  981. #define PINCTRL_PULL4_BANK4_PIN00 (1 << 0)
  982. #define PINCTRL_PULL5_BANK5_PIN26 (1 << 26)
  983. #define PINCTRL_PULL5_BANK5_PIN23 (1 << 23)
  984. #define PINCTRL_PULL5_BANK5_PIN22 (1 << 22)
  985. #define PINCTRL_PULL5_BANK5_PIN21 (1 << 21)
  986. #define PINCTRL_PULL5_BANK5_PIN20 (1 << 20)
  987. #define PINCTRL_PULL5_BANK5_PIN19 (1 << 19)
  988. #define PINCTRL_PULL5_BANK5_PIN18 (1 << 18)
  989. #define PINCTRL_PULL5_BANK5_PIN17 (1 << 17)
  990. #define PINCTRL_PULL5_BANK5_PIN16 (1 << 16)
  991. #define PINCTRL_PULL5_BANK5_PIN15 (1 << 15)
  992. #define PINCTRL_PULL5_BANK5_PIN14 (1 << 14)
  993. #define PINCTRL_PULL5_BANK5_PIN13 (1 << 13)
  994. #define PINCTRL_PULL5_BANK5_PIN12 (1 << 12)
  995. #define PINCTRL_PULL5_BANK5_PIN11 (1 << 11)
  996. #define PINCTRL_PULL5_BANK5_PIN10 (1 << 10)
  997. #define PINCTRL_PULL5_BANK5_PIN09 (1 << 9)
  998. #define PINCTRL_PULL5_BANK5_PIN08 (1 << 8)
  999. #define PINCTRL_PULL5_BANK5_PIN07 (1 << 7)
  1000. #define PINCTRL_PULL5_BANK5_PIN06 (1 << 6)
  1001. #define PINCTRL_PULL5_BANK5_PIN05 (1 << 5)
  1002. #define PINCTRL_PULL5_BANK5_PIN04 (1 << 4)
  1003. #define PINCTRL_PULL5_BANK5_PIN03 (1 << 3)
  1004. #define PINCTRL_PULL5_BANK5_PIN02 (1 << 2)
  1005. #define PINCTRL_PULL5_BANK5_PIN01 (1 << 1)
  1006. #define PINCTRL_PULL5_BANK5_PIN00 (1 << 0)
  1007. #define PINCTRL_PULL6_BANK6_PIN24 (1 << 24)
  1008. #define PINCTRL_PULL6_BANK6_PIN23 (1 << 23)
  1009. #define PINCTRL_PULL6_BANK6_PIN22 (1 << 22)
  1010. #define PINCTRL_PULL6_BANK6_PIN21 (1 << 21)
  1011. #define PINCTRL_PULL6_BANK6_PIN20 (1 << 20)
  1012. #define PINCTRL_PULL6_BANK6_PIN19 (1 << 19)
  1013. #define PINCTRL_PULL6_BANK6_PIN18 (1 << 18)
  1014. #define PINCTRL_PULL6_BANK6_PIN17 (1 << 17)
  1015. #define PINCTRL_PULL6_BANK6_PIN16 (1 << 16)
  1016. #define PINCTRL_PULL6_BANK6_PIN14 (1 << 14)
  1017. #define PINCTRL_PULL6_BANK6_PIN13 (1 << 13)
  1018. #define PINCTRL_PULL6_BANK6_PIN12 (1 << 12)
  1019. #define PINCTRL_PULL6_BANK6_PIN11 (1 << 11)
  1020. #define PINCTRL_PULL6_BANK6_PIN10 (1 << 10)
  1021. #define PINCTRL_PULL6_BANK6_PIN09 (1 << 9)
  1022. #define PINCTRL_PULL6_BANK6_PIN08 (1 << 8)
  1023. #define PINCTRL_PULL6_BANK6_PIN07 (1 << 7)
  1024. #define PINCTRL_PULL6_BANK6_PIN06 (1 << 6)
  1025. #define PINCTRL_PULL6_BANK6_PIN05 (1 << 5)
  1026. #define PINCTRL_PULL6_BANK6_PIN04 (1 << 4)
  1027. #define PINCTRL_PULL6_BANK6_PIN03 (1 << 3)
  1028. #define PINCTRL_PULL6_BANK6_PIN02 (1 << 2)
  1029. #define PINCTRL_PULL6_BANK6_PIN01 (1 << 1)
  1030. #define PINCTRL_PULL6_BANK6_PIN00 (1 << 0)
  1031. #define PINCTRL_DOUT0_DOUT_MASK 0x1fffffff
  1032. #define PINCTRL_DOUT0_DOUT_OFFSET 0
  1033. #define PINCTRL_DOUT1_DOUT_MASK 0xffffffff
  1034. #define PINCTRL_DOUT1_DOUT_OFFSET 0
  1035. #define PINCTRL_DOUT2_DOUT_MASK 0xfffffff
  1036. #define PINCTRL_DOUT2_DOUT_OFFSET 0
  1037. #define PINCTRL_DOUT3_DOUT_MASK 0x7fffffff
  1038. #define PINCTRL_DOUT3_DOUT_OFFSET 0
  1039. #define PINCTRL_DOUT4_DOUT_MASK 0x1fffff
  1040. #define PINCTRL_DOUT4_DOUT_OFFSET 0
  1041. #define PINCTRL_DIN0_DIN_MASK 0x1fffffff
  1042. #define PINCTRL_DIN0_DIN_OFFSET 0
  1043. #define PINCTRL_DIN1_DIN_MASK 0xffffffff
  1044. #define PINCTRL_DIN1_DIN_OFFSET 0
  1045. #define PINCTRL_DIN2_DIN_MASK 0xfffffff
  1046. #define PINCTRL_DIN2_DIN_OFFSET 0
  1047. #define PINCTRL_DIN3_DIN_MASK 0x7fffffff
  1048. #define PINCTRL_DIN3_DIN_OFFSET 0
  1049. #define PINCTRL_DIN4_DIN_MASK 0x1fffff
  1050. #define PINCTRL_DIN4_DIN_OFFSET 0
  1051. #define PINCTRL_DOE0_DOE_MASK 0x1fffffff
  1052. #define PINCTRL_DOE0_DOE_OFFSET 0
  1053. #define PINCTRL_DOE1_DOE_MASK 0xffffffff
  1054. #define PINCTRL_DOE1_DOE_OFFSET 0
  1055. #define PINCTRL_DOE2_DOE_MASK 0xfffffff
  1056. #define PINCTRL_DOE2_DOE_OFFSET 0
  1057. #define PINCTRL_DOE3_DOE_MASK 0x7fffffff
  1058. #define PINCTRL_DOE3_DOE_OFFSET 0
  1059. #define PINCTRL_DOE4_DOE_MASK 0x1fffff
  1060. #define PINCTRL_DOE4_DOE_OFFSET 0
  1061. #define PINCTRL_PIN2IRQ0_PIN2IRQ_MASK 0x1fffffff
  1062. #define PINCTRL_PIN2IRQ0_PIN2IRQ_OFFSET 0
  1063. #define PINCTRL_PIN2IRQ1_PIN2IRQ_MASK 0xffffffff
  1064. #define PINCTRL_PIN2IRQ1_PIN2IRQ_OFFSET 0
  1065. #define PINCTRL_PIN2IRQ2_PIN2IRQ_MASK 0xfffffff
  1066. #define PINCTRL_PIN2IRQ2_PIN2IRQ_OFFSET 0
  1067. #define PINCTRL_PIN2IRQ3_PIN2IRQ_MASK 0x7fffffff
  1068. #define PINCTRL_PIN2IRQ3_PIN2IRQ_OFFSET 0
  1069. #define PINCTRL_PIN2IRQ4_PIN2IRQ_MASK 0x1fffff
  1070. #define PINCTRL_PIN2IRQ4_PIN2IRQ_OFFSET 0
  1071. #define PINCTRL_IRQEN0_IRQEN_MASK 0x1fffffff
  1072. #define PINCTRL_IRQEN0_IRQEN_OFFSET 0
  1073. #define PINCTRL_IRQEN1_IRQEN_MASK 0xffffffff
  1074. #define PINCTRL_IRQEN1_IRQEN_OFFSET 0
  1075. #define PINCTRL_IRQEN2_IRQEN_MASK 0xfffffff
  1076. #define PINCTRL_IRQEN2_IRQEN_OFFSET 0
  1077. #define PINCTRL_IRQEN3_IRQEN_MASK 0x7fffffff
  1078. #define PINCTRL_IRQEN3_IRQEN_OFFSET 0
  1079. #define PINCTRL_IRQEN4_IRQEN_MASK 0x1fffff
  1080. #define PINCTRL_IRQEN4_IRQEN_OFFSET 0
  1081. #define PINCTRL_IRQLEVEL0_IRQLEVEL_MASK 0x1fffffff
  1082. #define PINCTRL_IRQLEVEL0_IRQLEVEL_OFFSET 0
  1083. #define PINCTRL_IRQLEVEL1_IRQLEVEL_MASK 0xffffffff
  1084. #define PINCTRL_IRQLEVEL1_IRQLEVEL_OFFSET 0
  1085. #define PINCTRL_IRQLEVEL2_IRQLEVEL_MASK 0xfffffff
  1086. #define PINCTRL_IRQLEVEL2_IRQLEVEL_OFFSET 0
  1087. #define PINCTRL_IRQLEVEL3_IRQLEVEL_MASK 0x7fffffff
  1088. #define PINCTRL_IRQLEVEL3_IRQLEVEL_OFFSET 0
  1089. #define PINCTRL_IRQLEVEL4_IRQLEVEL_MASK 0x1fffff
  1090. #define PINCTRL_IRQLEVEL4_IRQLEVEL_OFFSET 0
  1091. #define PINCTRL_IRQPOL0_IRQPOL_MASK 0x1fffffff
  1092. #define PINCTRL_IRQPOL0_IRQPOL_OFFSET 0
  1093. #define PINCTRL_IRQPOL1_IRQPOL_MASK 0xffffffff
  1094. #define PINCTRL_IRQPOL1_IRQPOL_OFFSET 0
  1095. #define PINCTRL_IRQPOL2_IRQPOL_MASK 0xfffffff
  1096. #define PINCTRL_IRQPOL2_IRQPOL_OFFSET 0
  1097. #define PINCTRL_IRQPOL3_IRQPOL_MASK 0x7fffffff
  1098. #define PINCTRL_IRQPOL3_IRQPOL_OFFSET 0
  1099. #define PINCTRL_IRQPOL4_IRQPOL_MASK 0x1fffff
  1100. #define PINCTRL_IRQPOL4_IRQPOL_OFFSET 0
  1101. #define PINCTRL_IRQSTAT0_IRQSTAT_MASK 0x1fffffff
  1102. #define PINCTRL_IRQSTAT0_IRQSTAT_OFFSET 0
  1103. #define PINCTRL_IRQSTAT1_IRQSTAT_MASK 0xffffffff
  1104. #define PINCTRL_IRQSTAT1_IRQSTAT_OFFSET 0
  1105. #define PINCTRL_IRQSTAT2_IRQSTAT_MASK 0xfffffff
  1106. #define PINCTRL_IRQSTAT2_IRQSTAT_OFFSET 0
  1107. #define PINCTRL_IRQSTAT3_IRQSTAT_MASK 0x7fffffff
  1108. #define PINCTRL_IRQSTAT3_IRQSTAT_OFFSET 0
  1109. #define PINCTRL_IRQSTAT4_IRQSTAT_MASK 0x1fffff
  1110. #define PINCTRL_IRQSTAT4_IRQSTAT_OFFSET 0
  1111. #define PINCTRL_EMI_ODT_CTRL_ADDRESS_CALIB_MASK (0x3 << 26)
  1112. #define PINCTRL_EMI_ODT_CTRL_ADDRESS_CALIB_OFFSET 26
  1113. #define PINCTRL_EMI_ODT_CTRL_ADDRESS_TLOAD_MASK (0x3 << 24)
  1114. #define PINCTRL_EMI_ODT_CTRL_ADDRESS_TLOAD_OFFSET 24
  1115. #define PINCTRL_EMI_ODT_CTRL_CONTROL_CALIB_MASK (0x3 << 22)
  1116. #define PINCTRL_EMI_ODT_CTRL_CONTROL_CALIB_OFFSET 22
  1117. #define PINCTRL_EMI_ODT_CTRL_CONTROL_TLOAD_MASK (0x3 << 20)
  1118. #define PINCTRL_EMI_ODT_CTRL_CONTROL_TLOAD_OFFSET 20
  1119. #define PINCTRL_EMI_ODT_CTRL_DUALPAD_CALIB_MASK (0x3 << 18)
  1120. #define PINCTRL_EMI_ODT_CTRL_DUALPAD_CALIB_OFFSET 18
  1121. #define PINCTRL_EMI_ODT_CTRL_DUALPAD_TLOAD_MASK (0x3 << 16)
  1122. #define PINCTRL_EMI_ODT_CTRL_DUALPAD_TLOAD_OFFSET 16
  1123. #define PINCTRL_EMI_ODT_CTRL_SLICE3_CALIB_MASK (0x3 << 14)
  1124. #define PINCTRL_EMI_ODT_CTRL_SLICE3_CALIB_OFFSET 14
  1125. #define PINCTRL_EMI_ODT_CTRL_SLICE3_TLOAD_MASK (0x3 << 12)
  1126. #define PINCTRL_EMI_ODT_CTRL_SLICE3_TLOAD_OFFSET 12
  1127. #define PINCTRL_EMI_ODT_CTRL_SLICE2_CALIB_MASK (0x3 << 10)
  1128. #define PINCTRL_EMI_ODT_CTRL_SLICE2_CALIB_OFFSET 10
  1129. #define PINCTRL_EMI_ODT_CTRL_SLICE2_TLOAD_MASK (0x3 << 8)
  1130. #define PINCTRL_EMI_ODT_CTRL_SLICE2_TLOAD_OFFSET 8
  1131. #define PINCTRL_EMI_ODT_CTRL_SLICE1_CALIB_MASK (0x3 << 6)
  1132. #define PINCTRL_EMI_ODT_CTRL_SLICE1_CALIB_OFFSET 6
  1133. #define PINCTRL_EMI_ODT_CTRL_SLICE1_TLOAD_MASK (0x3 << 4)
  1134. #define PINCTRL_EMI_ODT_CTRL_SLICE1_TLOAD_OFFSET 4
  1135. #define PINCTRL_EMI_ODT_CTRL_SLICE0_CALIB_MASK (0x3 << 2)
  1136. #define PINCTRL_EMI_ODT_CTRL_SLICE0_CALIB_OFFSET 2
  1137. #define PINCTRL_EMI_ODT_CTRL_SLICE0_TLOAD_MASK (0x3 << 0)
  1138. #define PINCTRL_EMI_ODT_CTRL_SLICE0_TLOAD_OFFSET 0
  1139. #define PINCTRL_EMI_DS_CTRL_DDR_MODE_MASK (0x3 << 16)
  1140. #define PINCTRL_EMI_DS_CTRL_DDR_MODE_OFFSET 16
  1141. #define PINCTRL_EMI_DS_CTRL_DDR_MODE_mDDR (0x0 << 16)
  1142. #define PINCTRL_EMI_DS_CTRL_DDR_MODE_GPIO (0x1 << 16)
  1143. #define PINCTRL_EMI_DS_CTRL_DDR_MODE_LVDDR2 (0x2 << 16)
  1144. #define PINCTRL_EMI_DS_CTRL_DDR_MODE_DDR2 (0x3 << 16)
  1145. #define PINCTRL_EMI_DS_CTRL_ADDRESS_MA_MASK (0x3 << 12)
  1146. #define PINCTRL_EMI_DS_CTRL_ADDRESS_MA_OFFSET 12
  1147. #define PINCTRL_EMI_DS_CTRL_CONTROL_MA_MASK (0x3 << 10)
  1148. #define PINCTRL_EMI_DS_CTRL_CONTROL_MA_OFFSET 10
  1149. #define PINCTRL_EMI_DS_CTRL_DUALPAD_MA_MASK (0x3 << 8)
  1150. #define PINCTRL_EMI_DS_CTRL_DUALPAD_MA_OFFSET 8
  1151. #define PINCTRL_EMI_DS_CTRL_SLICE3_MA_MASK (0x3 << 6)
  1152. #define PINCTRL_EMI_DS_CTRL_SLICE3_MA_OFFSET 6
  1153. #define PINCTRL_EMI_DS_CTRL_SLICE2_MA_MASK (0x3 << 4)
  1154. #define PINCTRL_EMI_DS_CTRL_SLICE2_MA_OFFSET 4
  1155. #define PINCTRL_EMI_DS_CTRL_SLICE1_MA_MASK (0x3 << 2)
  1156. #define PINCTRL_EMI_DS_CTRL_SLICE1_MA_OFFSET 2
  1157. #define PINCTRL_EMI_DS_CTRL_SLICE0_MA_MASK (0x3 << 0)
  1158. #define PINCTRL_EMI_DS_CTRL_SLICE0_MA_OFFSET 0
  1159. #endif /* __MX28_REGS_PINCTRL_H__ */