Eric Lai | 7c304f8 | 2022-05-24 10:01:49 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <acpi/acpi.h> |
| 4 | #include <console/console.h> |
| 5 | #include <ec/ec.h> |
| 6 | #include <ec/google/chromeec/ec.h> |
| 7 | #include <variant/ec.h> |
| 8 | |
| 9 | void mainboard_ec_init(void) |
| 10 | { |
| 11 | static const struct google_chromeec_event_info info = { |
| 12 | .log_events = MAINBOARD_EC_LOG_EVENTS, |
| 13 | .sci_events = MAINBOARD_EC_SCI_EVENTS, |
| 14 | .s3_wake_events = MAINBOARD_EC_S3_WAKE_EVENTS, |
| 15 | .s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS, |
| 16 | .s0ix_wake_events = MAINBOARD_EC_S0IX_WAKE_EVENTS, |
| 17 | }; |
| 18 | |
| 19 | printk(BIOS_DEBUG, "mainboard: EC init\n"); |
| 20 | |
| 21 | google_chromeec_events_init(&info, acpi_is_wakeup_s3()); |
| 22 | } |