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

Go to the source code of this file.

Macros

#define PAD_CFG_DW2_OFFSET   (2 * sizeof(uint32_t))
 
#define VCCIOSEL_1V8   (1 << 8)
 

Functions

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

Macro Definition Documentation

◆ PAD_CFG_DW2_OFFSET

#define PAD_CFG_DW2_OFFSET   (2 * sizeof(uint32_t))

Definition at line 9 of file fw_config.c.

◆ VCCIOSEL_1V8

#define VCCIOSEL_1V8   (1 << 8)

Definition at line 10 of file fw_config.c.

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

Definition at line 12 of file fw_config.c.

References FW_CONFIG, fw_config_probe(), gpio_dwx_address(), GPP_D17, PAD_CFG_DW2_OFFSET, read32(), VCCIOSEL_1V8, and write32().

Here is the call graph for this function: