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 <smbios.h>
#include "ec.h"
#include <variant/onboard.h>
#include <soc/gpio.h>
#include <soc/int15.h>
#include <bootstate.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void mainboard_init (struct device *dev)
 
static int mainboard_smbios_data (struct device *dev, int *handle, unsigned long *current)
 
static void mainboard_enable (struct device *dev)
 
static void edp_vdden_cb (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_INIT, BS_ON_EXIT, edp_vdden_cb, NULL)
 

Variables

struct chip_operations mainboard_ops
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_INIT  ,
BS_ON_EXIT  ,
edp_vdden_cb  ,
NULL   
)

◆ edp_vdden_cb()

static void edp_vdden_cb ( void unused)
static

Definition at line 65 of file mainboard.c.

References ncore_select_func(), PAD_FUNC2, and SOC_DDI1_VDDEN_PAD.

Here is the call graph for this function:

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 51 of file mainboard.c.

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

Here is the call graph for this function:

◆ mainboard_init()

static void mainboard_init ( struct device dev)
static

Definition at line 11 of file mainboard.c.

References lan_init(), and mainboard_ec_init().

Referenced by mainboard_enable().

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

◆ mainboard_smbios_data()

static int mainboard_smbios_data ( struct device dev,
int *  handle,
unsigned long *  current 
)
static

Definition at line 19 of file mainboard.c.

References BOARD_TOUCHSCREEN_I2C_ADDR, BOARD_TOUCHSCREEN_I2C_BUS, BOARD_TOUCHSCREEN_IRQ, BOARD_TOUCHSCREEN_NAME, BOARD_TRACKPAD_I2C_ADDR, BOARD_TRACKPAD_I2C_BUS, BOARD_TRACKPAD_IRQ, BOARD_TRACKPAD_NAME, SMBIOS_DEVICE_TYPE_OTHER, and smbios_write_type41().

Referenced by mainboard_enable().

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:51

Definition at line 51 of file mainboard.c.