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 <device/mmio.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include <soc/usb.h>
#include <soc/addressmap.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void setup_usb (void)
 
static void configure_sdhci (void)
 
static void mainboard_init (struct device *dev)
 
static void mainboard_enable (struct device *dev)
 

Variables

static struct usb_board_data usb1_board_data
 
struct chip_operations mainboard_ops
 

Function Documentation

◆ configure_sdhci()

static void configure_sdhci ( void  )
static

Definition at line 22 of file mainboard.c.

References SDC1_TLMM_CFG_ADDR, and write32().

Referenced by mainboard_init().

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

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 38 of file mainboard.c.

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

Here is the call graph for this function:

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

Definition at line 28 of file mainboard.c.

References CONFIG, configure_sdhci(), and setup_usb().

Referenced by mainboard_enable().

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

◆ setup_usb()

static void setup_usb ( void  )
static

Definition at line 16 of file mainboard.c.

References HSUSB_HS_PORT_1, setup_usb_host(), and usb1_board_data.

Referenced by mainboard_init().

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

Variable Documentation

◆ mainboard_ops

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

Definition at line 38 of file mainboard.c.

◆ usb1_board_data

struct usb_board_data usb1_board_data
static
Initial value:
= {
.parameter_override_x0 = 0x63,
.parameter_override_x1 = 0x03,
.parameter_override_x0 = 0x1d,
.parameter_override_x1 = 0x03,
}

Definition at line 1 of file mainboard.c.

Referenced by setup_usb().