![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | GPIO_WP GPIO(7, A, 6) |
#define | GPIO_RECOVERY GPIO(0, B, 1) |
Functions | |
void | setup_chromeos_gpios (void) |
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) |
#define GPIO_RECOVERY GPIO(0, B, 1) |
Definition at line 10 of file chromeos.c.
#define GPIO_WP GPIO(7, A, 6) |
Definition at line 9 of file chromeos.c.
Definition at line 18 of file chromeos.c.
References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, get_recovery_mode_switch(), GPIO_RECOVERY, GPIO_RESET, and lb_add_gpios().
int get_ec_is_trusted | ( | void | ) |
Definition at line 38 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 28 of file chromeos.c.
References gpio_get(), and GPIO_RECOVERY.
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 GPIO_WP.
Definition at line 12 of file chromeos.c.
References gpio_input(), gpio_input_pullup(), GPIO_RECOVERY, and GPIO_WP.