coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chromeos.c File Reference
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include <device/pci_ops.h>
#include <device/device.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/common/gpio.h>
#include <types.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "onboard.h"
Include dependency graph for chromeos.c:

Go to the source code of this file.

Functions

void fill_lb_gpios (struct lb_gpios *gpios)
 
int get_lid_switch (void)
 
int get_write_protect_state (void)
 Only used if CONFIG(CHROMEOS) is set. More...
 
int get_recovery_mode_switch (void)
 HACK: Use Fn-Key as recovery mode switch. More...
 
 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 15 of file chromeos.c.

References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, GEN_PMCON_1, get_lid_switch(), gfx_get_init_done(), GPIO_LID, lb_add_gpios(), PCI_DEV, and pci_s_read_config32().

Here is the call graph for this function:

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 55 of file chromeos.c.

◆ get_lid_switch()

int get_lid_switch ( void  )

Definition at line 34 of file chromeos.c.

References get_gpio(), and GPIO_LID.

Here is the call graph for this function:

◆ get_recovery_mode_switch()

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 44 of file chromeos.c.

◆ get_write_protect_state()

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 39 of file chromeos.c.

References get_gpio(), and GPIO_SPI_WP.

Here is the call graph for this function:

Variable Documentation

◆ cros_gpios

const struct cros_gpio cros_gpios[]
static
Initial value:
= {
CROS_GPIO_REC_AH(CROS_GPIO_VIRTUAL, CROS_GPIO_DEVICE_NAME),
}
#define GPIO_SPI_WP
Definition: onboard.h:23
#define CROS_GPIO_DEVICE_NAME
Definition: gpio.h:14

Definition at line 44 of file chromeos.c.