coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <soc/gpio.h>
4 #include <variant/gpio.h>
5 
6 static const struct pad_config gpio_table[] = {
7  /* ------- GPIO Group GPD ------- */
8  PAD_CFG_NF(GPD0, NONE, DEEP, NF1), // PM_BATLOW#
9  PAD_CFG_NF(GPD1, NATIVE, DEEP, NF1), // AC_PRESENT
10  PAD_CFG_GPI(GPD2, NATIVE, PWROK), // LAN_WAKEUP#
11  PAD_CFG_NF(GPD3, UP_20K, DEEP, NF1), // PWR_BTN#
12  PAD_CFG_NF(GPD4, NONE, DEEP, NF1), // SUSB#_PCH
13  PAD_CFG_NF(GPD5, NONE, DEEP, NF1), // SUSC#_PCH
14  PAD_NC(GPD6, NONE),
15  PAD_CFG_GPI(GPD7, UP_20K, PWROK), /* GPD_7: crystal input
16  low = single ended,
17  high = differential
18  */
19  PAD_CFG_NF(GPD8, NONE, DEEP, NF1), // SUS_CLK
20  PAD_NC(GPD9, NONE),
21  PAD_CFG_NF(GPD10, NONE, DEEP, NF1), // SLP_S5#
22  PAD_NC(GPD11, NONE),
23 
24  /* ------- GPIO Group GPP_A ------- */
25  PAD_CFG_NF(GPP_A0, NONE, DEEP, NF1), // SB_KBCRST#
26  PAD_CFG_NF(GPP_A1, NONE, DEEP, NF1), // LPC_AD0
27  PAD_CFG_NF(GPP_A2, NONE, DEEP, NF1), // LPC_AD1
28  PAD_CFG_NF(GPP_A3, NONE, DEEP, NF1), // LPC_AD2
29  PAD_CFG_NF(GPP_A4, NONE, DEEP, NF1), // LPC_AD3
30  PAD_CFG_NF(GPP_A5, NONE, DEEP, NF1), // LPC_FRAME#
31  PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1), // SERIRQ
32  PAD_CFG_NF(GPP_A7, NONE, DEEP, NF1), // LPC_PIRQA#
33  PAD_CFG_NF(GPP_A8, NONE, DEEP, NF1), // PM_CLKRUN#
34  PAD_CFG_NF(GPP_A9, NONE, DEEP, NF1), // PCLK_KBC
36  PAD_CFG_GPI(GPP_A11, UP_20K, DEEP), // LAN_WAKEUP#
37  PAD_CFG_GPO(GPP_A12, 1, DEEP), // ROM_I2C_EN
38  PAD_NC(GPP_A13, NONE), // SUSWARN# (test point)
40  PAD_NC(GPP_A15, NONE), // SUS_PWR_ACK# (test point)
43  PAD_NC(GPP_A18, NONE), // GPP_A18 (test point)
44  PAD_CFG_GPO(GPP_A19, 1, DEEP), // SB_BLON
46  PAD_CFG_GPI(GPP_A21, UP_20K, DEEP), // EAPD_MODE
47  PAD_CFG_GPO(GPP_A22, 1, DEEP), // WLAN_SSD2_GPIO1
48  PAD_CFG_GPO(GPP_A23, 1, DEEP), // WLAN_SSD2_GPIO
49 
50  /* ------- GPIO Group GPP_B ------- */
51  _PAD_CFG_STRUCT(GPP_B0, 0x42080100, 0x3000), // TPM_PIRQ#
52  PAD_NC(GPP_B1, NONE),
53  PAD_NC(GPP_B2, NONE),
54  PAD_CFG_GPO(GPP_B3, 1, DEEP), // BT_EN
55  PAD_CFG_GPO(GPP_B4, 1, DEEP), // WLAN_EN
56  PAD_CFG_NF(GPP_B5, NONE, DEEP, NF1), // TBT_CLKREQ#
57  PAD_CFG_GPI(GPP_B6, NONE, DEEP), // DDS_ID0
58  PAD_CFG_GPO(GPP_B7, 1, PLTRST), // CR_GPIO_RST#
59  PAD_CFG_GPO(GPP_B8, 1, PLTRST), // CR_GPIO_WAKE#
60  PAD_CFG_GPI(GPP_B9, NONE, DEEP), // DDS_DET
61  PAD_CFG_GPI(GPP_B10, NONE, DEEP), // GSYNC_DET
63  PAD_CFG_GPI(GPP_B12, UP_20K, DEEP), // SLP_S0#
64  PAD_CFG_NF(GPP_B13, NONE, DEEP, NF1), // PLT_RST#
65  PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1), // PCH_SPKR
69  PAD_NC(GPP_B18, NONE), // LPSS_GSPI0_MOSI (test point)
73  PAD_CFG_GPI(GPP_B22, UP_20K, DEEP), // LPSS_GSPI1_MOSI (boot strap)
74  PAD_CFG_NF(GPP_B23, NONE, DEEP, NF2), // PCH_HOT_GNSS_DISABLE (boot strap)
75 
76  /* ------- GPIO Group GPP_C ------- */
77  PAD_CFG_NF(GPP_C0, NONE, DEEP, NF1), // SMB_CLK
78  PAD_CFG_NF(GPP_C1, NONE, DEEP, NF1), // SMB_DATA
79  PAD_CFG_GPI(GPP_C2, UP_20K, DEEP), // CNVI_WAKE#
80  PAD_NC(GPP_C3, NONE),
81  PAD_NC(GPP_C4, NONE),
82  PAD_CFG_GPI(GPP_C5, UP_20K, DEEP), // WLAN_WAKEUP#
83  PAD_CFG_GPI(GPP_C6, UP_20K, DEEP), // SMC_CPU_THERM
84  PAD_CFG_GPI(GPP_C7, UP_20K, DEEP), // SMD_CPU_THERM
85  PAD_CFG_GPI(GPP_C8, NONE, PLTRST), // TPM_DET
86  PAD_CFG_GPI(GPP_C9, NONE, DEEP), // CNVI_DET#
91  //PAD_CFG_GPO(GPP_C14, 1, RSMRST), // M.2_PLT_RST_CNTRL1#
92  //PAD_CFG_GPO(GPP_C15, 1, RSMRST), // M.2_PLT_RST_CNTRL2#
93  PAD_CFG_NF(GPP_C16, NONE, PLTRST, NF1), // I2C_SDA_TP
94  PAD_CFG_NF(GPP_C17, NONE, PLTRST, NF1), // I2C_SCL_TP
95  PAD_CFG_NF(GPP_C18, NONE, PLTRST, NF1), // I2C_SDA_Pantone
96  PAD_CFG_NF(GPP_C19, NONE, PLTRST, NF1), // I2C_SCL_Pantone
97  PAD_CFG_GPI(GPP_C20, UP_20K, DEEP), // CNVI_MFUART2_RXD
98  PAD_CFG_GPI(GPP_C21, UP_20K, DEEP), // CNVI_MFUART2_TXD
99  PAD_CFG_GPI(GPP_C22, UP_20K, DEEP), // LAN_PLT_RST#
100  PAD_NC(GPP_C23, UP_20K),
101 
102  /* ------- GPIO Group GPP_D ------- */
103  PAD_NC(GPP_D0, NONE),
104  PAD_NC(GPP_D1, NONE),
105  PAD_NC(GPP_D2, NONE),
106  PAD_NC(GPP_D3, NONE),
107  PAD_CFG_NF(GPP_D4, NONE, PLTRST, NF2), // I2C_SDA_PDROM
108  PAD_CFG_NF(GPP_D5, NONE, DEEP, NF3), // CNVI_RST#
109  PAD_CFG_NF(GPP_D6, NONE, DEEP, NF3), // CNVI_CLKREQ
110  PAD_NC(GPP_D7, NONE), // M.2_BT_PCMIN (test point)
111  PAD_NC(GPP_D8, NONE), // M.2_BT_PCMCLK (test point)
112  PAD_NC(GPP_D9, NONE),
113  PAD_NC(GPP_D10, NONE),
114  PAD_NC(GPP_D11, NONE),
115  PAD_NC(GPP_D12, NONE),
116  PAD_NC(GPP_D13, NONE),
117  PAD_NC(GPP_D14, NONE),
118  PAD_NC(GPP_D15, NONE),
119  PAD_NC(GPP_D16, NONE),
120  PAD_NC(GPP_D17, NONE),
121  PAD_NC(GPP_D18, NONE),
122  PAD_NC(GPP_D19, NONE),
123  PAD_NC(GPP_D20, NONE),
124  PAD_NC(GPP_D21, NONE),
125  PAD_NC(GPP_D22, NONE),
126  PAD_CFG_NF(GPP_D23, NONE, PLTRST, NF2), // I2C_SCL_PDROM
127 
128  /* ------- GPIO Group GPP_E ------- */
129  PAD_NC(GPP_E0, NONE),
130  PAD_CFG_NF(GPP_E1, NONE, DEEP, NF1), // M.2_SSD1_PEDET
131  PAD_NC(GPP_E2, NONE),
132  PAD_CFG_GPI(GPP_E3, NONE, DEEP), // 10k pull up
133  PAD_NC(GPP_E4, NONE),
134  PAD_CFG_NF(GPP_E5, NONE, DEEP, NF1), // M2_P1_SATA_DEVSLP
135  _PAD_CFG_STRUCT(GPP_E6, 0x82040100, 0x0000), // SMI#
136  PAD_CFG_GPI_APIC_LOW(GPP_E7, NONE, PLTRST), // TP_ATTN#
137  PAD_CFG_NF(GPP_E8, NONE, DEEP, NF1), // PCH_SATAHDD_LED#
138  PAD_NC(GPP_E9, NONE), // USB_OC0# (test point)
139  PAD_NC(GPP_E10, NONE), // USB_OC1# (test point)
140  PAD_NC(GPP_E11, NONE), // USB_OC2# (test point)
141  PAD_NC(GPP_E12, NONE), // USB_OC3# (test point)
142 
143  /* ------- GPIO Group GPP_F ------- */
144  //PAD_CFG_GPO(GPP_F0, 1, RSMRST), // TBT_PERST_N
145  PAD_CFG_GPI(GPP_F1, NONE, DEEP), // M.2_SSD2_PEDET (board error)
146  PAD_CFG_GPI(GPP_F2, NONE, DEEP), // TBTA_HRESET
147  PAD_NC(GPP_F3, NONE),
148  PAD_NC(GPP_F4, NONE),
149  PAD_NC(GPP_F5, NONE), // PLVDD_RST_EC
150  PAD_CFG_NF(GPP_F6, NONE, DEEP, NF1), // M2_P4_SATA_DEVSLP (board error)
151  PAD_NC(GPP_F7, NONE), // BL_PWM_EN_EC
152  PAD_NC(GPP_F8, NONE), // MUX_CTRL_BIOS
153  PAD_NC(GPP_F9, NONE), // PS8461_SW
154  PAD_CFG_GPI(GPP_F10, UP_20K, DEEP), // BIOS_REC
155  PAD_CFG_GPI(GPP_F11, UP_20K, DEEP), // PCH_RSVD
156  PAD_NC(GPP_F12, NONE),
157  PAD_CFG_GPI(GPP_F13, UP_20K, DEEP), // GP39_GFX_CRB_DETECT
158  PAD_CFG_GPI(GPP_F14, UP_20K, DEEP), // 10k pull to H_SKTOCC_N
159  PAD_NC(GPP_F15, NONE), // USB_OC4# (test point)
160  PAD_NC(GPP_F16, NONE),
161  PAD_NC(GPP_F17, NONE),
162  PAD_NC(GPP_F18, NONE), // USB_OC7# (test point)
163  PAD_CFG_NF(GPP_F19, NONE, DEEP, NF1), // NB_ENAVDD
164  PAD_CFG_NF(GPP_F20, NONE, DEEP, NF1), // BLON
165  PAD_CFG_NF(GPP_F21, NONE, DEEP, NF1), // EDP_BRIGHTNESS
166  //PAD_CFG_GPO(GPP_F22, 0, DEEP), // DGPU_RST#_PCH
167  //PAD_CFG_GPO(GPP_F23, 0, DEEP), // DGPU_PWR_EN
168 
169  /* ------- GPIO Group GPP_G ------- */
170  PAD_CFG_GPI(GPP_G0, DN_20K, DEEP), // BOARD_ID1
171  PAD_CFG_GPI(GPP_G1, DN_20K, DEEP), // BOARD_ID2
172  PAD_CFG_GPI(GPP_G2, DN_20K, DEEP), // BOARD_ID3
173  PAD_CFG_GPI(GPP_G3, DN_20K, DEEP), // BOARD_ID4
174  PAD_CFG_GPI(GPP_G4, UP_20K, DEEP), // GPIO4_NVVDD_EN_R
175  PAD_NC(GPP_G5, NONE),
176  PAD_NC(GPP_G6, NONE),
177  PAD_NC(GPP_G7, NONE),
178 
179  /* ------- GPIO Group GPP_H ------- */
180  PAD_CFG_NF(GPP_H0, NONE, DEEP, NF1), // WLAN_CLKREQ#
181  PAD_CFG_NF(GPP_H1, NONE, DEEP, NF1), // CLK_REQ7_LAN#
182  PAD_CFG_NF(GPP_H2, NONE, DEEP, NF1), // CLK_REQ8_PEG#
183  PAD_CFG_NF(GPP_H3, NONE, DEEP, NF1), // CLK_REQ9_CARD#
184  _PAD_CFG_STRUCT(GPP_H4, 0x40880100, 0x3000), // RTD3_PCIE_WAKE#
185  PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1), // CLK_REQ11_SSD2#
186  PAD_CFG_NF(GPP_H6, NONE, DEEP, NF1), // CLK_REQ12_SSD1#
187  PAD_NC(GPP_H7, NONE),
188  PAD_NC(GPP_H8, NONE),
189  PAD_NC(GPP_H9, NONE),
190  PAD_NC(GPP_H10, NONE),
191  PAD_NC(GPP_H11, NONE),
192  PAD_NC(GPP_H12, NONE), // eSPI flash sharing mode strap
193  PAD_CFG_GPI(GPP_H13, NONE, DEEP), // 100k pull up
194  PAD_NC(GPP_H14, NONE),
195  PAD_CFG_GPI(GPP_H15, NONE, DEEP), // 100k pull up
196  //PAD_CFG_GPO(GPP_H16, 1, RSMRST), // TBT_RTD3_PWR_EN_R
197  PAD_CFG_GPO(GPP_H17, 1, PLTRST), // TBT_FORCE_PWR_R
198  PAD_NC(GPP_H18, NONE),
199  PAD_CFG_GPO(GPP_H19, 1, DEEP), // GPIO_CARD_AUX
200  PAD_CFG_GPO(GPP_H20, 1, DEEP), // GPIO_CARD
201  PAD_CFG_GPI(GPP_H21, UP_20K, DEEP), // 20k pull down, 4.7k pull up
202  PAD_NC(GPP_H22, NONE),
203  PAD_CFG_GPI(GPP_H23, NONE, DEEP), // DGPU_SELECT#
204 
205  /* ------- GPIO Group GPP_I ------- */
206  PAD_NC(GPP_I0, NONE),
207  _PAD_CFG_STRUCT(GPP_I1, 0x46880100, 0x0000), // HDMI_HPD
208  _PAD_CFG_STRUCT(GPP_I2, 0x46880100, 0x0000), // G_DP_DHPD_E
209  _PAD_CFG_STRUCT(GPP_I3, 0x46880100, 0x0000), // OUT2_HPD
210  PAD_CFG_NF(GPP_I4, NONE, DEEP, NF1), // SB_IEDP_HPD
211  PAD_NC(GPP_I5, NONE),
212  PAD_NC(GPP_I6, NONE),
213  PAD_NC(GPP_I7, NONE),
214  PAD_NC(GPP_I8, NONE),
215  PAD_NC(GPP_I9, NONE),
216  _PAD_CFG_STRUCT(GPP_I10, 0x82880100, 0x0000), // TBCIO_PLUG_EVENT
217  PAD_CFG_GPI(GPP_I11, UP_20K, DEEP), // 10k pull to H_SKTOCC_N, 10k pull up
218  PAD_CFG_GPI(GPP_I12, DN_20K, DEEP), // D02C_BOARD_ID (10k pull up)
219  PAD_NC(GPP_I13, NONE),
220  PAD_NC(GPP_I14, NONE),
221 
222  /* ------- GPIO Group GPP_J ------- */
223  PAD_CFG_NF(GPP_J0, NONE, DEEP, NF1), // CNVI_GNSS_PA_BLANKING
224  PAD_CFG_NF(GPP_J1, NONE, DEEP, NF1), // CPU_VCCIO_PWR_GATE
225  PAD_CFG_GPI(GPP_J2, UP_20K, DEEP), // 100k pull down
226  PAD_NC(GPP_J3, NONE),
227  PAD_CFG_NF(GPP_J4, NONE, DEEP, NF1), // M.2_CNV_BRI_DT_BT_UART0_RTS
228  PAD_CFG_NF(GPP_J5, UP_20K, DEEP, NF1), // M.2_CNV_BRI_RSP
229  PAD_CFG_NF(GPP_J6, NONE, DEEP, NF1), // M.2_CNV_RGI_DT_BT_UART0_TX
230  PAD_CFG_NF(GPP_J7, UP_20K, DEEP, NF1), // M.2_CNV_RGI_RSP
231  PAD_NC(GPP_J8, NONE),
232  PAD_CFG_GPI(GPP_J9, UP_20K, DEEP), // 100k pull up, 100k pull down
233  PAD_CFG_GPI(GPP_J10, UP_20K, DEEP), // 100k pull down
234  PAD_CFG_GPI(GPP_J11, UP_20K, DEEP), // 75k pull down
235 
236  /* ------- GPIO Group GPP_K ------- */
237  PAD_NC(GPP_K0, NONE),
238  PAD_NC(GPP_K1, NONE),
239  PAD_NC(GPP_K2, NONE),
240  _PAD_CFG_STRUCT(GPP_K3, 0x80880100, 0x3000), // SCI#
241  PAD_NC(GPP_K4, NONE),
242  PAD_NC(GPP_K5, NONE),
243  _PAD_CFG_STRUCT(GPP_K6, 0x40880100, 0x0000), // SWI#
244  PAD_NC(GPP_K7, NONE),
245  //PAD_CFG_GPO(GPP_K8, 1, RSMRST), // SATA_M2_PWR_EN1
246  //PAD_CFG_GPO(GPP_K9, 1, RSMRST), // SATA_M2_PWR_EN2
247  PAD_CFG_GPO(GPP_K10, 1, DEEP), // LANRTD3_WAKE#
248  //PAD_CFG_GPO(GPP_K11, 1, RSMRST), // GPIO_LANRTD3
249  PAD_NC(GPP_K12, NONE),
250  PAD_NC(GPP_K13, NONE),
251  PAD_CFG_GPI(GPP_K14, UP_20K, DEEP), // GPP_K_14_GSXDIN (test point)
252  PAD_NC(GPP_K15, NONE),
253  PAD_NC(GPP_K16, NONE),
254  PAD_NC(GPP_K17, NONE),
255  PAD_NC(GPP_K18, NONE),
256  PAD_CFG_GPI(GPP_K19, UP_20K, DEEP), // SMI#
257  PAD_NC(GPP_K20, NONE),
258  PAD_CFG_GPI(GPP_K21, NONE, DEEP), // GC6_FB_EN_PCH
259  PAD_CFG_GPO(GPP_K22, 0, DEEP), // OVRM
260  PAD_CFG_GPI(GPP_K23, NONE, DEEP), // DGPU_PWRGD_R
261 };
262 
264 {
266 }
#define GPD11
#define GPP_A4
#define GPP_H22
#define GPD3
#define GPP_H20
#define GPP_B6
Definition: gpio_soc_defs.h:59
#define GPP_H19
#define GPP_D1
#define GPD9
#define GPP_C2
#define GPP_D10
#define GPP_D8
#define GPP_D17
#define GPP_E3
#define GPP_A18
#define GPP_F21
#define GPP_C12
#define GPP_F12
#define GPP_F16
#define GPP_H15
#define GPP_E0
#define GPP_F6
#define GPP_H18
#define GPP_D14
#define GPP_B1
Definition: gpio_soc_defs.h:54
#define GPP_F20
#define GPP_C5
#define GPP_H11
#define GPP_A14
#define GPP_B12
Definition: gpio_soc_defs.h:65
#define GPP_H17
#define GPP_D12
#define GPP_B16
Definition: gpio_soc_defs.h:69
#define GPP_A5
#define GPP_B2
Definition: gpio_soc_defs.h:55
#define GPP_D7
#define GPP_B13
Definition: gpio_soc_defs.h:66
#define GPP_E6
#define GPP_D6
#define GPP_A19
#define GPP_D2
#define GPP_H12
#define GPP_H6
#define GPP_C9
#define GPP_H2
#define GPP_C22
#define GPP_H9
#define GPD0
#define GPP_D9
#define GPP_F5
#define GPP_B15
Definition: gpio_soc_defs.h:68
#define GPP_A2
#define GPP_H21
#define GPP_C23
#define GPP_H13
#define GPP_C8
#define GPP_D11
#define GPP_H7
#define GPP_A6
#define GPP_H1
#define GPP_C11
#define GPP_H14
#define GPP_D5
#define GPP_B22
Definition: gpio_soc_defs.h:75
#define GPP_A23
#define GPP_C18
#define GPP_F9
#define GPP_C13
#define GPP_E9
#define GPP_C17
#define GPP_E8
#define GPP_A7
#define GPP_E5
#define GPP_A0
#define GPD7
#define GPP_B8
Definition: gpio_soc_defs.h:61
#define GPP_C20
#define GPP_B20
Definition: gpio_soc_defs.h:73
#define GPP_A20
#define GPP_A16
#define GPP_F1
#define GPP_F17
#define GPP_A12
#define GPP_F15
#define GPP_D4
#define GPP_C10
#define GPP_C6
#define GPD2
#define GPP_F10
#define GPP_A3
#define GPP_E7
#define GPP_C16
#define GPP_F7
#define GPD1
#define GPP_F13
#define GPP_C4
#define GPP_D18
#define GPP_B19
Definition: gpio_soc_defs.h:72
#define GPP_E2
#define GPP_H0
#define GPP_H5
#define GPP_C21
#define GPP_B9
Definition: gpio_soc_defs.h:62
#define GPD10
#define GPP_F14
#define GPP_H3
#define GPP_F4
#define GPP_A10
#define GPP_A8
#define GPP_D0
#define GPP_A1
#define GPP_B14
Definition: gpio_soc_defs.h:67
#define GPP_B11
Definition: gpio_soc_defs.h:64
#define GPP_D13
#define GPP_B18
Definition: gpio_soc_defs.h:71
#define GPP_B5
Definition: gpio_soc_defs.h:58
#define GPP_B0
Definition: gpio_soc_defs.h:53
#define GPP_A11
#define GPP_A15
#define GPP_A9
#define GPP_E10
#define GPP_F8
#define GPP_C19
#define GPD8
#define GPP_A13
#define GPP_A21
#define GPP_B23
Definition: gpio_soc_defs.h:76
#define GPP_B10
Definition: gpio_soc_defs.h:63
#define GPP_D19
#define GPP_C1
#define GPP_F2
#define GPP_E11
#define GPD6
#define GPP_F18
#define GPP_B3
Definition: gpio_soc_defs.h:56
#define GPP_A22
#define GPP_D15
#define GPP_F11
#define GPP_B21
Definition: gpio_soc_defs.h:74
#define GPD4
#define GPP_B4
Definition: gpio_soc_defs.h:57
#define GPP_D16
#define GPP_F3
#define GPP_H10
#define GPP_C3
#define GPP_E12
#define GPP_A17
#define GPP_B17
Definition: gpio_soc_defs.h:70
#define GPP_E4
#define GPP_C0
#define GPD5
#define GPP_E1
#define GPP_H8
#define GPP_F19
#define GPP_H4
#define GPP_H23
#define GPP_B7
Definition: gpio_soc_defs.h:60
#define GPP_C7
#define GPP_D3
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define GPP_D23
#define GPP_G1
Definition: gpio_soc_defs.h:89
#define GPP_G7
Definition: gpio_soc_defs.h:95
#define GPP_D22
#define GPP_G4
Definition: gpio_soc_defs.h:92
#define GPP_G2
Definition: gpio_soc_defs.h:90
#define GPP_D21
#define GPP_G6
Definition: gpio_soc_defs.h:94
#define GPP_G0
Definition: gpio_soc_defs.h:88
#define GPP_D20
#define GPP_G3
Definition: gpio_soc_defs.h:91
#define GPP_G5
Definition: gpio_soc_defs.h:93
#define GPP_K4
#define GPP_I12
#define GPP_I5
#define GPP_J7
#define GPP_J4
#define GPP_K2
#define GPP_J5
#define GPP_K16
#define GPP_I10
#define GPP_K13
#define GPP_J8
#define GPP_J0
#define GPP_J2
#define GPP_J9
#define GPP_I8
#define GPP_J1
#define GPP_J6
#define GPP_K18
#define GPP_I7
#define GPP_I3
#define GPP_I6
#define GPP_J10
#define GPP_K7
#define GPP_I11
#define GPP_I9
#define GPP_K17
#define GPP_K21
#define GPP_K20
#define GPP_K1
#define GPP_I13
#define GPP_I2
#define GPP_J11
#define GPP_J3
#define GPP_I0
#define GPP_K10
#define GPP_K5
#define GPP_K6
#define GPP_K0
#define GPP_K14
#define GPP_K12
#define GPP_I14
#define GPP_K22
#define GPP_I4
#define GPP_K3
#define GPP_I1
#define GPP_K19
#define GPP_K23
#define GPP_K15
void variant_configure_gpios(void)
Definition: gpio.c:238
const struct pad_config gpio_table[]
Definition: gpio.c:33
void gpio_configure_pads(const struct soc_amd_gpio *gpio_list_ptr, size_t size)
program a particular set of GPIO
Definition: gpio.c:307
#define PAD_NC(pin)
Definition: gpio_defs.h:263
#define PAD_CFG_GPI(pad, pull, rst)
Definition: gpio_defs.h:284
#define _PAD_CFG_STRUCT(__pad, __config0, __config1)
Definition: gpio_defs.h:166
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197
#define PAD_CFG_GPO(pad, val, rst)
Definition: gpio_defs.h:247
#define PAD_CFG_GPI_APIC_LOW(pad, pull, rst)
Definition: gpio_defs.h:402