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

Go to the source code of this file.

Macros

#define WLAN_DEVFN   PCIE_GPP_2_0_DEVFN
 
#define SD_DEVFN   PCIE_GPP_2_1_DEVFN
 
#define WWAN_DEVFN   PCIE_GPP_2_2_DEVFN
 
#define NVME_DEVFN   PCIE_GPP_2_3_DEVFN
 

Enumerations

enum  dxio_port_id { WLAN , SD , WWAN_NVME , NVME }
 

Functions

const struct soc_amd_gpiovariant_base_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_early_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_bootblock_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_pcie_override_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_early_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_bootblock_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_pcie_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_sleep_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_espi_gpio_table (size_t *size)
 
const struct soc_amd_gpiovariant_tpm_gpio_table (size_t *size)
 
bool variant_has_pcie_wwan (void)
 
void variant_update_dxio_descriptors (fsp_dxio_descriptor *dxio_descriptors)
 
void variant_update_ddi_descriptors (fsp_ddi_descriptor *ddi_descriptors)
 
uint8_t variant_sd_aux_reset_gpio (void)
 
void variant_devtree_update (void)
 

Macro Definition Documentation

◆ NVME_DEVFN

#define NVME_DEVFN   PCIE_GPP_2_3_DEVFN

Definition at line 13 of file variants.h.

◆ SD_DEVFN

#define SD_DEVFN   PCIE_GPP_2_1_DEVFN

Definition at line 11 of file variants.h.

◆ WLAN_DEVFN

#define WLAN_DEVFN   PCIE_GPP_2_0_DEVFN

Definition at line 10 of file variants.h.

◆ WWAN_DEVFN

#define WWAN_DEVFN   PCIE_GPP_2_2_DEVFN

Definition at line 12 of file variants.h.

Enumeration Type Documentation

◆ dxio_port_id

Enumerator
WLAN 
SD 
WWAN_NVME 
NVME 

Definition at line 54 of file variants.h.

Function Documentation

◆ variant_base_gpio_table()

const struct soc_amd_gpio* variant_base_gpio_table ( size_t size)

Definition at line 444 of file gpio.c.

◆ variant_bootblock_gpio_table()

const struct soc_amd_gpio* variant_bootblock_gpio_table ( size_t size)

Definition at line 300 of file gpio.c.

References ARRAY_SIZE, and bootblock_gpio_table.

Referenced by bootblock_mainboard_early_init(), and bootblock_mainboard_init().

Here is the caller graph for this function:

◆ variant_bootblock_override_gpio_table()

const struct soc_amd_gpio* variant_bootblock_override_gpio_table ( size_t size)

Definition at line 324 of file gpio.c.

References ARRAY_SIZE, NULL, and override_bootblock_gpio_table.

Referenced by bootblock_mainboard_init().

Here is the caller graph for this function:

◆ variant_devtree_update()

void variant_devtree_update ( void  )

Definition at line 86 of file mainboard.c.

◆ variant_early_gpio_table()

const struct soc_amd_gpio* variant_early_gpio_table ( size_t size)

Definition at line 204 of file gpio.c.

◆ variant_early_override_gpio_table()

const struct soc_amd_gpio* variant_early_override_gpio_table ( size_t size)

Definition at line 317 of file gpio.c.

◆ variant_espi_gpio_table()

const struct soc_amd_gpio* variant_espi_gpio_table ( size_t size)

Definition at line 348 of file gpio.c.

◆ variant_has_pcie_wwan()

bool variant_has_pcie_wwan ( void  )

Definition at line 7 of file helpers.c.

References DEV_PTR, and is_dev_enabled().

Referenced by bootblock_mainboard_init(), mainboard_assert_wwan_aux_reset(), mainboard_deassert_wwan_aux_reset(), and mainboard_get_dxio_ddi_descriptors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant_override_gpio_table()

const struct soc_amd_gpio* variant_override_gpio_table ( size_t size)

Definition at line 450 of file gpio.c.

◆ variant_pcie_gpio_table()

const struct soc_amd_gpio* variant_pcie_gpio_table ( size_t size)

Definition at line 294 of file gpio.c.

References ARRAY_SIZE, and pcie_gpio_table.

Referenced by mb_pre_fspm().

Here is the caller graph for this function:

◆ variant_pcie_override_gpio_table()

const struct soc_amd_gpio* variant_pcie_override_gpio_table ( size_t size)

Definition at line 330 of file gpio.c.

References ARRAY_SIZE, bid1_pcie_gpio_table, board_id(), NULL, and override_pcie_gpio_table.

Referenced by mb_pre_fspm().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant_sd_aux_reset_gpio()

uint8_t variant_sd_aux_reset_gpio ( void  )

Definition at line 12 of file helpers.c.

References board_id(), GPIO_69, and GPIO_70.

Referenced by mainboard_get_dxio_ddi_descriptors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant_sleep_gpio_table()

const struct soc_amd_gpio* variant_sleep_gpio_table ( size_t size)

Definition at line 466 of file gpio.c.

◆ variant_tpm_gpio_table()

const struct soc_amd_gpio* variant_tpm_gpio_table ( size_t size)

Definition at line 354 of file gpio.c.

◆ variant_update_ddi_descriptors()

void variant_update_ddi_descriptors ( fsp_ddi_descriptor *  ddi_descriptors)

Definition at line 130 of file port_descriptors.c.

References get_cpu_count(), and get_threads_per_core().

Referenced by mainboard_get_dxio_ddi_descriptors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ variant_update_dxio_descriptors()

void variant_update_dxio_descriptors ( fsp_dxio_descriptor *  dxio_descriptors)

Definition at line 126 of file port_descriptors.c.

References dxio_descriptors, and WLAN.

Referenced by mainboard_get_dxio_ddi_descriptors().

Here is the caller graph for this function: