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/device.h>
#include <soc/chromeos.h>
#include <southbridge/intel/lynxpoint/lp_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.

Macros

#define REC_MODE_SETTING   0
 

Functions

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...
 
 DECLARE_CROS_GPIOS (cros_gpios)
 

Variables

static const struct cros_gpio cros_gpios []
 

Macro Definition Documentation

◆ REC_MODE_SETTING

#define REC_MODE_SETTING   0

Definition at line 12 of file chromeos.c.

Function Documentation

◆ DECLARE_CROS_GPIOS()

DECLARE_CROS_GPIOS ( cros_gpios  )

◆ fill_lb_gpios()

void fill_lb_gpios ( struct lb_gpios gpios)

Definition at line 14 of file chromeos.c.

References ACTIVE_HIGH, ARRAY_SIZE, gfx_get_init_done(), and lb_add_gpios().

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

References REC_MODE_SETTING.

◆ 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.

CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)

Definition at line 29 of file chromeos.c.

Variable Documentation

◆ cros_gpios

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

Definition at line 29 of file chromeos.c.