![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#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"
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) |
Definition at line 17 of file bootblock.c.
References _Static_assert(), CONFIG, rk3399_pmugrf_regs::gpio0b_iomux, gpio_output(), GPIO_P15V_EN, GPIO_P30V_EN, rk3399_grf_regs::io_vsel, rk3399_grf_regs::iomux_uart2c, IOMUX_UART2C, rk3399_grf, rk3399_pmugrf, RK_CLRBITS, RK_SETBITS, rk3399_pmugrf_regs::soc_con0, rk3399_grf_regs::soc_con7, UART2_BASE, UART2C_SEL, and write32().
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().
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().
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().
Definition at line 75 of file bootblock.c.
References CONFIG, GPIO, gpio_input(), gpio_input_irq(), gpio_input_pullup(), GPIO_PULLUP, GPIO_TPM_IRQ, i2c_init(), rk3399_pmugrf_regs::iomux_i2c0_scl, IOMUX_I2C0_SCL, rk3399_pmugrf_regs::iomux_i2c0_sda, IOMUX_I2C0_SDA, IOMUX_SPI0, rk3399_grf_regs::iomux_spi0, rk3399_grf_regs::iomux_spi2, IOMUX_SPI2, IRQ_TYPE_EDGE_RISING, KHz, rk3399_grf, rk3399_pmugrf, rockchip_spi_init(), and write32().
Referenced by bootblock_mainboard_init().
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().