mb/google/hatch/var/dratini: Update DPTF parameters
[coreboot.git] / src / mainboard / google / auron / ec.c
blob3fc5373096e0f65aa12f853d5ff55f8d7bd59ba2
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2014 Google Inc.
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.
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.
16 #include <arch/acpi.h>
17 #include <vendorcode/google/chromeos/chromeos.h>
18 #include <types.h>
19 #include <console/console.h>
20 #include <ec/google/chromeec/ec.h>
21 #include "ec.h"
23 void mainboard_ec_init(void)
25 const struct google_chromeec_event_info info = {
26 .log_events = MAINBOARD_EC_LOG_EVENTS,
27 .sci_events = MAINBOARD_EC_SCI_EVENTS,
28 .s3_wake_events = MAINBOARD_EC_S3_WAKE_EVENTS,
29 .s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS,
32 printk(BIOS_DEBUG, "mainboard_ec_init\n");
33 post_code(0xf0);
35 google_chromeec_events_init(&info, acpi_is_wakeup_s3());
37 post_code(0xf1);