![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi.h>
#include <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <soc/pm.h>
#include <elog.h>
#include <ec/google/chromeec/ec.h>
#include <southbridge/intel/lynxpoint/lp_gpio.h>
#include <soc/iomap.h>
#include <soc/nvs.h>
#include "ec.h"
#include <variant/onboard.h>
Go to the source code of this file.
Functions | |
static u8 | mainboard_smi_ec (void) |
void | mainboard_smi_gpi (u32 gpi_sts) |
static void | mainboard_disable_gpios (void) |
void | mainboard_smi_sleep (u8 slp_typ) |
int | mainboard_smi_apmc (u8 apmc) |
Definition at line 49 of file smihandler.c.
References BOARD_LTE_DISABLE_GPIO, BOARD_PP3300_CODEC_GPIO, BOARD_SSD_RESET_GPIO, BOARD_WLAN_DISABLE_GPIO, and set_gpio().
Referenced by mainboard_smi_sleep().
int mainboard_smi_apmc | ( | u8 | apmc | ) |
Definition at line 104 of file smihandler.c.
References APM_CNT_ACPI_DISABLE, APM_CNT_ACPI_ENABLE, EC_HOST_EVENT_NONE, google_chromeec_get_event(), google_chromeec_set_sci_mask(), google_chromeec_set_smi_mask(), MAINBOARD_EC_SCI_EVENTS, and MAINBOARD_EC_SMI_EVENTS.
Definition at line 16 of file smihandler.c.
References ACPI_BASE_ADDRESS, BIOS_DEBUG, EC_HOST_EVENT_LID_CLOSED, elog_gsmi_add_event_byte(), ELOG_TYPE_EC_EVENT, google_chromeec_get_event(), inl(), outl(), PM1_CNT, and printk.
Referenced by mainboard_smi_gpi().
Definition at line 40 of file smihandler.c.
References EC_SMI_GPI, and mainboard_smi_ec().
Definition at line 63 of file smihandler.c.
References ACPI_S3, ACPI_S5, EC_HOST_EVENT_NONE, gnvs, google_chromeec_get_event(), google_chromeec_set_sci_mask(), google_chromeec_set_smi_mask(), google_chromeec_set_usb_charge_mode(), google_chromeec_set_wake_mask(), mainboard_disable_gpios(), MAINBOARD_EC_S3_WAKE_EVENTS, MAINBOARD_EC_S5_WAKE_EVENTS, global_nvs::s3u0, global_nvs::s5u0, and USB_CHARGE_MODE_DISABLED.