blob: 18dbfbc154235d78492ebb2ce47fb8bfb7880ce2 [file] [log] [blame]
Thejaswani Puttae3443d82019-07-18 16:23:20 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2018 Google LLC
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 <cpu/x86/smm.h>
17#include <ec/google/wilco/smm.h>
Kyösti Mälkki89d7fd82019-08-13 07:57:34 +030018#include <intelblocks/smihandler.h>
Thejaswani Puttae3443d82019-07-18 16:23:20 -070019#include <variant/ec.h>
20
21void mainboard_smi_espi_handler(void)
22{
23 wilco_ec_smi_espi();
24}
25
26void mainboard_smi_sleep(u8 slp_typ)
27{
28 wilco_ec_smi_sleep(slp_typ);
29}
30
31int mainboard_smi_apmc(u8 apmc)
32{
33 wilco_ec_smi_apmc(apmc);
34 return 0;
35}