coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef __BASEBOARD_GPIO_H__
4 #define __BASEBOARD_GPIO_H__
5 
6 #include <soc/gpe.h>
7 #include <soc/gpio.h>
8 
9 /* eSPI virtual wire reporting */
10 #define EC_SCI_GPI GPE0_ESPI
11 
12 #define GPIO_PCH_WP GPP_C11
13 
14 /* EC wake is LAN_WAKE# which is a special DeepSX wake pin */
15 #define GPE_EC_WAKE GPE0_LAN_WAK
16 
17 /* EC sync irq is GPP_C15_IRQ */
18 #define EC_SYNC_IRQ GPP_C15_IRQ
19 
20 /* EC in RW */
21 #define GPIO_EC_IN_RW GPP_C14
22 
23 /* Memory configuration board straps */
24 #define GPIO_MEM_CONFIG_0 GPP_C0
25 #define GPIO_MEM_CONFIG_1 GPP_C3
26 #define GPIO_MEM_CONFIG_2 GPP_C4
27 #define GPIO_MEM_CONFIG_3 GPP_C5
28 
29 /* Memory channel select strap - 0: half-populated, 1: fully-populated */
30 #define GPIO_MEM_CH_SEL GPP_S0
31 
32 #endif /* __BASEBOARD_GPIO_H__ */