summaryrefslogtreecommitdiff
path: root/src/mainboard/system76/tgl-u
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2022-08-17 10:16:53 -0600
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-11 16:35:11 +0000
commite086d149ce9de5d29f1b543a0e71ff61babb0144 (patch)
tree5f64a1e6855456376939aeabec24e2f93512f24d /src/mainboard/system76/tgl-u
parent148f07526435878c0e1d71f42100163eefb4826e (diff)
mb/system76: Set SMBIOS wakeup type to power switch
Windows hardware tests require this field not be "Reserved". The System76 EC firmware does not report the wake type, so it is not possible to know if the system was powered on from the power switch or Wake-on-LAN. In the case WoL is used, this will report the wrong value. Change-Id: I4653c6bce2a5f0a88281fc810df5646e44f90674 Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66837 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jeremy Soller <jeremy@system76.com>
Diffstat (limited to 'src/mainboard/system76/tgl-u')
-rw-r--r--src/mainboard/system76/tgl-u/ramstage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/system76/tgl-u/ramstage.c b/src/mainboard/system76/tgl-u/ramstage.c
index dd7e73c595..d4cb898146 100644
--- a/src/mainboard/system76/tgl-u/ramstage.c
+++ b/src/mainboard/system76/tgl-u/ramstage.c
@@ -2,6 +2,12 @@
#include <mainboard/gpio.h>
#include <soc/ramstage.h>
+#include <smbios.h>
+
+smbios_wakeup_type smbios_system_wakeup_type(void)
+{
+ return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
+}
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
{