blob: 6f87f1df04b2bc37c4411d5c9cde82a61d45dff5 [file] [log] [blame]
Angel Ponsfeedf232020-04-05 13:22:01 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer49428d82013-02-21 15:48:37 -08002
Furquan Shaikh76cedd22020-05-02 10:24:23 -07003#include <acpi/acpi.h>
Stefan Reinauer49428d82013-02-21 15:48:37 -08004#include <console/console.h>
5#include <ec/google/chromeec/ec.h>
6#include "ec.h"
7
8void link_ec_init(void)
9{
Furquan Shaikh2749c522017-10-04 14:01:41 -070010 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 Reinauer49428d82013-02-21 15:48:37 -080017 printk(BIOS_DEBUG, "link_ec_init\n");
18 post_code(0xf0);
19
Furquan Shaikh2749c522017-10-04 14:01:41 -070020 google_chromeec_events_init(&info, acpi_is_wakeup_s3());
Stefan Reinauer49428d82013-02-21 15:48:37 -080021
22 post_code(0xf1);
23}