coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
variant.c File Reference
#include <baseboard/variants.h>
#include <boardid.h>
#include <device/device.h>
#include <drivers/i2c/hid/chip.h>
#include <fw_config.h>
#include <gpio.h>
#include <soc/gpio.h>
Include dependency graph for variant.c:

Go to the source code of this file.

Functions

static void devtree_update_emmc_rtd3 (uint32_t board_ver)
 
static void devtree_update_audio_codec (void)
 
static void disable_unused_gpios (void)
 
void variant_devtree_update (void)
 

Variables

static const struct pad_config nvme_disable_pads []
 
static const struct pad_config emmc_disable_pads []
 

Function Documentation

◆ devtree_update_audio_codec()

static void devtree_update_audio_codec ( void  )
static

Definition at line 20 of file variant.c.

References AUDIO, device::chip_info, config, DEV_PTR, FW_CONFIG, and fw_config_probe().

Referenced by variant_devtree_update().

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

◆ devtree_update_emmc_rtd3()

static void devtree_update_emmc_rtd3 ( uint32_t  board_ver)
static

Definition at line 11 of file variant.c.

References DEV_PTR, and device::enabled.

Referenced by variant_devtree_update().

Here is the caller graph for this function:

◆ disable_unused_gpios()

static void disable_unused_gpios ( void  )
static

Definition at line 43 of file variant.c.

References ARRAY_SIZE, emmc_disable_pads, gpio_configure_pads(), gpio_get(), GPP_T2, and nvme_disable_pads.

Referenced by variant_devtree_update().

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

◆ variant_devtree_update()

void variant_devtree_update ( void  )

Definition at line 53 of file variant.c.

References board_id(), devtree_update_audio_codec(), devtree_update_emmc_rtd3(), and disable_unused_gpios().

Here is the call graph for this function:

Variable Documentation

◆ emmc_disable_pads

const struct pad_config emmc_disable_pads[]
static
Initial value:
= {
}
#define GPP_E20
#define GPP_B3
Definition: gpio_soc_defs.h:56
#define GPP_F19
#define PAD_NC(pin)
Definition: gpio_defs.h:263

Definition at line 20 of file variant.c.

Referenced by disable_unused_gpios().

◆ nvme_disable_pads

const struct pad_config nvme_disable_pads[]
static
Initial value:
= {
}
#define GPP_B2
Definition: gpio_soc_defs.h:55
#define GPP_D11
#define GPP_D5
#define GPP_B4
Definition: gpio_soc_defs.h:57
#define GPP_D3

Definition at line 20 of file variant.c.

Referenced by disable_unused_gpios().