payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / google / link / ec.c
blob6f87f1df04b2bc37c4411d5c9cde82a61d45dff5
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <console/console.h>
5 #include <ec/google/chromeec/ec.h>
6 #include "ec.h"
8 void link_ec_init(void)
10 const struct google_chromeec_event_info info = {
11 .log_events = LINK_EC_LOG_EVENTS,
12 .sci_events = LINK_EC_SCI_EVENTS,
13 .s3_wake_events = LINK_EC_S3_WAKE_EVENTS,
14 .s5_wake_events = LINK_EC_S5_WAKE_EVENTS,
17 printk(BIOS_DEBUG, "link_ec_init\n");
18 post_code(0xf0);
20 google_chromeec_events_init(&info, acpi_is_wakeup_s3());
22 post_code(0xf1);