coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <boot/coreboot_tables.h>
#include <bootmode.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>
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) |
Definition at line 12 of file chromeos.c.
References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, EXYNOS5_GPX1, EXYNOS5_GPX3, gpio_get_value(), GPIO_X12, GPIO_X34, and lb_add_gpios().
int get_ec_is_trusted | ( | void | ) |
Definition at line 42 of file chromeos.c.
References gpio_get_value(), and GPIO_X23.
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_X07.
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_get_value(), and GPIO_X30.