coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chromeos.c File Reference
#include <boot/coreboot_tables.h>
#include <ec/google/chromeec/ec.h>
#include <ec/google/chromeec/ec_commands.h>
#include <soc/cpu.h>
#include <soc/gpio.h>
#include <types.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include <bootmode.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_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...
 
int get_ec_is_trusted (void)
 

Function Documentation

◆ fill_lb_gpios()

void fill_lb_gpios ( struct lb_gpios gpios)

Definition at line 12 of file chromeos.c.

References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, EXYNOS5_GPX1, EXYNOS5_GPX3, gpio_get_value(), GPIO_X13, GPIO_X35, and lb_add_gpios().

Here is the call graph for this function:

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 42 of file chromeos.c.

References GPIO_D17, and gpio_get_value().

Here is the call graph for this function:

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

References EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_MASK, google_chromeec_get_events_b(), gpio_get_value(), and GPIO_Y10.

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

References GPIO_D16, and gpio_get_value().

Here is the call graph for this function: