coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_pch_h.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_pch_h.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_com2 []
 
static const struct pad_group tgl_community0_groups []
 
static const struct pad_group tgl_community1_groups []
 
static const struct pad_group tgl_community2_groups []
 
static const struct pad_group tgl_community3_groups []
 
static const struct pad_group tgl_community4_groups []
 
static const struct pad_group tgl_community5_groups []
 
static const struct pad_community tgl_communities []
 

Function Documentation

◆ soc_gpio_get_community()

const struct pad_community* soc_gpio_get_community ( size_t num_communities)

Definition at line 198 of file gpio_pch_h.c.

References ARRAY_SIZE, and tgl_communities.

◆ soc_pmc_gpio_routes()

const struct pmc_to_gpio_route* soc_pmc_gpio_routes ( size_t num)

Variable Documentation

◆ 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_pch_h.c.

◆ rst_map_com2

const struct reset_mapping rst_map_com2[]
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_pch_h.c.

◆ tgl_communities

const struct pad_community tgl_communities[]
static

Definition at line 1 of file gpio_pch_h.c.

Referenced by soc_gpio_get_community().

◆ tgl_community0_groups

const struct pad_group tgl_community0_groups[]
static
Initial value:
= {
}
#define GPP_R0
#define GPP_ESPI_CLK_LOOPBK
#define GPP_B0
Definition: gpio_soc_defs.h:53
#define GPP_SPI0_IO_2
#define GPIO_COM0_START
#define GPP_GSPI1_CLK_LOOPBK
#define ESPI_USB_OCB_0
#define USB_CPU_OCB_3
#define GPP_R19
#define INTEL_GPP_BASE(first_of_community, start_of_group, end_of_group, group_pad_base)
Definition: gpio.h:34

Definition at line 1 of file gpio_pch_h.c.

◆ tgl_community1_groups

const struct pad_group tgl_community1_groups[]
static
Initial value:
= {
}
#define GPP_S0
#define GPIO_COM1_START
#define GPP_C23
#define GPP_S7
#define GPP_GSPI2_CLK_LOOPBK
#define GPP_D0
#define GPP_C0
#define CNV_BTEN
#define GPP_G0
Definition: gpio_soc_defs.h:88
#define vI2S2_RXD
#define GPP_GSPI3_CLK_LOOPBK

Definition at line 1 of file gpio_pch_h.c.

◆ tgl_community2_groups

const struct pad_group tgl_community2_groups[]
static
Initial value:
= {
}
#define GPD0
#define GPIO_COM2_START
#define GPD12
#define INTEL_GPP(first_of_community, start_of_group, end_of_group)
Definition: gpio.h:49

Definition at line 1 of file gpio_pch_h.c.

◆ tgl_community3_groups

const struct pad_group tgl_community3_groups[]
static
Initial value:
= {
}
#define GPP_E0
#define GPP_F23
#define GPP_F0
#define GPIO_COM3_START
#define GPP_E12

Definition at line 1 of file gpio_pch_h.c.

◆ tgl_community4_groups

const struct pad_group tgl_community4_groups[]
static
Initial value:
= {
}
#define GPP_H0
#define GPP_MLK_RSTB
#define GPIO_COM4_START
#define GPP_H23
#define GPP_J0
#define GPP_J9
#define GPP_K0

Definition at line 1 of file gpio_pch_h.c.

◆ tgl_community5_groups

const struct pad_group tgl_community5_groups[]
static
Initial value:
= {
}
#define GPIO_COM5_START
#define GPP_I0
#define GPP_I14
#define GPP_JTAG_CPU_TRSTB
#define GPP_JTAG_TDO

Definition at line 1 of file gpio_pch_h.c.