coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_configs.c File Reference
#include <gpio.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/early_configs.h>
#include <soc/nvidia/tegra/i2c.h>
Include dependency graph for early_configs.c:

Go to the source code of this file.

Functions

static void setup_pinmux (void)
 
static void configure_ec_spi_bus (void)
 
static void configure_tpm_i2c_bus (void)
 
void early_mainboard_init (void)
 

Variables

static struct clk_rst_ctlrclk_rst = (void *)TEGRA_CLK_RST_BASE
 

Function Documentation

◆ configure_ec_spi_bus()

static void configure_ec_spi_bus ( void  )
static

Definition at line 68 of file early_configs.c.

References CLK_M, and clock_configure_source.

Referenced by early_mainboard_init().

Here is the caller graph for this function:

◆ configure_tpm_i2c_bus()

static void configure_tpm_i2c_bus ( void  )
static

Definition at line 73 of file early_configs.c.

References clock_configure_i2c_scl_freq, i2c_init(), and PLLP.

Referenced by early_mainboard_init().

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

◆ early_mainboard_init()

void early_mainboard_init ( void  )

Definition at line 80 of file early_configs.c.

References CLK_H_SBC1, CLK_U_I2C3, clock_enable_clear_reset(), configure_ec_spi_bus(), configure_tpm_i2c_bus(), and setup_pinmux().

Referenced by romstage(), and verstage_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 11 of file early_configs.c.

References GPIO, gpio_input_pullup(), GPIO_MODE_GPIO, gpio_output(), gpio_set_mode(), PINMUX_INPUT_ENABLE, PINMUX_PULL_NONE, and pinmux_set_config().

Referenced by early_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 9 of file early_configs.c.