summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/system76/ec/Makefile.inc3
-rw-r--r--src/ec/system76/ec/smbios.c9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ec/system76/ec/Makefile.inc b/src/ec/system76/ec/Makefile.inc
index 110b997e9a..9808e297d6 100644
--- a/src/ec/system76/ec/Makefile.inc
+++ b/src/ec/system76/ec/Makefile.inc
@@ -2,6 +2,9 @@
ifeq ($(CONFIG_EC_SYSTEM76_EC),y)
all-y += system76_ec.c
+
+ramstage-y += smbios.c
+
smm-$(CONFIG_DEBUG_SMI) += system76_ec.c
endif
diff --git a/src/ec/system76/ec/smbios.c b/src/ec/system76/ec/smbios.c
new file mode 100644
index 0000000000..e55d5f0965
--- /dev/null
+++ b/src/ec/system76/ec/smbios.c
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <smbios.h>
+
+smbios_wakeup_type smbios_system_wakeup_type(void)
+{
+ // TODO: Read wake source from EC.
+ return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
+}