coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
#include <device/device.h>
#include <libbdk-hal/bdk-config.h>
#include <libbdk-hal/bdk-twsi.h>
#include <soc/gpio.h>
#include <soc/uart.h>
#include <console/console.h>
#include <soc/clock.h>
#include <soc/timer.h>
#include <soc/cpu.h>
#include <soc/sdram.h>
#include <soc/spi.h>
#include <spi_flash.h>
#include <fmap.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void mainboard_print_info (void)
 
static void mainboard_init (struct device *dev)
 
static void mainboard_enable (struct device *dev)
 

Variables

const struct bdk_devicetree_key_value devtree []
 
struct chip_operations mainboard_ops
 

Function Documentation

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 97 of file mainboard.c.

References devtree, device_operations::init, mainboard_init(), mainboard_print_info(), and device::ops.

Here is the call graph for this function:

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

Definition at line 85 of file mainboard.c.

References NULL, soc_timer_init(), and start_cpu().

Referenced by mainboard_enable().

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

◆ mainboard_print_info()

static void mainboard_print_info ( void  )
static

Variable Documentation

◆ devtree

const struct bdk_devicetree_key_value devtree[]
extern

Definition at line 1 of file bdk_devicetree.c.

◆ mainboard_ops

struct chip_operations mainboard_ops
Initial value:
= {
.enable_dev = mainboard_enable,
}
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:97

Definition at line 97 of file mainboard.c.