coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c File Reference
#include <stdint.h>
#include <amdblocks/acpimmio.h>
#include <amdblocks/gpio.h>
#include <amdblocks/gpio_defs.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <gpio.h>
#include <northbridge/amd/agesa/state_machine.h>
#include "gpio_ftns.h"
Include dependency graph for romstage.c:

Go to the source code of this file.

Functions

static void early_lpc_init (void)
 
void board_BeforeAgesa (struct sysinfo *cb)
 

Variables

const struct soc_amd_gpio gpio_common []
 
const struct soc_amd_gpio gpio_apu2 []
 
const struct soc_amd_gpio gpio_apu34 []
 
const struct soc_amd_gpio gpio_apu5 []
 

Function Documentation

◆ board_BeforeAgesa()

void board_BeforeAgesa ( struct sysinfo cb)

Definition at line 16 of file romstage.c.

References early_lpc_init(), PCI_DEV, pci_read_config32(), pci_write_config32(), pm_write8(), and val.

Here is the call graph for this function:

◆ early_lpc_init()

static void early_lpc_init ( void  )
static

Definition at line 61 of file romstage.c.

References ARRAY_SIZE, CONFIG, gpio_apu2, gpio_apu34, gpio_apu5, gpio_common, and gpio_configure_pads().

Referenced by board_BeforeAgesa().

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

Variable Documentation

◆ gpio_apu2

const struct soc_amd_gpio gpio_apu2[]
Initial value:
= {
}
#define GPIO_32
Definition: gpio_ftns.h:15
#define PULL_NONE
Definition: buildOpts.c:72
#define PAD_GPI(pin, pull)
Definition: gpio_defs.h:216

Definition at line 16 of file romstage.c.

Referenced by early_lpc_init().

◆ gpio_apu34

const struct soc_amd_gpio gpio_apu34[]
Initial value:
= {
}
#define GPIO_33
Definition: gpio_ftns.h:16
#define PAD_GPO(pin, direction)
Definition: gpio_defs.h:220

Definition at line 16 of file romstage.c.

Referenced by early_lpc_init().

◆ gpio_apu5

const struct soc_amd_gpio gpio_apu5[]
Initial value:
= {
PAD_GPO(GPIO_32, HIGH),
PAD_GPO(GPIO_33, HIGH),
}
#define GPIO_22
Definition: gpio_ftns.h:14

Definition at line 16 of file romstage.c.

Referenced by early_lpc_init().

◆ gpio_common

const struct soc_amd_gpio gpio_common[]
Initial value:
= {
PAD_GPO(GPIO_51, HIGH),
PAD_GPO(GPIO_55, HIGH),
PAD_GPO(GPIO_64, HIGH),
PAD_GPO(GPIO_68, HIGH),
}
#define GPIO_51
Definition: gpio_ftns.h:19
#define GPIO_49
Definition: gpio_ftns.h:17
#define GPIO_57
Definition: gpio_ftns.h:21
#define GPIO_50
Definition: gpio_ftns.h:18
#define GPIO_64
Definition: gpio_ftns.h:24
#define GPIO_71
Definition: gpio_ftns.h:27
#define GPIO_58
Definition: gpio_ftns.h:22
#define GPIO_59
Definition: gpio_ftns.h:23
#define GPIO_68
Definition: gpio_ftns.h:26
#define GPIO_55
Definition: gpio_ftns.h:20

Definition at line 16 of file romstage.c.

Referenced by early_lpc_init().