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

Go to the source code of this file.

Functions

const __weak struct soc_amd_gpiovariant_early_gpio_table (size_t *size)
 
const __weak struct soc_amd_gpiovariant_wlan_rst_early_gpio_table (size_t *size)
 
const __weak struct soc_amd_gpiovariant_romstage_gpio_table (size_t *size)
 
const __weak struct soc_amd_gpiovariant_gpio_table (size_t *size)
 
int __weak variant_get_xhci_oc_map (uint16_t *map)
 
int __weak variant_get_ehci_oc_map (uint16_t *map)
 

Variables

static const struct soc_amd_gpio gpio_set_stage_reset []
 
static const struct soc_amd_gpio gpio_wlan_rst_early_reset []
 
static const struct soc_amd_gpio gpio_set_stage_rom []
 
static const struct soc_amd_gpio gpio_set_stage_ram []
 

Function Documentation

◆ variant_early_gpio_table()

const __weak struct soc_amd_gpio* variant_early_gpio_table ( size_t size)

Definition at line 244 of file gpio.c.

References ARRAY_SIZE, and gpio_set_stage_reset.

◆ variant_get_ehci_oc_map()

int __weak variant_get_ehci_oc_map ( uint16_t map)

Definition at line 280 of file gpio.c.

References USB_OC_DISABLE_ALL.

Referenced by mainboard_get_ehci_oc_map().

Here is the caller graph for this function:

◆ variant_get_xhci_oc_map()

int __weak variant_get_xhci_oc_map ( uint16_t map)

Definition at line 271 of file gpio.c.

References OC_PORT0_SHIFT, OC_PORT1_SHIFT, OC_PORT2_SHIFT, OC_PORT3_SHIFT, USB_OC0, USB_OC1, USB_OC2, and USB_OC_DISABLE.

Referenced by mainboard_get_xhci_oc_map().

Here is the caller graph for this function:

◆ variant_gpio_table()

const __weak struct soc_amd_gpio* variant_gpio_table ( size_t size)

Definition at line 265 of file gpio.c.

References ARRAY_SIZE, and gpio_set_stage_ram.

◆ variant_romstage_gpio_table()

const __weak struct soc_amd_gpio* variant_romstage_gpio_table ( size_t size)

Definition at line 258 of file gpio.c.

References ARRAY_SIZE, and gpio_set_stage_rom.

◆ variant_wlan_rst_early_gpio_table()

const __weak struct soc_amd_gpio* variant_wlan_rst_early_gpio_table ( size_t size)

Definition at line 251 of file gpio.c.

References ARRAY_SIZE, and gpio_wlan_rst_early_reset.

Referenced by bootblock_mainboard_early_init().

Here is the caller graph for this function:

Variable Documentation

◆ gpio_set_stage_ram

const struct soc_amd_gpio gpio_set_stage_ram[]
static

Definition at line 1 of file gpio.c.

Referenced by variant_gpio_table().

◆ gpio_set_stage_reset

const struct soc_amd_gpio gpio_set_stage_reset[]
static

Definition at line 1 of file gpio.c.

Referenced by variant_early_gpio_table().

◆ gpio_set_stage_rom

const struct soc_amd_gpio gpio_set_stage_rom[]
static
Initial value:
= {
PAD_GPO(GPIO_133, HIGH),
}
#define PAD_GPO(pin, direction)
Definition: gpio_defs.h:220
#define GPIO_133
Definition: gpio.h:97

Definition at line 1 of file gpio.c.

Referenced by variant_romstage_gpio_table().

◆ gpio_wlan_rst_early_reset

const struct soc_amd_gpio gpio_wlan_rst_early_reset[]
static
Initial value:
= {
PAD_GPO(GPIO_70, HIGH),
}
#define GPIO_70
Definition: gpio.h:56

Definition at line 1 of file gpio.c.

Referenced by variant_wlan_rst_early_gpio_table().