GpioPinsSklH.h 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. /** @file
  2. GPIO pins
  3. Copyright (c) 2019 Intel Corporation. All rights reserved. <BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _GPIO_PINS_SKL_H_H_
  7. #define _GPIO_PINS_SKL_H_H_
  8. ///
  9. /// This header file should be used together with
  10. /// PCH GPIO lib in C and ASL. All defines used
  11. /// must match both ASL/C syntax
  12. ///
  13. ///
  14. /// Use below for functions from PCH GPIO Lib which
  15. /// require GpioGroup as argument
  16. ///
  17. #define GPIO_SKL_H_GROUP_GPP_A 0x0100
  18. #define GPIO_SKL_H_GROUP_GPP_B 0x0101
  19. #define GPIO_SKL_H_GROUP_GPP_C 0x0102
  20. #define GPIO_SKL_H_GROUP_GPP_D 0x0103
  21. #define GPIO_SKL_H_GROUP_GPP_E 0x0104
  22. #define GPIO_SKL_H_GROUP_GPP_F 0x0105
  23. #define GPIO_SKL_H_GROUP_GPP_G 0x0106
  24. #define GPIO_SKL_H_GROUP_GPP_H 0x0107
  25. #define GPIO_SKL_H_GROUP_GPP_I 0x0108
  26. #define GPIO_SKL_H_GROUP_GPD 0x0109
  27. ///
  28. /// Use below for functions from PCH GPIO Lib which
  29. /// require GpioPad as argument. Encoding used here
  30. /// has all information required by library functions
  31. ///
  32. #define GPIO_SKL_H_GPP_A0 0x01000000
  33. #define GPIO_SKL_H_GPP_A1 0x01000001
  34. #define GPIO_SKL_H_GPP_A2 0x01000002
  35. #define GPIO_SKL_H_GPP_A3 0x01000003
  36. #define GPIO_SKL_H_GPP_A4 0x01000004
  37. #define GPIO_SKL_H_GPP_A5 0x01000005
  38. #define GPIO_SKL_H_GPP_A6 0x01000006
  39. #define GPIO_SKL_H_GPP_A7 0x01000007
  40. #define GPIO_SKL_H_GPP_A8 0x01000008
  41. #define GPIO_SKL_H_GPP_A9 0x01000009
  42. #define GPIO_SKL_H_GPP_A10 0x0100000A
  43. #define GPIO_SKL_H_GPP_A11 0x0100000B
  44. #define GPIO_SKL_H_GPP_A12 0x0100000C
  45. #define GPIO_SKL_H_GPP_A13 0x0100000D
  46. #define GPIO_SKL_H_GPP_A14 0x0100000E
  47. #define GPIO_SKL_H_GPP_A15 0x0100000F
  48. #define GPIO_SKL_H_GPP_A16 0x01000010
  49. #define GPIO_SKL_H_GPP_A17 0x01000011
  50. #define GPIO_SKL_H_GPP_A18 0x01000012
  51. #define GPIO_SKL_H_GPP_A19 0x01000013
  52. #define GPIO_SKL_H_GPP_A20 0x01000014
  53. #define GPIO_SKL_H_GPP_A21 0x01000015
  54. #define GPIO_SKL_H_GPP_A22 0x01000016
  55. #define GPIO_SKL_H_GPP_A23 0x01000017
  56. #define GPIO_SKL_H_GPP_B0 0x01010000
  57. #define GPIO_SKL_H_GPP_B1 0x01010001
  58. #define GPIO_SKL_H_GPP_B2 0x01010002
  59. #define GPIO_SKL_H_GPP_B3 0x01010003
  60. #define GPIO_SKL_H_GPP_B4 0x01010004
  61. #define GPIO_SKL_H_GPP_B5 0x01010005
  62. #define GPIO_SKL_H_GPP_B6 0x01010006
  63. #define GPIO_SKL_H_GPP_B7 0x01010007
  64. #define GPIO_SKL_H_GPP_B8 0x01010008
  65. #define GPIO_SKL_H_GPP_B9 0x01010009
  66. #define GPIO_SKL_H_GPP_B10 0x0101000A
  67. #define GPIO_SKL_H_GPP_B11 0x0101000B
  68. #define GPIO_SKL_H_GPP_B12 0x0101000C
  69. #define GPIO_SKL_H_GPP_B13 0x0101000D
  70. #define GPIO_SKL_H_GPP_B14 0x0101000E
  71. #define GPIO_SKL_H_GPP_B15 0x0101000F
  72. #define GPIO_SKL_H_GPP_B16 0x01010010
  73. #define GPIO_SKL_H_GPP_B17 0x01010011
  74. #define GPIO_SKL_H_GPP_B18 0x01010012
  75. #define GPIO_SKL_H_GPP_B19 0x01010013
  76. #define GPIO_SKL_H_GPP_B20 0x01010014
  77. #define GPIO_SKL_H_GPP_B21 0x01010015
  78. #define GPIO_SKL_H_GPP_B22 0x01010016
  79. #define GPIO_SKL_H_GPP_B23 0x01010017
  80. #define GPIO_SKL_H_GPP_C0 0x01020000
  81. #define GPIO_SKL_H_GPP_C1 0x01020001
  82. #define GPIO_SKL_H_GPP_C2 0x01020002
  83. #define GPIO_SKL_H_GPP_C3 0x01020003
  84. #define GPIO_SKL_H_GPP_C4 0x01020004
  85. #define GPIO_SKL_H_GPP_C5 0x01020005
  86. #define GPIO_SKL_H_GPP_C6 0x01020006
  87. #define GPIO_SKL_H_GPP_C7 0x01020007
  88. #define GPIO_SKL_H_GPP_C8 0x01020008
  89. #define GPIO_SKL_H_GPP_C9 0x01020009
  90. #define GPIO_SKL_H_GPP_C10 0x0102000A
  91. #define GPIO_SKL_H_GPP_C11 0x0102000B
  92. #define GPIO_SKL_H_GPP_C12 0x0102000C
  93. #define GPIO_SKL_H_GPP_C13 0x0102000D
  94. #define GPIO_SKL_H_GPP_C14 0x0102000E
  95. #define GPIO_SKL_H_GPP_C15 0x0102000F
  96. #define GPIO_SKL_H_GPP_C16 0x01020010
  97. #define GPIO_SKL_H_GPP_C17 0x01020011
  98. #define GPIO_SKL_H_GPP_C18 0x01020012
  99. #define GPIO_SKL_H_GPP_C19 0x01020013
  100. #define GPIO_SKL_H_GPP_C20 0x01020014
  101. #define GPIO_SKL_H_GPP_C21 0x01020015
  102. #define GPIO_SKL_H_GPP_C22 0x01020016
  103. #define GPIO_SKL_H_GPP_C23 0x01020017
  104. #define GPIO_SKL_H_GPP_D0 0x01030000
  105. #define GPIO_SKL_H_GPP_D1 0x01030001
  106. #define GPIO_SKL_H_GPP_D2 0x01030002
  107. #define GPIO_SKL_H_GPP_D3 0x01030003
  108. #define GPIO_SKL_H_GPP_D4 0x01030004
  109. #define GPIO_SKL_H_GPP_D5 0x01030005
  110. #define GPIO_SKL_H_GPP_D6 0x01030006
  111. #define GPIO_SKL_H_GPP_D7 0x01030007
  112. #define GPIO_SKL_H_GPP_D8 0x01030008
  113. #define GPIO_SKL_H_GPP_D9 0x01030009
  114. #define GPIO_SKL_H_GPP_D10 0x0103000A
  115. #define GPIO_SKL_H_GPP_D11 0x0103000B
  116. #define GPIO_SKL_H_GPP_D12 0x0103000C
  117. #define GPIO_SKL_H_GPP_D13 0x0103000D
  118. #define GPIO_SKL_H_GPP_D14 0x0103000E
  119. #define GPIO_SKL_H_GPP_D15 0x0103000F
  120. #define GPIO_SKL_H_GPP_D16 0x01030010
  121. #define GPIO_SKL_H_GPP_D17 0x01030011
  122. #define GPIO_SKL_H_GPP_D18 0x01030012
  123. #define GPIO_SKL_H_GPP_D19 0x01030013
  124. #define GPIO_SKL_H_GPP_D20 0x01030014
  125. #define GPIO_SKL_H_GPP_D21 0x01030015
  126. #define GPIO_SKL_H_GPP_D22 0x01030016
  127. #define GPIO_SKL_H_GPP_D23 0x01030017
  128. #define GPIO_SKL_H_GPP_E0 0x01040000
  129. #define GPIO_SKL_H_GPP_E1 0x01040001
  130. #define GPIO_SKL_H_GPP_E2 0x01040002
  131. #define GPIO_SKL_H_GPP_E3 0x01040003
  132. #define GPIO_SKL_H_GPP_E4 0x01040004
  133. #define GPIO_SKL_H_GPP_E5 0x01040005
  134. #define GPIO_SKL_H_GPP_E6 0x01040006
  135. #define GPIO_SKL_H_GPP_E7 0x01040007
  136. #define GPIO_SKL_H_GPP_E8 0x01040008
  137. #define GPIO_SKL_H_GPP_E9 0x01040009
  138. #define GPIO_SKL_H_GPP_E10 0x0104000A
  139. #define GPIO_SKL_H_GPP_E11 0x0104000B
  140. #define GPIO_SKL_H_GPP_E12 0x0104000C
  141. #define GPIO_SKL_H_GPP_F0 0x01050000
  142. #define GPIO_SKL_H_GPP_F1 0x01050001
  143. #define GPIO_SKL_H_GPP_F2 0x01050002
  144. #define GPIO_SKL_H_GPP_F3 0x01050003
  145. #define GPIO_SKL_H_GPP_F4 0x01050004
  146. #define GPIO_SKL_H_GPP_F5 0x01050005
  147. #define GPIO_SKL_H_GPP_F6 0x01050006
  148. #define GPIO_SKL_H_GPP_F7 0x01050007
  149. #define GPIO_SKL_H_GPP_F8 0x01050008
  150. #define GPIO_SKL_H_GPP_F9 0x01050009
  151. #define GPIO_SKL_H_GPP_F10 0x0105000A
  152. #define GPIO_SKL_H_GPP_F11 0x0105000B
  153. #define GPIO_SKL_H_GPP_F12 0x0105000C
  154. #define GPIO_SKL_H_GPP_F13 0x0105000D
  155. #define GPIO_SKL_H_GPP_F14 0x0105000E
  156. #define GPIO_SKL_H_GPP_F15 0x0105000F
  157. #define GPIO_SKL_H_GPP_F16 0x01050010
  158. #define GPIO_SKL_H_GPP_F17 0x01050011
  159. #define GPIO_SKL_H_GPP_F18 0x01050012
  160. #define GPIO_SKL_H_GPP_F19 0x01050013
  161. #define GPIO_SKL_H_GPP_F20 0x01050014
  162. #define GPIO_SKL_H_GPP_F21 0x01050015
  163. #define GPIO_SKL_H_GPP_F22 0x01050016
  164. #define GPIO_SKL_H_GPP_F23 0x01050017
  165. #define GPIO_SKL_H_GPP_G0 0x01060000
  166. #define GPIO_SKL_H_GPP_G1 0x01060001
  167. #define GPIO_SKL_H_GPP_G2 0x01060002
  168. #define GPIO_SKL_H_GPP_G3 0x01060003
  169. #define GPIO_SKL_H_GPP_G4 0x01060004
  170. #define GPIO_SKL_H_GPP_G5 0x01060005
  171. #define GPIO_SKL_H_GPP_G6 0x01060006
  172. #define GPIO_SKL_H_GPP_G7 0x01060007
  173. #define GPIO_SKL_H_GPP_G8 0x01060008
  174. #define GPIO_SKL_H_GPP_G9 0x01060009
  175. #define GPIO_SKL_H_GPP_G10 0x0106000A
  176. #define GPIO_SKL_H_GPP_G11 0x0106000B
  177. #define GPIO_SKL_H_GPP_G12 0x0106000C
  178. #define GPIO_SKL_H_GPP_G13 0x0106000D
  179. #define GPIO_SKL_H_GPP_G14 0x0106000E
  180. #define GPIO_SKL_H_GPP_G15 0x0106000F
  181. #define GPIO_SKL_H_GPP_G16 0x01060010
  182. #define GPIO_SKL_H_GPP_G17 0x01060011
  183. #define GPIO_SKL_H_GPP_G18 0x01060012
  184. #define GPIO_SKL_H_GPP_G19 0x01060013
  185. #define GPIO_SKL_H_GPP_G20 0x01060014
  186. #define GPIO_SKL_H_GPP_G21 0x01060015
  187. #define GPIO_SKL_H_GPP_G22 0x01060016
  188. #define GPIO_SKL_H_GPP_G23 0x01060017
  189. #define GPIO_SKL_H_GPP_H0 0x01070000
  190. #define GPIO_SKL_H_GPP_H1 0x01070001
  191. #define GPIO_SKL_H_GPP_H2 0x01070002
  192. #define GPIO_SKL_H_GPP_H3 0x01070003
  193. #define GPIO_SKL_H_GPP_H4 0x01070004
  194. #define GPIO_SKL_H_GPP_H5 0x01070005
  195. #define GPIO_SKL_H_GPP_H6 0x01070006
  196. #define GPIO_SKL_H_GPP_H7 0x01070007
  197. #define GPIO_SKL_H_GPP_H8 0x01070008
  198. #define GPIO_SKL_H_GPP_H9 0x01070009
  199. #define GPIO_SKL_H_GPP_H10 0x0107000A
  200. #define GPIO_SKL_H_GPP_H11 0x0107000B
  201. #define GPIO_SKL_H_GPP_H12 0x0107000C
  202. #define GPIO_SKL_H_GPP_H13 0x0107000D
  203. #define GPIO_SKL_H_GPP_H14 0x0107000E
  204. #define GPIO_SKL_H_GPP_H15 0x0107000F
  205. #define GPIO_SKL_H_GPP_H16 0x01070010
  206. #define GPIO_SKL_H_GPP_H17 0x01070011
  207. #define GPIO_SKL_H_GPP_H18 0x01070012
  208. #define GPIO_SKL_H_GPP_H19 0x01070013
  209. #define GPIO_SKL_H_GPP_H20 0x01070014
  210. #define GPIO_SKL_H_GPP_H21 0x01070015
  211. #define GPIO_SKL_H_GPP_H22 0x01070016
  212. #define GPIO_SKL_H_GPP_H23 0x01070017
  213. #define GPIO_SKL_H_GPP_I0 0x01080000
  214. #define GPIO_SKL_H_GPP_I1 0x01080001
  215. #define GPIO_SKL_H_GPP_I2 0x01080002
  216. #define GPIO_SKL_H_GPP_I3 0x01080003
  217. #define GPIO_SKL_H_GPP_I4 0x01080004
  218. #define GPIO_SKL_H_GPP_I5 0x01080005
  219. #define GPIO_SKL_H_GPP_I6 0x01080006
  220. #define GPIO_SKL_H_GPP_I7 0x01080007
  221. #define GPIO_SKL_H_GPP_I8 0x01080008
  222. #define GPIO_SKL_H_GPP_I9 0x01080009
  223. #define GPIO_SKL_H_GPP_I10 0x0108000A
  224. #define GPIO_SKL_H_GPD0 0x01090000
  225. #define GPIO_SKL_H_GPD1 0x01090001
  226. #define GPIO_SKL_H_GPD2 0x01090002
  227. #define GPIO_SKL_H_GPD3 0x01090003
  228. #define GPIO_SKL_H_GPD4 0x01090004
  229. #define GPIO_SKL_H_GPD5 0x01090005
  230. #define GPIO_SKL_H_GPD6 0x01090006
  231. #define GPIO_SKL_H_GPD7 0x01090007
  232. #define GPIO_SKL_H_GPD8 0x01090008
  233. #define GPIO_SKL_H_GPD9 0x01090009
  234. #define GPIO_SKL_H_GPD10 0x0109000A
  235. #define GPIO_SKL_H_GPD11 0x0109000B
  236. #endif