coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <baseboard/gpio.h>
#include <baseboard/variants.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

bool no_touchscreen_sku (uint32_t sku_id)
 
const struct pad_configvariant_override_gpio_table (size_t *num)
 

Variables

static const struct pad_config default_override_table []
 
static const struct pad_config non_touchscreen_override_table []
 

Function Documentation

◆ no_touchscreen_sku()

bool no_touchscreen_sku ( uint32_t  sku_id)

Definition at line 46 of file gpio.c.

Referenced by variant_override_gpio_table().

Here is the caller graph for this function:

◆ variant_override_gpio_table()

const struct pad_config* variant_override_gpio_table ( size_t num)

Definition at line 54 of file gpio.c.

References ARRAY_SIZE, c, default_override_table, google_chromeec_get_board_sku(), no_touchscreen_sku(), non_touchscreen_override_table, and sku_id().

Here is the call graph for this function:

Variable Documentation

◆ default_override_table

const struct pad_config default_override_table[]
static
Initial value:
= {
PAD_NC(GPIO_52, UP_20K),
PAD_NC(GPIO_53, UP_20K),
PAD_NC(GPIO_67, UP_20K),
PAD_NC(GPIO_117, UP_20K),
PAD_NC(GPIO_143, UP_20K),
DISPUPD),
PAD_NC(GPIO_161, DN_20K),
PAD_NC(GPIO_213, DN_20K),
PAD_NC(GPIO_214, DN_20K),
}
#define GPIO_214
Definition: gpio_apl.h:172
#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
#define GPIO_143
Definition: gpio.h:90
#define GPIO_67
Definition: gpio.h:53
#define GPIO_146
Definition: gpio.h:93
#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

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().

◆ non_touchscreen_override_table

const struct pad_config non_touchscreen_override_table[]
static
Initial value:
= {
PAD_NC(GPIO_114, UP_20K),
PAD_NC(GPIO_115, UP_20K),
PAD_NC(GPIO_52, UP_20K),
PAD_NC(GPIO_53, UP_20K),
PAD_NC(GPIO_67, UP_20K),
PAD_NC(GPIO_117, UP_20K),
PAD_NC(GPIO_143, UP_20K),
PAD_NC(GPIO_146, UP_20K),
PAD_NC(GPIO_161, DN_20K),
PAD_NC(GPIO_213, DN_20K),
PAD_NC(GPIO_214, DN_20K),
}
#define GPIO_115
Definition: gpio.h:77
#define GPIO_114
Definition: gpio.h:76

Definition at line 1 of file gpio.c.

Referenced by variant_override_gpio_table().