cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / google / eve / ec.c
blob7ed07460c8051ee3d66134aa9430528050c95ae5
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <ec/google/chromeec/ec.h>
5 #include "ec.h"
7 void mainboard_ec_init(void)
9 const struct google_chromeec_event_info info = {
10 .log_events = MAINBOARD_EC_LOG_EVENTS,
11 .sci_events = MAINBOARD_EC_SCI_EVENTS,
12 .s3_wake_events = MAINBOARD_EC_S3_WAKE_EVENTS,
13 .s3_device_events = MAINBOARD_EC_S3_DEVICE_EVENTS,
14 .s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS,
17 google_chromeec_events_init(&info, acpi_is_wakeup_s3());
19 /* Turn off keyboard backlight after turning on in romstage */
20 if (!acpi_is_wakeup_s3())
21 google_chromeec_kbbacklight(0);