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 <bootstate.h>
#include <fw_config.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

const struct pad_configvariant_override_gpio_table (size_t *num)
 
static void fw_config_handle (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_ENABLE, BS_ON_ENTRY, fw_config_handle, NULL)
 

Variables

static const struct pad_config gpio_table []
 
static const struct pad_config codec_rt5682_pads []
 
static const struct pad_config codec_cs42l42_pads []
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_ENABLE  ,
BS_ON_ENTRY  ,
fw_config_handle  ,
NULL   
)

◆ fw_config_handle()

static void fw_config_handle ( void unused)
static

Definition at line 30 of file gpio.c.

References ARRAY_SIZE, codec_cs42l42_pads, codec_rt5682_pads, FW_CONFIG, fw_config_probe(), and gpio_configure_pads().

Here is the call graph for this function:

◆ variant_override_gpio_table()

const struct pad_config* variant_override_gpio_table ( size_t num)

Definition at line 16 of file gpio.c.

Variable Documentation

◆ codec_cs42l42_pads

const struct pad_config codec_cs42l42_pads[]
static
Initial value:
= {
}
#define GPP_D18
#define PAD_NC(pin)
Definition: gpio_defs.h:263

Definition at line 16 of file gpio.c.

Referenced by fw_config_handle().

◆ codec_rt5682_pads

const struct pad_config codec_rt5682_pads[]
static
Initial value:
= {
}
#define GPP_H16

Definition at line 16 of file gpio.c.

Referenced by fw_config_handle().

◆ gpio_table

const struct pad_config gpio_table[]
static
Initial value:
= {
PAD_CFG_GPO(GPP_D15, 1, PLTRST),
PAD_CFG_GPO(GPP_H16, 1, PWROK),
}
#define GPP_D15
#define PAD_CFG_GPO(pad, val, rst)
Definition: gpio_defs.h:247

Definition at line 1 of file gpio.c.