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 #ifndef __ACPI__
7 #include <amdblocks/gpio_defs.h>
8 #include <soc/gpio.h>
9 
10 #if CONFIG(BOARD_GOOGLE_BASEBOARD_TREMBYLE)
11 #define EC_IN_RW_OD GPIO_130
12 #else
13 #define EC_IN_RW_OD GPIO_11
14 #endif
15 
16 /* SPI Write protect */
17 #define CROS_WP_GPIO GPIO_137
18 #define GPIO_EC_IN_RW EC_IN_RW_OD
19 
20 #endif /* _ACPI__ */
21 
22 /* These define the GPE, not the GPIO. */
23 #define EC_SCI_GPI GEVENT_3 /* AGPIO 22 -> GPE 3 */
24 #define EC_WAKE_GPI GEVENT_15 /* AGPIO 24 -> GPE 15 */
25 
26 /* EC sync irq */
27 #define EC_SYNC_IRQ GPIO_31
28 
29 #endif /* __BASEBOARD_GPIO_H__ */