coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chromeos.c File Reference
#include <baseboard/gpio.h>
#include <boardid.h>
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include <gpio.h>
#include <types.h>
#include <vendorcode/google/chromeos/chromeos.h>
Include dependency graph for chromeos.c:

Go to the source code of this file.

Functions

void fill_lb_gpios (struct lb_gpios *gpios)
 
 DECLARE_CROS_GPIOS (cros_gpios)
 
int get_ec_is_trusted (void)
 

Variables

static const struct cros_gpio cros_gpios []
 

Function Documentation

◆ DECLARE_CROS_GPIOS()

DECLARE_CROS_GPIOS ( cros_gpios  )

◆ fill_lb_gpios()

void fill_lb_gpios ( struct lb_gpios gpios)

Definition at line 11 of file chromeos.c.

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 27 of file chromeos.c.

References board_id(), CONFIG, GPIO_EC_IN_RW, gpio_get(), and UNDEFINED_STRAPPING_ID.

Here is the call graph for this function:

Variable Documentation

◆ cros_gpios

const struct cros_gpio cros_gpios[]
static
Initial value:
= {
CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_DEVICE_NAME),
CROS_GPIO_WP_AL(CROS_WP_GPIO, GPIO_DEVICE_NAME),
}
#define CROS_WP_GPIO
Definition: onboard.h:7
#define GPIO_DEVICE_NAME
Definition: gpio.h:6

Definition at line 11 of file chromeos.c.