15 #include <variant/onboard.h>
18 #define WAKE_GPIO_EN SUS_GPIO_EN0
19 #define GPIO_SUS7_WAKE_MASK (1 << 12)
20 #define GPIO_SUS1_WAKE_MASK (1 << 13)
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
void enable_gpe(uint32_t mask)
#define ELOG_TYPE_EC_EVENT
#define printk(level,...)
void __weak mainboard_smi_sleep(u8 slp_typ)
int __weak mainboard_smi_apmc(u8 data)
void __weak mainboard_smi_gpi(u32 gpi_sts)
int __weak mainboard_io_trap_handler(int smif)
void outl(u32 val, u16 port)
int google_chromeec_set_wake_mask(uint64_t mask)
int google_chromeec_set_smi_mask(uint64_t mask)
int google_chromeec_set_usb_charge_mode(uint8_t port_id, enum usb_charge_mode mode)
int google_chromeec_set_sci_mask(uint64_t mask)
enum host_event_code google_chromeec_get_event(void)
@ EC_HOST_EVENT_LID_CLOSED
@ USB_CHARGE_MODE_DISABLED
#define APM_CNT_ACPI_DISABLE
#define APM_CNT_ACPI_ENABLE
static int elog_gsmi_add_event_byte(u8 event_type, u8 data)
#define COMMUNITY_OFFSET_GPNORTH
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define MAINBOARD_EC_S5_WAKE_EVENTS
#define MAINBOARD_EC_SCI_EVENTS
#define MAINBOARD_EC_SMI_EVENTS
#define MAINBOARD_EC_S3_WAKE_EVENTS
static uint8_t mainboard_smi_ec(void)
#define GPIO_SUS1_WAKE_MASK
#define GPIO_SUS7_WAKE_MASK
#define GPIO_WAKE_MASK_REG0
void lpc_set_low_power(void)