coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
#include <bl31.h>
#include <bootmode.h>
#include <console/console.h>
#include <device/device.h>
#include <gpio.h>
#include <soc/msdc.h>
#include <soc/spm.h>
#include <soc/usb.h>
#include "display.h"
#include <arm-trusted-firmware/include/export/plat/mediatek/common/plat_params_exp.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void register_reset_to_bl31 (void)
 
static void configure_audio (void)
 
static void mainboard_init (struct device *dev)
 
static void mainboard_enable (struct device *dev)
 

Variables

struct chip_operations mainboard_ops
 

Function Documentation

◆ configure_audio()

static void configure_audio ( void  )
static

Definition at line 28 of file mainboard.c.

References GPIO, gpio_set_mode(), and mtcmos_audio_power_on().

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 67 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 39 of file mainboard.c.

References BIOS_ERR, BIOS_INFO, CONFIG, configure_audio(), configure_display(), display_init_required(), GPIO_EN_PP3300_SDBRDG_X, gpio_output(), mtk_msdc_configure_emmc(), printk, register_reset_to_bl31(), setup_usb_host(), and spm_init().

Referenced by mainboard_enable().

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

◆ register_reset_to_bl31()

static void register_reset_to_bl31 ( void  )
static

Definition at line 17 of file mainboard.c.

References GPIO_RESET, and register_bl31_aux_param().

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:
= {
.name = CONFIG_MAINBOARD_PART_NUMBER,
.enable_dev = mainboard_enable,
}
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:67

Definition at line 67 of file mainboard.c.