coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vboot.c File Reference
#include <ec/acpi/ec.h>
#include <bootmode.h>
#include <timer.h>
#include <delay.h>
#include "h8.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...
 

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 14 of file vboot.c.

References CONFIG, h8_get_fn_key(), h8_get_sense_ready(), mdelay(), stopwatch_expired(), and stopwatch_init_msecs_expire().

Here is the call graph for this function:

◆ 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.

Definition at line 39 of file vboot.c.

Referenced by nvm_is_write_protected().

Here is the caller graph for this function: