Angel Pons | feedf23 | 2020-04-05 13:22:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 2 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 3 | #include <acpi/acpi.h> |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 4 | #include <console/console.h> |
| 5 | #include <ec/google/chromeec/ec.h> |
| 6 | #include "ec.h" |
| 7 | |
| 8 | void link_ec_init(void) |
| 9 | { |
Furquan Shaikh | 2749c52 | 2017-10-04 14:01:41 -0700 | [diff] [blame] | 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, |
| 15 | }; |
| 16 | |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 17 | printk(BIOS_DEBUG, "link_ec_init\n"); |
| 18 | post_code(0xf0); |
| 19 | |
Furquan Shaikh | 2749c52 | 2017-10-04 14:01:41 -0700 | [diff] [blame] | 20 | google_chromeec_events_init(&info, acpi_is_wakeup_s3()); |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 21 | |
| 22 | post_code(0xf1); |
| 23 | } |