coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
fw_config.c File Reference
#include <bootstate.h>
#include <console/console.h>
#include <fw_config.h>
#include <gpio.h>
Include dependency graph for fw_config.c:

Go to the source code of this file.

Functions

static void fw_config_handle (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_ENABLE, BS_ON_ENTRY, fw_config_handle, NULL)
 

Variables

static const struct pad_config dmic_enable_pads []
 
static const struct pad_config dmic_disable_pads []
 
static const struct pad_config i2s_enable_pads []
 
static const struct pad_config i2s_disable_pads []
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_ENABLE  ,
BS_ON_ENTRY  ,
fw_config_handle  ,
NULL   
)

◆ fw_config_handle()

static void fw_config_handle ( void unused)
static

Variable Documentation

◆ dmic_disable_pads

const struct pad_config dmic_disable_pads[]
static
Initial value:
= {
}
#define GPP_R4
#define GPP_R5
#define PAD_NC(pin)
Definition: gpio_defs.h:263

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ dmic_enable_pads

const struct pad_config dmic_enable_pads[]
static
Initial value:
= {
PAD_CFG_NF(GPP_R4, NONE, DEEP, NF3),
PAD_CFG_NF(GPP_R5, NONE, DEEP, NF3),
}
#define PAD_CFG_NF(pad, pull, rst, func)
Definition: gpio_defs.h:197

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ i2s_disable_pads

const struct pad_config i2s_disable_pads[]
static
Initial value:
= {
}
#define GPP_S0
#define GPP_R3
#define GPP_R0
#define GPP_S3
#define GPP_S1
#define GPP_R2
#define GPP_S2
#define GPP_R1

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ i2s_enable_pads

const struct pad_config i2s_enable_pads[]
static
Initial value:
= {
PAD_CFG_NF(GPP_R0, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_R1, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_R2, DN_20K, DEEP, NF2),
PAD_CFG_NF(GPP_R3, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_S0, NONE, DEEP, NF4),
PAD_CFG_NF(GPP_S1, NONE, DEEP, NF4),
PAD_CFG_NF(GPP_S2, NONE, DEEP, NF4),
PAD_CFG_NF(GPP_S3, NONE, DEEP, NF4),
}

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().