<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21880">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">google/kahlee: Add SMI apmc handler<br><br>Forward the apmc call to the chromeec.<br><br>Change-Id: Id724c1abf15617ad1ba28f2c0247455b014c1867<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/mainboard/google/kahlee/Makefile.inc<br>A src/mainboard/google/kahlee/smihandler.c<br>2 files changed, 31 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/21880/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/google/kahlee/Makefile.inc b/src/mainboard/google/kahlee/Makefile.inc<br>index faf061c..d0a7836 100644<br>--- a/src/mainboard/google/kahlee/Makefile.inc<br>+++ b/src/mainboard/google/kahlee/Makefile.inc<br>@@ -34,3 +34,5 @@<br> <br> verstage-y += chromeos.c<br> verstage-y += ec.c<br>+<br>+smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c<br>diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c<br>new file mode 100644<br>index 0000000..454b42e<br>--- /dev/null<br>+++ b/src/mainboard/google/kahlee/smihandler.c<br>@@ -0,0 +1,29 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright (C) 2008-2009 coresystems GmbH<br>+ * Copyright (C) 2016 Intel Corp.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#include <arch/acpi.h><br>+#include <cpu/x86/smm.h><br>+#include <ec/google/chromeec/smm.h><br>+#include <soc/smi.h><br>+#include "ec.h"<br>+<br>+int mainboard_smi_apmc(u8 apmc)<br>+{<br>+       if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC))<br>+           chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,<br>+                                     MAINBOARD_EC_SMI_EVENTS);<br>+    return 0;<br>+}<br></pre><p>To view, visit <a href="https://review.coreboot.org/21880">change 21880</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21880"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id724c1abf15617ad1ba28f2c0247455b014c1867 </div>
<div style="display:none"> Gerrit-Change-Number: 21880 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>