![]() |
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 <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 "ec.h"
#include <ec/smsc/mec1308/ec.h>
Go to the source code of this file.
Functions | |
void | fill_lb_gpios (struct lb_gpios *gpios) |
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... | |
int | get_lid_switch (void) |
int | get_power_switch (void) |
DECLARE_CROS_GPIOS (cros_gpios) | |
Variables | |
static const struct cros_gpio | cros_gpios [] |
DECLARE_CROS_GPIOS | ( | cros_gpios | ) |
Definition at line 16 of file chromeos.c.
References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, get_lid_switch(), get_power_switch(), get_recovery_mode_switch(), gfx_get_init_done(), GPIO_REC_MODE, and lb_add_gpios().
int get_lid_switch | ( | void | ) |
Definition at line 45 of file chromeos.c.
References EC_GPI_LID_STAT_BIT, EC_HW_GPI_STATUS, ec_mem_read(), and ec_read().
Referenced by verstage_main().
int get_power_switch | ( | void | ) |
Definition at line 50 of file chromeos.c.
Referenced by fill_lb_gpios().
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 40 of file chromeos.c.
References get_gpio(), and GPIO_REC_MODE.
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 35 of file chromeos.c.
References get_gpio(), and GPIO_SPI_WP.
|
static |
Definition at line 50 of file chromeos.c.