coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec.h File Reference
Include dependency graph for ec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EC_SCI_GPI   23 /* GPIO7/GPE23 is EC_SCI# */
 
#define EC_SMI_GPI   8 /* GPIO8 is EC_SMI# */
 
#define LINK_EC_SCI_EVENTS
 
#define LINK_EC_SMI_EVENTS    (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED))
 
#define LINK_EC_S5_WAKE_EVENTS
 
#define LINK_EC_S3_WAKE_EVENTS
 
#define LINK_EC_LOG_EVENTS
 

Functions

void link_ec_init (void)
 

Macro Definition Documentation

◆ EC_SCI_GPI

#define EC_SCI_GPI   23 /* GPIO7/GPE23 is EC_SCI# */

Definition at line 8 of file ec.h.

◆ EC_SMI_GPI

#define EC_SMI_GPI   8 /* GPIO8 is EC_SMI# */

Definition at line 9 of file ec.h.

◆ LINK_EC_LOG_EVENTS

#define LINK_EC_LOG_EVENTS
Value:
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN))
@ EC_HOST_EVENT_THERMAL_SHUTDOWN
Definition: ec_commands.h:679
@ EC_HOST_EVENT_BATTERY_SHUTDOWN
Definition: ec_commands.h:681
#define EC_HOST_EVENT_MASK(event_code)
Definition: ec_commands.h:738

Definition at line 36 of file ec.h.

◆ LINK_EC_S3_WAKE_EVENTS

#define LINK_EC_S3_WAKE_EVENTS
Value:
EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED))
@ EC_HOST_EVENT_KEY_PRESSED
Definition: ec_commands.h:668

Definition at line 31 of file ec.h.

◆ LINK_EC_S5_WAKE_EVENTS

#define LINK_EC_S5_WAKE_EVENTS
Value:
EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON))
@ EC_HOST_EVENT_POWER_BUTTON
Definition: ec_commands.h:657
@ EC_HOST_EVENT_LID_OPEN
Definition: ec_commands.h:656

Definition at line 26 of file ec.h.

◆ LINK_EC_SCI_EVENTS

#define LINK_EC_SCI_EVENTS
Value:
EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_LOW) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_CRITICAL) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_THRESHOLD) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_USB_CHARGER))
@ EC_HOST_EVENT_AC_DISCONNECTED
Definition: ec_commands.h:659
@ EC_HOST_EVENT_THERMAL_THRESHOLD
Definition: ec_commands.h:663
@ EC_HOST_EVENT_BATTERY_CRITICAL
Definition: ec_commands.h:661
@ EC_HOST_EVENT_LID_CLOSED
Definition: ec_commands.h:655
@ EC_HOST_EVENT_USB_CHARGER
Definition: ec_commands.h:667
@ EC_HOST_EVENT_BATTERY
Definition: ec_commands.h:662
@ EC_HOST_EVENT_AC_CONNECTED
Definition: ec_commands.h:658
@ EC_HOST_EVENT_BATTERY_LOW
Definition: ec_commands.h:660

Definition at line 11 of file ec.h.

◆ LINK_EC_SMI_EVENTS

#define LINK_EC_SMI_EVENTS    (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED))

Definition at line 22 of file ec.h.

Function Documentation

◆ link_ec_init()

void link_ec_init ( void  )

Definition at line 8 of file ec.c.

References acpi_is_wakeup_s3(), BIOS_DEBUG, google_chromeec_events_init(), info, LINK_EC_LOG_EVENTS, LINK_EC_S3_WAKE_EVENTS, LINK_EC_S5_WAKE_EVENTS, LINK_EC_SCI_EVENTS, post_code, and printk.

Referenced by mainboard_init().

Here is the call graph for this function:
Here is the caller graph for this function: