coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <arch/io.h>
#include <bootblock_common.h>
#include <build.h>
#include <console/console.h>
#include <device/pci_ops.h>
#include <fsp/util.h>
#include <pc80/mc146818rtc.h>
#include <soc/gpio.h>
#include <soc/iomap.h>
#include <soc/iosf.h>
#include <soc/lpc.h>
#include <soc/msr.h>
#include <soc/pm.h>
#include <soc/spi.h>
Include dependency graph for bootblock.c:

Go to the source code of this file.

Functions

asmlinkage void bootblock_c_entry (uint64_t base_timestamp)
 
static void program_base_addresses (void)
 
static void tco_disable (void)
 
static void spi_init (void)
 
static void soc_rtc_init (void)
 
static void setup_mmconfig (void)
 
void bootblock_soc_early_init (void)
 
void bootblock_soc_init (void)
 

Function Documentation

◆ bootblock_c_entry()

asmlinkage void bootblock_c_entry ( uint64_t  base_timestamp)

Definition at line 18 of file bootblock.c.

References bootblock_main_with_basetime().

Here is the call graph for this function:

◆ bootblock_soc_early_init()

void bootblock_soc_early_init ( void  )

Definition at line 110 of file bootblock.c.

References program_base_addresses(), setup_mmconfig(), and tco_disable().

Here is the call graph for this function:

◆ bootblock_soc_init()

void bootblock_soc_init ( void  )

Definition at line 119 of file bootblock.c.

References lpc_init(), report_fsp_output(), set_max_freq(), soc_rtc_init(), and spi_init().

Here is the call graph for this function:

◆ program_base_addresses()

static void program_base_addresses ( void  )
static

Definition at line 24 of file bootblock.c.

References ABASE, ACPI_BASE_ADDRESS, GBASE, GPIO_BASE_ADDRESS, IBASE, ILB_BASE_ADDRESS, IO_BASE_ADDRESS, IOBASE, LPC_DEV, LPC_FUNC, MPBASE, MPHY_BASE_ADDRESS, PBASE, PCI_DEV, pci_write_config32(), PMC_BASE_ADDRESS, PUBASE, PUNIT_BASE_ADDRESS, RCBA, RCBA_BASE_ADDRESS, SBASE, and SPI_BASE_ADDRESS.

Referenced by bootblock_soc_early_init().

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

◆ setup_mmconfig()

static void setup_mmconfig ( void  )
static

Definition at line 91 of file bootblock.c.

References BUNIT_MMCONF_REG, IOSF_BYTE_EN, IOSF_OP_WRITE_BUNIT, IOSF_OPCODE, IOSF_PCI_DEV, IOSF_PORT, IOSF_PORT_BUNIT, IOSF_REG, MCR_REG, MCRX_REG, MDR_REG, and pci_io_write_config32().

Referenced by bootblock_soc_early_init().

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

◆ soc_rtc_init()

static void soc_rtc_init ( void  )
static

Definition at line 78 of file bootblock.c.

References BIOS_ERR, cmos_init(), printk, rtc_failed(), and rtc_failure().

Referenced by bootblock_soc_init().

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

◆ spi_init()

static void spi_init ( void  )
static

Definition at line 61 of file bootblock.c.

References BCR, BCR_WPD, EISS, read32(), SCS, SMIWPEN, SPI_BASE_ADDRESS, SRC_CACHE_PREFETCH, SRC_MASK, and write32().

Referenced by bootblock_soc_init().

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

◆ tco_disable()

static void tco_disable ( void  )
static

Definition at line 52 of file bootblock.c.

References ACPI_BASE_ADDRESS, inl(), outl(), TCO1_CNT, and TCO_TMR_HALT.

Referenced by bootblock_soc_early_init().

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