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 jsl_community0_groups []
 
static const struct pad_group jsl_community1_groups []
 
static const struct pad_group jsl_community2_groups []
 
static const struct pad_group jsl_community4_groups []
 
static const struct pad_group jsl_community5_groups []
 
static const struct pad_community jsl_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 177 of file gpio.c.

References ARRAY_SIZE, and jsl_communities.

◆ soc_pmc_gpio_routes()

const struct pmc_to_gpio_route* soc_pmc_gpio_routes ( size_t num)

Variable Documentation

◆ jsl_communities

const struct pad_community jsl_communities[TOTAL_GPIO_COMM]
static

Definition at line 1 of file gpio.c.

Referenced by soc_gpio_get_community().

◆ jsl_community0_groups

const struct pad_group jsl_community0_groups[]
static
Initial value:
= {
}
#define GPP_R7
#define GPP_S0
#define GPP_F0
#define GPP_R0
#define GPP_S7
#define GPP_A0
#define GPP_B0
Definition: gpio_soc_defs.h:53
#define GPP_F19
#define GPIO_SPI0_IO_2
Definition: gpio_soc_defs.h:55
#define GPIO_SPI0_CLK_LOOPBK
Definition: gpio_soc_defs.h:63
#define GPIO_ESPI_CLK_LOOPBK
#define GPIO_GSPI1_CLK_LOOPBK
Definition: gpio_soc_defs.h:89
#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.

◆ jsl_community1_groups

const struct pad_group jsl_community1_groups[]
static
Initial value:
= {
}
#define GPP_C23
#define GPP_H0
#define GPP_D0
#define GPP_C0
#define GPP_H23
#define VGPIO_39
#define VGPIO_0
#define GPIO_SPI1_CLK_LOOPBK

Definition at line 1 of file gpio.c.

◆ jsl_community2_groups

const struct pad_group jsl_community2_groups[]
static
Initial value:
= {
}
#define GPD0
#define GPIO_DRAM_RESETB

Definition at line 1 of file gpio.c.

◆ jsl_community4_groups

const struct pad_group jsl_community4_groups[]
static
Initial value:
= {
}
#define GPP_E0
#define GPP_E23
#define GPIO_MLK_RSTB
#define GPIO_L_BKLTEN

Definition at line 1 of file gpio.c.

◆ jsl_community5_groups

const struct pad_group jsl_community5_groups[]
static
Initial value:
= {
}
#define GPP_G7
Definition: gpio_soc_defs.h:95
#define GPP_G0
Definition: gpio_soc_defs.h:88

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.