coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
#include <device/mmio.h>
#include <device/device.h>
#include <boot/coreboot_tables.h>
#include <gpio.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/clk_rst.h>
#include <soc/mc.h>
#include <soc/nvidia/tegra/i2c.h>
#include <soc/nvidia/tegra/usb.h>
#include <soc/pmc.h>
#include <soc/spi.h>
#include <symbols.h>
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void set_clock_sources (void)
 
static void setup_pinmux (void)
 
static void setup_kernel_info (void)
 
static void setup_ec_spi (void)
 
static void mainboard_init (struct device *dev)
 
static void mainboard_enable (struct device *dev)
 
void lb_board (struct lb_header *header)
 

Variables

static struct clk_rst_ctlrclk_rst = (void *)TEGRA_CLK_RST_BASE
 
struct chip_operations mainboard_ops
 

Function Documentation

◆ lb_board()

void lb_board ( struct lb_header header)

Definition at line 241 of file mainboard.c.

References dma, dma_coherent(), header, lb_new_record(), LB_TAG_DMA, and REGION_SIZE.

Here is the call graph for this function:

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 232 of file mainboard.c.

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

Here is the call graph for this function:

◆ mainboard_init()

◆ set_clock_sources()

static void set_clock_sources ( void  )
static

◆ setup_ec_spi()

static void setup_ec_spi ( void  )
static

Definition at line 177 of file mainboard.c.

References tegra_spi_init().

Referenced by mainboard_init().

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

◆ setup_kernel_info()

static void setup_kernel_info ( void  )
static

Definition at line 159 of file mainboard.c.

References tegra_pmc_regs::odmdata, pmc, TEGRA_MC_BASE, TEGRA_PMC_BASE, tegra_mc_regs::video_protect_bom, tegra_mc_regs::video_protect_reg_ctrl, tegra_mc_regs::video_protect_size_mb, and write32().

Referenced by mainboard_init().

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

◆ setup_pinmux()

static void setup_pinmux ( void  )
static

Definition at line 56 of file mainboard.c.

References GPIO, gpio_input_pullup(), gpio_output(), PINMUX_INPUT_ENABLE, PINMUX_OPEN_DRAIN, PINMUX_PULL_DOWN, PINMUX_PULL_NONE, PINMUX_PULL_UP, and pinmux_set_config().

Referenced by mainboard_init().

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

Variable Documentation

◆ clk_rst

struct clk_rst_ctlr* clk_rst = (void *)TEGRA_CLK_RST_BASE
static

Definition at line 17 of file mainboard.c.

Referenced by set_clock_sources().

◆ mainboard_ops

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

Definition at line 232 of file mainboard.c.