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

Go to the source code of this file.

Functions

const struct pad_communitysoc_gpio_get_community (size_t *num_communities)
 
const struct pmc_to_gpio_routesoc_pmc_gpio_routes (size_t *num)
 

Variables

static const struct reset_mapping rst_map []
 
static const struct reset_mapping rst_map_com0 []
 
static const struct pad_group ehl_community0_groups []
 
static const struct pad_group ehl_community1_groups []
 
static const struct pad_group ehl_community2_groups []
 
static const struct pad_group ehl_community3_groups []
 
static const struct pad_group ehl_community4_groups []
 
static const struct pad_group ehl_community5_groups []
 
static const struct pad_community ehl_communities [TOTAL_GPIO_COMM]
 

Function Documentation

◆ soc_gpio_get_community()

const struct pad_community* soc_gpio_get_community ( size_t num_communities)

Definition at line 206 of file gpio.c.

References ARRAY_SIZE, and ehl_communities.

◆ soc_pmc_gpio_routes()

Variable Documentation

◆ ehl_communities

const struct pad_community ehl_communities[TOTAL_GPIO_COMM]
static

Definition at line 1 of file gpio.c.

Referenced by soc_gpio_get_community().

◆ ehl_community0_groups

const struct pad_group ehl_community0_groups[]
static
Initial value:
= {
}
#define GPP_T0
Definition: gpio_soc_defs.h:91
#define GPP_T15
#define GPP_B0
Definition: gpio_soc_defs.h:53
#define GPP_B23
Definition: gpio_soc_defs.h:76
#define GPP_G0
Definition: gpio_soc_defs.h:88
#define GPIO_RSVD_1
Definition: gpio_soc_defs.h:61
#define GPIO_RSVD_0
Definition: gpio_soc_defs.h:60
#define GPIO_RSVD_2
#define INTEL_GPP_BASE(first_of_community, start_of_group, end_of_group, group_pad_base)
Definition: gpio.h:34
#define INTEL_GPP(first_of_community, start_of_group, end_of_group)
Definition: gpio.h:49

Definition at line 1 of file gpio.c.

◆ ehl_community1_groups

const struct pad_group ehl_community1_groups[]
static
Initial value:
= {
}
#define GPP_H0
#define GPP_D0
#define GPP_H23
#define GPIO_RSVD_4
#define GPP_V0
#define VGPIO_39
#define GPP_U0
#define GPP_U19
#define GPIO_RSVD_7
#define GPP_V15
#define GPIO_RSVD_3
#define VGPIO_0

Definition at line 1 of file gpio.c.

◆ ehl_community2_groups

const struct pad_group ehl_community2_groups[]
static
Initial value:
= {
}
#define GPD0
#define GPIO_RSVD_12

Definition at line 1 of file gpio.c.

◆ ehl_community3_groups

const struct pad_group ehl_community3_groups[]
static
Initial value:
= {
}
#define GPP_S0
#define GPP_A23
#define GPP_A0
#define GPP_S1
#define GPIO_RSVD_13
#define GPIO_RSVD_29
#define VGPIO_USB_0
#define VGPIO_USB_3

Definition at line 1 of file gpio.c.

◆ ehl_community4_groups

const struct pad_group ehl_community4_groups[]
static
Initial value:
= {
}
#define GPP_E0
#define GPP_F23
#define GPP_F0
#define GPP_C23
#define GPP_E23
#define GPP_C0
#define GPIO_RSVD_36
#define GPIO_RSVD_30

Definition at line 1 of file gpio.c.

◆ ehl_community5_groups

const struct pad_group ehl_community5_groups[]
static
Initial value:
= {
}
#define GPP_R7
#define GPP_R0

Definition at line 1 of file gpio.c.

◆ rst_map

const struct reset_mapping rst_map[]
static
Initial value:
= {
{ .logical = PAD_CFG0_LOGICAL_RESET_RSMRST, .chipset = 0U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_DEEP, .chipset = 1U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_PLTRST, .chipset = 2U << 30 },
}
#define PAD_CFG0_LOGICAL_RESET_RSMRST
Definition: gpio_defs.h:47
#define PAD_CFG0_LOGICAL_RESET_PLTRST
Definition: gpio_defs.h:46
#define PAD_CFG0_LOGICAL_RESET_DEEP
Definition: gpio_defs.h:45

Definition at line 1 of file gpio.c.

◆ rst_map_com0

const struct reset_mapping rst_map_com0[]
static
Initial value:
= {
{ .logical = PAD_CFG0_LOGICAL_RESET_PWROK, .chipset = 0U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_DEEP, .chipset = 1U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_PLTRST, .chipset = 2U << 30 },
{ .logical = PAD_CFG0_LOGICAL_RESET_RSMRST, .chipset = 3U << 30 },
}
#define PAD_CFG0_LOGICAL_RESET_PWROK
Definition: gpio_defs.h:44

Definition at line 1 of file gpio.c.