diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2017-10-04 12:34:17 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-10-15 23:43:17 +0000 |
commit | 79df1fb0904aac6e6c14b4e1262afa0554a2d27d (patch) | |
tree | 3c239afc9aa6cd4c52d03dd71820ef3d343f8e90 /src/mainboard/google/kahlee/smihandler.c | |
parent | 7e710e047f059025392ed6607909f41114d8e843 (diff) |
google/kahlee: Add SMI apmc handler
Forward the apmc call to the chromeec.
Change-Id: Id724c1abf15617ad1ba28f2c0247455b014c1867
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/21880
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/kahlee/smihandler.c')
-rw-r--r-- | src/mainboard/google/kahlee/smihandler.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c new file mode 100644 index 0000000000..454b42ecd0 --- /dev/null +++ b/src/mainboard/google/kahlee/smihandler.c @@ -0,0 +1,29 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2008-2009 coresystems GmbH + * Copyright (C) 2016 Intel Corp. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <arch/acpi.h> +#include <cpu/x86/smm.h> +#include <ec/google/chromeec/smm.h> +#include <soc/smi.h> +#include "ec.h" + +int mainboard_smi_apmc(u8 apmc) +{ + if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) + chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, + MAINBOARD_EC_SMI_EVENTS); + return 0; +} |