coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vboot.c File Reference
#include <bootmode.h>
#include <device/i2c_simple.h>
#include <soc/i2c.h>
#include <soc/reg_access.h>
#include <spi_flash.h>
#include <security/vboot/vboot_common.h>
#include <security/vboot/vbnv.h>
#include "reg_access.h"
#include "gen1.h"
#include "gen2.h"
Include dependency graph for vboot.c:

Go to the source code of this file.

Functions

int get_recovery_mode_switch (void)
 HACK: Use Fn-Key as recovery mode switch. More...
 
int get_write_protect_state (void)
 Only used if CONFIG(CHROMEOS) is set. More...
 
void verstage_mainboard_init (void)
 
void __weak vboot_platform_prepare_reboot (void)
 
int vbnv_cmos_failed (void)
 

Function Documentation

◆ get_recovery_mode_switch()

int get_recovery_mode_switch ( void  )

HACK: Use Fn-Key as recovery mode switch.

Wait for sense register ready and read Fn-Key state.

Definition at line 15 of file vboot.c.

◆ get_write_protect_state()

int get_write_protect_state ( void  )

Only used if CONFIG(CHROMEOS) is set.

Always zero as the WP pin of the flash is tied high.

CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)

Definition at line 20 of file vboot.c.

◆ vbnv_cmos_failed()

int vbnv_cmos_failed ( void  )

Definition at line 78 of file vboot.c.

Referenced by check_cmos_recovery(), and verify_psp_transfer_buf().

Here is the caller graph for this function:

◆ vboot_platform_prepare_reboot()

void __weak vboot_platform_prepare_reboot ( void  )

◆ verstage_mainboard_init()

void verstage_mainboard_init ( void  )