![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <baseboard/gpio.h>
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include <gpio.h>
#include <types.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... | |
Definition at line 9 of file chromeos.c.
References ACTIVE_HIGH, ARRAY_SIZE, CONFIG, get_lid_switch(), gfx_get_init_done(), GPIO_EC_IN_RW, gpio_get(), and lb_add_gpios().
int get_lid_switch | ( | void | ) |
Definition at line 25 of file chromeos.c.
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 31 of file chromeos.c.
int get_write_protect_state | ( | void | ) |
Only used if CONFIG(CHROMEOS) is set.
CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)
Definition at line 37 of file chromeos.c.