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 <soc/grf.h>
#include <gpio.h>
#include <soc/spi.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)
 
void bootblock_mainboard_init (void)
 

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 9 of file bootblock.c.

References _Static_assert(), CONFIG, rk3399_grf_regs::iomux_uart2c, IOMUX_UART2C, rk3399_grf, rk3399_grf_regs::soc_con7, UART2_BASE, UART2C_SEL, and write32().

Here is the call graph for this function:

◆ bootblock_mainboard_init()

void bootblock_mainboard_init ( void  )

Definition at line 37 of file bootblock.c.

References configure_spi_flash().

Here is the call graph for this function:

◆ configure_spi_flash()

static void configure_spi_flash ( void  )
static

Definition at line 23 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: