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 <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <gpio.h>
6 #include <soc/gpio.h>
8 
9 #define SKU_UNKNOWN 0xFFFFFFFF
10 
11 static const struct pad_config default_override_table[] = {
12  /* disable I2C7 SCL and SDA */
13  PAD_NC(GPIO_114, UP_20K), /* LPSS_I2C7_SDA */
14  PAD_NC(GPIO_115, UP_20K), /* LPSS_I2C7_SCL */
15 
16  PAD_NC(GPIO_52, UP_20K),
17  PAD_NC(GPIO_53, UP_20K),
18  PAD_NC(GPIO_67, UP_20K),
19  PAD_NC(GPIO_117, UP_20K),
20  PAD_NC(GPIO_143, UP_20K),
21 
22  /* EN_PP3300_TOUCHSCREEN */
23  PAD_CFG_GPO_IOSSTATE_IOSTERM(GPIO_146, 0, DEEP, NONE, Tx0RxDCRx0, DISPUPD),
24 
25  PAD_NC(GPIO_161, DN_20K),
26 
27  /* EN_PP3300_WLAN_L */
28  PAD_CFG_GPO_IOSSTATE_IOSTERM(GPIO_178, 0, DEEP, NONE, Tx0RxDCRx0, DISPUPD),
29 
30  PAD_NC(GPIO_213, DN_20K),
31  PAD_NC(GPIO_214, DN_20K),
32 };
33 
34 const struct pad_config *variant_override_gpio_table(size_t *num)
35 {
38 }
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define GPIO_214
Definition: gpio_apl.h:172
#define GPIO_178
Definition: gpio_apl.h:300
#define GPIO_161
Definition: gpio_apl.h:282
#define GPIO_213
Definition: gpio_apl.h:171
#define GPIO_53
Definition: gpio_glk.h:67
#define GPIO_52
Definition: gpio_glk.h:66
const struct pad_config *__weak variant_override_gpio_table(size_t *num)
Definition: gpio.c:450
static const struct pad_config default_override_table[]
Definition: gpio.c:11
#define GPIO_143
Definition: gpio.h:90
#define GPIO_67
Definition: gpio.h:53
#define GPIO_115
Definition: gpio.h:77
#define GPIO_146
Definition: gpio.h:93
#define GPIO_114
Definition: gpio.h:76
#define PAD_NC(pin)
Definition: gpio_defs.h:263
#define GPIO_117
Definition: gpio.h:84
#define PAD_CFG_GPO_IOSSTATE_IOSTERM(pad, val, rst, pull, iosstate, ioterm)
Definition: gpio_defs.h:277