coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chromeos.c File Reference
#include <boardid.h>
#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 setup_chromeos_gpios (void)
 
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 21 of file chromeos.c.

References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, CR50_IRQ, EC_IN_RW, EC_IRQ, lb_add_gpios(), LID, and POWER_BUTTON.

Here is the call graph for this function:

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 38 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 33 of file chromeos.c.

References gpio_get(), and WRITE_PROTECT.

Here is the call graph for this function:

◆ setup_chromeos_gpios()

void setup_chromeos_gpios ( void  )

Definition at line 10 of file chromeos.c.

References board_id(), EC_IN_RW, EC_IRQ, EC_SUSPEND_L, gpio_input(), gpio_input_pullup(), gpio_output(), LID, POWER_BUTTON, and WRITE_PROTECT.

Here is the call graph for this function: