![]() |
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 <gpio.h>
#include <security/tpm/tis.h>
#include "board.h"
Go to the source code of this file.
Functions | |
int | get_write_protect_state (void) |
Only used if CONFIG(CHROMEOS) is set. More... | |
void | fill_lb_gpios (struct lb_gpios *gpios) |
void | setup_chromeos_gpios (void) |
int | get_ec_is_trusted (void) |
Variables | |
static const uint32_t | wp_polarity |
Definition at line 18 of file chromeos.c.
References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, GPIO_BACKLIGHT, GPIO_EC_IN_RW, GPIO_EC_IRQ, GPIO_RESET, GPIO_SPK_PA_EN, GPIO_TPM_IRQ, and lb_add_gpios().
int get_ec_is_trusted | ( | void | ) |
Definition at line 53 of file chromeos.c.
References GPIO_EC_IN_RW, and gpio_get().
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 13 of file chromeos.c.
References gpio_get(), GPIO_WP, and wp_polarity.
Definition at line 36 of file chromeos.c.
References CONFIG, GPIO_EC_IN_RW, GPIO_EC_IRQ, gpio_input(), gpio_input_pullup(), and GPIO_WP.
|
static |
Definition at line 10 of file chromeos.c.
Referenced by get_write_protect_state().