summaryrefslogtreecommitdiff
path: root/src/ec/system76/ec/smbios.c
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2023-01-10 13:32:25 -0700
committerFelix Held <felix-coreboot@felixheld.de>2023-03-04 01:58:35 +0000
commite0c96daccedc12a31c52a5da3cfacdb4a61c2e9a (patch)
tree961b366df136546ed29b0d01353369ef6b3f65a5 /src/ec/system76/ec/smbios.c
parent9a911cef885f608e5645683a332216a78ef40e8e (diff)
{ec,mb}/system76: Move smbios_system_wakeup_type
Move the implementation of smbios_system_wakeup_type from the mainboards to the EC for all models that use System76 EC (everything except KBL). Change-Id: Iaace234ca87e8a05eaa006a438d2c9eb13ce4d76 Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71802 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jeremy Soller <jeremy@system76.com>
Diffstat (limited to 'src/ec/system76/ec/smbios.c')
-rw-r--r--src/ec/system76/ec/smbios.c9
1 files changed, 9 insertions, 0 deletions
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;
+}