coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <bootblock_common.h>
#include <device/mmio.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <soc/i2c.h>
#include <soc/pcie.h>
#include <soc/spi.h>
Include dependency graph for bootblock.c:

Go to the source code of this file.

Data Structures

struct  pad_func
 

Macros

#define PAD_FUNC(name, func)   {PAD_##name##_ID, PAD_##name##_FUNC_##func}
 

Functions

static void nor_set_gpio_pinmux (void)
 
static void usb3_hub_reset (void)
 
void bootblock_mainboard_init (void)
 

Macro Definition Documentation

◆ PAD_FUNC

#define PAD_FUNC (   name,
  func 
)    {PAD_##name##_ID, PAD_##name##_FUNC_##func}

Definition at line 18 of file bootblock.c.

Function Documentation

◆ bootblock_mainboard_init()

◆ nor_set_gpio_pinmux()

static void nor_set_gpio_pinmux ( void  )
static

Definition at line 20 of file bootblock.c.

References ARRAY_SIZE, pad_func::func, GPIO_PULL_ENABLE, GPIO_PULL_UP, gpio_set_mode(), gpio_set_pull(), nor_pinmux, NULL, PAD_FUNC, and pad_func::pin_id.

Referenced by bootblock_mainboard_init().

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

◆ usb3_hub_reset()

static void usb3_hub_reset ( void  )
static

Definition at line 40 of file bootblock.c.

References GPIO, and gpio_output().

Referenced by bootblock_mainboard_init().

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