Angel Pons | b6636b0 | 2020-04-05 13:21:41 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Shelley Chen | fced3fe | 2019-01-25 14:44:42 -0800 | [diff] [blame] | 2 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 3 | #include <acpi/acpi.h> |
Shelley Chen | fced3fe | 2019-01-25 14:44:42 -0800 | [diff] [blame] | 4 | #include <ec/ec.h> |
| 5 | #include <ec/google/chromeec/ec.h> |
| 6 | #include <variant/ec.h> |
| 7 | |
| 8 | void mainboard_ec_init(void) |
| 9 | { |
| 10 | const struct google_chromeec_event_info info = { |
| 11 | .log_events = MAINBOARD_EC_LOG_EVENTS, |
| 12 | .sci_events = MAINBOARD_EC_SCI_EVENTS, |
| 13 | .s3_wake_events = MAINBOARD_EC_S3_WAKE_EVENTS, |
| 14 | .s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS, |
| 15 | .s0ix_wake_events = MAINBOARD_EC_S0IX_WAKE_EVENTS, |
| 16 | }; |
| 17 | |
| 18 | google_chromeec_events_init(&info, acpi_is_wakeup_s3()); |
| 19 | } |