coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chromeos.c File Reference
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include "gpio.h"
Include dependency graph for chromeos.c:

Go to the source code of this file.

Functions

void fill_lb_gpios (struct lb_gpios *gpios)
 
int get_write_protect_state (void)
 Only used if CONFIG(CHROMEOS) is set. More...
 
int get_ec_is_trusted (void)
 

Function Documentation

◆ fill_lb_gpios()

void fill_lb_gpios ( struct lb_gpios gpios)

Definition at line 8 of file chromeos.c.

References ACTIVE_HIGH, ACTIVE_LOW, AP_SYS_RESET_L, ARRAY_SIZE, EC_IN_RW, lb_add_gpios(), and POWER_BUTTON.

Here is the call graph for this function:

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 23 of file chromeos.c.

References EC_IN_RW, and gpio_get().

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 18 of file chromeos.c.

References gpio_get(), and WRITE_PROTECT_L.

Here is the call graph for this function: