blob: 7b9b9a7b338c438f2291b8837732128b9fa6307e [file] [log] [blame]
Furquan Shaikh06cd9032016-12-14 12:10:21 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2016 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <arch/acpi.h>
17#include <ec/google/chromeec/ec.h>
18
Furquan Shaikh76c392d2017-04-13 14:15:56 -070019#include <variant/ec.h>
Furquan Shaikh06cd9032016-12-14 12:10:21 -080020
21void mainboard_ec_init(void)
22{
Furquan Shaikh2749c522017-10-04 14:01:41 -070023 const struct google_chromeec_event_info info = {
24 .log_events = MAINBOARD_EC_LOG_EVENTS,
25 .sci_events = MAINBOARD_EC_SCI_EVENTS,
26 .s3_wake_events = MAINBOARD_EC_S3_WAKE_EVENTS,
27 .s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS,
Jenny TC7e687b82017-10-27 17:39:22 +053028 .s0ix_wake_events = MAINBOARD_EC_S0IX_WAKE_EVENTS,
Furquan Shaikh2749c522017-10-04 14:01:41 -070029 };
Furquan Shaikh06cd9032016-12-14 12:10:21 -080030
Furquan Shaikh2749c522017-10-04 14:01:41 -070031 google_chromeec_events_init(&info, acpi_is_wakeup_s3());
Furquan Shaikh06cd9032016-12-14 12:10:21 -080032
Furquan Shaikh06cd9032016-12-14 12:10:21 -080033}