coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <device/mmio.h>
#include <bootblock_common.h>
#include <delay.h>
#include <soc/grf.h>
#include <gpio.h>
#include <soc/clock.h>
#include <soc/i2c.h>
#include <soc/pwm.h>
#include <soc/spi.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "board.h"
#include "pwm_regulator.h"
Include dependency graph for bootblock.c:

Go to the source code of this file.

Functions

void bootblock_mainboard_early_init (void)
 
static void configure_spi_flash (void)
 
static void configure_ec (void)
 
static void configure_tpm (void)
 
static void speed_up_boot_cpu (void)
 
void bootblock_mainboard_init (void)
 

Function Documentation

◆ bootblock_mainboard_early_init()

◆ bootblock_mainboard_init()

void bootblock_mainboard_init ( void  )

Definition at line 115 of file bootblock.c.

References configure_ec(), configure_spi_flash(), configure_tpm(), rkclk_was_watchdog_reset(), setup_chromeos_gpios(), and speed_up_boot_cpu().

Here is the call graph for this function:

◆ configure_ec()

static void configure_ec ( void  )
static

Definition at line 63 of file bootblock.c.

References GPIO, gpio_input(), gpio_input_pullup(), rk3399_grf_regs::iomux_spi5, IOMUX_SPI5, rk3399_grf, rockchip_spi_init(), and write32().

Referenced by bootblock_mainboard_init().

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

◆ configure_spi_flash()

static void configure_spi_flash ( void  )
static

Definition at line 49 of file bootblock.c.

References GPIO, gpio_input(), IOMUX_SPI1_CSCLKTX, IOMUX_SPI1_RX, MHz, rk3399_pmugrf, rockchip_spi_init(), rockchip_spi_set_sample_delay(), rk3399_pmugrf_regs::spi1_csclktx, rk3399_pmugrf_regs::spi1_rxd, and write32().

Referenced by bootblock_mainboard_init().

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

◆ configure_tpm()

◆ speed_up_boot_cpu()

static void speed_up_boot_cpu ( void  )
static

Definition at line 106 of file bootblock.c.

References APLL_1512_MHZ, CPU_CLUSTER_LITTLE, pwm_regulator_configure(), PWM_REGULATOR_LIT, rkclk_configure_cpu(), and udelay().

Referenced by bootblock_mainboard_init().

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