![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include <device/device.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h>
#include <types.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "ec.h"
Go to the source code of this file.
Functions | |
void | fill_lb_gpios (struct lb_gpios *gpios) |
int | get_lid_switch (void) |
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... | |
DECLARE_CROS_GPIOS (cros_gpios) | |
int | get_ec_is_trusted (void) |
Variables | |
static const struct cros_gpio | cros_gpios [] |
DECLARE_CROS_GPIOS | ( | cros_gpios | ) |
Definition at line 15 of file chromeos.c.
References ACTIVE_HIGH, ARRAY_SIZE, get_lid_switch(), gfx_get_init_done(), and lb_add_gpios().
int get_ec_is_trusted | ( | void | ) |
Definition at line 64 of file chromeos.c.
int get_lid_switch | ( | void | ) |
Definition at line 25 of file chromeos.c.
References CONFIG, EC_SWITCH_LID_OPEN, and google_chromeec_get_switches().
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 35 of file chromeos.c.
References CONFIG, EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_MASK, EC_SWITCH_DEDICATED_RECOVERY, google_chromeec_get_events_b(), and google_chromeec_get_switches().
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.
CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)
Definition at line 52 of file chromeos.c.
|
static |
Definition at line 52 of file chromeos.c.