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.

Macros

#define DEFAULT_VW_BASE   0x10
 

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 vw_entries tgl_community0_vw []
 
static const struct pad_group tgl_community1_groups []
 
static const struct vw_entries tgl_community1_vw []
 
static const struct pad_group tgl_community2_groups []
 
static const struct pad_group tgl_community4_groups []
 
static const struct vw_entries tgl_community4_vw []
 
static const struct pad_group tgl_community5_groups []
 
static const struct pad_community tgl_communities []
 

Macro Definition Documentation

◆ DEFAULT_VW_BASE

#define DEFAULT_VW_BASE   0x10

Definition at line 8 of file gpio.c.

Function Documentation

◆ soc_gpio_get_community()

const struct pad_community* soc_gpio_get_community ( size_t num_communities)

Definition at line 210 of file gpio.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.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.c.

◆ tgl_communities

const struct pad_community tgl_communities[]
static

Definition at line 1 of file gpio.c.

Referenced by soc_gpio_get_community().

◆ tgl_community0_groups

const struct pad_group tgl_community0_groups[]
static
Initial value:
= {
}
#define GPP_T0
Definition: gpio_soc_defs.h:91
#define GPP_A0
#define GPP_T15
#define GPP_B25
Definition: gpio_soc_defs.h:78
#define GPP_B0
Definition: gpio_soc_defs.h:53
#define INTEL_GPP_BASE(first_of_community, start_of_group, end_of_group, group_pad_base)
Definition: gpio.h:34
#define GPP_A24

Definition at line 1 of file gpio.c.

◆ tgl_community0_vw

const struct vw_entries tgl_community0_vw[]
static
Initial value:
= {
}
#define GPP_A23
#define GPP_B23
Definition: gpio_soc_defs.h:76

Definition at line 1 of file gpio.c.

◆ tgl_community1_groups

const struct pad_group tgl_community1_groups[]
static
Initial value:
= {
}
#define GPP_S0
#define GPP_S7
#define GPP_GSPI2_CLK_LOOPBK
#define GPP_H0
#define GPP_D0
#define GPP_H23
#define CNV_BTEN
#define GPP_U0
#define vI2S2_RXD
#define GPP_GSPI6_CLK_LOOPBK

Definition at line 1 of file gpio.c.

◆ tgl_community1_vw

const struct vw_entries tgl_community1_vw[]
static
Initial value:
= {
}
#define GPP_D19

Definition at line 1 of file gpio.c.

◆ tgl_community2_groups

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

Definition at line 1 of file gpio.c.

◆ tgl_community4_groups

const struct pad_group tgl_community4_groups[]
static
Initial value:
= {
}
#define GPP_E_CLK_LOOPBK
#define GPP_F_CLK_LOOPBK
#define GPP_E0
#define GPP_F0
#define GPP_C23
#define GPP_L_BKLTEN
#define GPP_MLK_RSTB
#define GPP_C0
#define GPP_JTAG_TDO
#define GPP_DBG_PMODE

Definition at line 1 of file gpio.c.

◆ tgl_community4_vw

const struct vw_entries tgl_community4_vw[]
static
Initial value:
= {
}
#define GPP_F23
#define GPP_E23

Definition at line 1 of file gpio.c.

◆ tgl_community5_groups

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

Definition at line 1 of file gpio.c.