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 sndw_enable_pads []
 
static const struct pad_config sndw_disable_pads []
 
static const struct pad_config i2s_up3_enable_pads []
 
static const struct pad_config i2s_up4_enable_pads []
 
static const struct pad_config i2s_disable_pads []
 
static const struct pad_config sd_power_enable_pads []
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_ENABLE  ,
BS_ON_ENTRY  ,
fw_config_handle  ,
NULL   
)

◆ fw_config_handle()

Variable Documentation

◆ dmic_disable_pads

const struct pad_config dmic_disable_pads[]
static
Initial value:
= {
}
#define GPP_S4
#define GPP_S5
#define GPP_S7
#define GPP_S6
#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_S4, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_S5, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_S6, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_S7, NONE, DEEP, NF2),
}
#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:
= {
PAD_NC(GPP_R2, DN_20K),
}
#define GPP_R7
#define GPP_R3
#define GPP_R6
#define GPP_R0
#define GPP_A23
#define GPP_R2
#define GPP_R5
#define GPP_D19
#define GPP_R1

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ i2s_up3_enable_pads

const struct pad_config i2s_up3_enable_pads[]
static
Initial value:
= {
PAD_CFG_NF(GPP_A23, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D19, NONE, DEEP, NF1),
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_R5, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_R6, NONE, DEEP, NF2),
PAD_CFG_NF(GPP_R7, NONE, DEEP, NF2),
}

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ i2s_up4_enable_pads

const struct pad_config i2s_up4_enable_pads[]
static
Initial value:
= {
PAD_CFG_NF(GPP_A7, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_D19, NONE, DEEP, NF1),
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),
}
#define GPP_A7

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ sd_power_enable_pads

const struct pad_config sd_power_enable_pads[]
static
Initial value:
= {
PAD_CFG_GPO(GPP_D16, 1, DEEP),
}
#define GPP_D16
#define PAD_CFG_GPO(pad, val, rst)
Definition: gpio_defs.h:247

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ sndw_disable_pads

const struct pad_config sndw_disable_pads[]
static
Initial value:
= {
}
#define GPP_S0
#define GPP_S3
#define GPP_S1
#define GPP_S2

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().

◆ sndw_enable_pads

const struct pad_config sndw_enable_pads[]
static
Initial value:
= {
PAD_CFG_NF(GPP_S0, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_S1, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_S2, NONE, DEEP, NF1),
PAD_CFG_NF(GPP_S3, NONE, DEEP, NF1),
}

Definition at line 1 of file fw_config.c.

Referenced by fw_config_handle().