3 #define __SIMPLE_DEVICE__
12 #include <soc/pci_devs.h>
21 #define PME_STS_BIT (1 << 15)
28 bool dev_found =
false;
82 for (i = 0; i <= 31; i++) {
83 if (gpe0_sts & (1 << i))
#define ELOG_WAKE_SOURCE_RTC
#define ELOG_WAKE_SOURCE_PME_GBE
#define ELOG_WAKE_SOURCE_PME_WIFI
#define ELOG_WAKE_SOURCE_PCIE
#define ELOG_TYPE_SUS_POWER_FAIL
#define ELOG_TYPE_THERM_TRIP
#define ELOG_TYPE_POWER_FAIL
#define ELOG_WAKE_SOURCE_PME_CSE
#define ELOG_WAKE_SOURCE_PME_XDCI
#define ELOG_TYPE_ACPI_WAKE
#define ELOG_WAKE_SOURCE_PME
#define ELOG_WAKE_SOURCE_PME_SATA
#define ELOG_WAKE_SOURCE_GPE
#define ELOG_WAKE_SOURCE_PWRBTN
#define ELOG_WAKE_SOURCE_PME_INTERNAL
#define ELOG_TYPE_POWER_BUTTON_OVERRIDE
#define ELOG_TYPE_SYSTEM_RESET
#define ELOG_TYPE_RTC_RESET
#define ELOG_TYPE_TCO_RESET
#define ELOG_WAKE_SOURCE_PME_XHCI
#define ELOG_WAKE_SOURCE_PME_HDA
#define ELOG_WAKE_SOURCE_SMBUS
#define printk(level,...)
BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_ENTRY, elog_bs_init, NULL)
int elog_add_event_byte(u8 event_type, u8 data)
int elog_add_event_wake(u8 source, u32 instance)
int elog_add_event(u8 event_type)
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
#define GBLRST_CAUSE0_THERMTRIP
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void elog_gsmi_cb_platform_log_wake_source(void)
#define TCO_STS_SECOND_TO
static void pch_log_pme_internal_wake_source(void)
static void pch_log_wake_source(const struct chipset_power_state *ps)
static void pch_log_gpio_gpe(u32 gpe0_sts, u32 gpe0_en, int start)
static void pch_log_power_and_resets(const struct chipset_power_state *ps)
void pmc_fill_pm_reg_info(struct chipset_power_state *ps)
struct chipset_power_state * pmc_get_power_state(void)
bool xhci_update_wake_event(const struct xhci_wake_info *wake_info, size_t wake_info_count)
uint32_t prev_sleep_state