mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
c716341c13
I realised that the Dell OptiPlex 3050 Micro has NVRAM available. Use that backend, and hardcode power_on_after_fail to Disable, which is already done in cmos.default. The Lenovo ThinkPad T480 currently has no option table in coreboot, besides the CBFS one. For this, the CBFS option table has been enabled, and the build system has been modified to insert a relevant config for power_on_after_fail. Nicholas Chin informs me that Kabylake generally has legacy NVRAM, so enabling it for the T480/T480s should work, but we'll need to use it in the future anyway; better to just use CBFS now. I *could* use the CBFS backend on 3050micro as well. Signed-off-by: Leah Rowe <leah@libreboot.org>
71 lines
2.4 KiB
Diff
71 lines
2.4 KiB
Diff
From 26862554523e08ea1d1cd18cfd09e3434b12e2a3 Mon Sep 17 00:00:00 2001
|
|
From: Nicholas Chin <nic.c3.14@gmail.com>
|
|
Date: Fri, 3 May 2024 16:31:12 -0600
|
|
Subject: [PATCH 21/40] mb/dell: Add S3 SMI handler for Dell Latitudes
|
|
|
|
Integrate the previously added mec5035_smi_sleep() function into
|
|
mainboard code to fix S3 suspend on the SNB/IVB Latitudes and the E7240.
|
|
The E6400 does not require the EC command to sucessfully suspend and
|
|
resume from S3, though sending it does enable the breathing effect on
|
|
the power LED while in S3. Without it, all LEDs turn off during S3.
|
|
|
|
Change-Id: Ic0d887f75be13c3fb9f6df62153ac458895e0283
|
|
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
|
|
---
|
|
src/mainboard/dell/gm45_latitude/smihandler.c | 9 +++++++++
|
|
src/mainboard/dell/haswell_latitude/smihandler.c | 9 +++++++++
|
|
src/mainboard/dell/snb_ivb_latitude/smihandler.c | 9 +++++++++
|
|
3 files changed, 27 insertions(+)
|
|
create mode 100644 src/mainboard/dell/gm45_latitude/smihandler.c
|
|
create mode 100644 src/mainboard/dell/haswell_latitude/smihandler.c
|
|
create mode 100644 src/mainboard/dell/snb_ivb_latitude/smihandler.c
|
|
|
|
diff --git a/src/mainboard/dell/gm45_latitude/smihandler.c b/src/mainboard/dell/gm45_latitude/smihandler.c
|
|
new file mode 100644
|
|
index 0000000000..00e55b51db
|
|
--- /dev/null
|
|
+++ b/src/mainboard/dell/gm45_latitude/smihandler.c
|
|
@@ -0,0 +1,9 @@
|
|
+/* SPDX-License-Identifier: GPL-2.0-only */
|
|
+
|
|
+#include <cpu/x86/smm.h>
|
|
+#include <ec/dell/mec5035/mec5035.h>
|
|
+
|
|
+void mainboard_smi_sleep(u8 slp_typ)
|
|
+{
|
|
+ mec5035_smi_sleep(slp_typ);
|
|
+}
|
|
diff --git a/src/mainboard/dell/haswell_latitude/smihandler.c b/src/mainboard/dell/haswell_latitude/smihandler.c
|
|
new file mode 100644
|
|
index 0000000000..00e55b51db
|
|
--- /dev/null
|
|
+++ b/src/mainboard/dell/haswell_latitude/smihandler.c
|
|
@@ -0,0 +1,9 @@
|
|
+/* SPDX-License-Identifier: GPL-2.0-only */
|
|
+
|
|
+#include <cpu/x86/smm.h>
|
|
+#include <ec/dell/mec5035/mec5035.h>
|
|
+
|
|
+void mainboard_smi_sleep(u8 slp_typ)
|
|
+{
|
|
+ mec5035_smi_sleep(slp_typ);
|
|
+}
|
|
diff --git a/src/mainboard/dell/snb_ivb_latitude/smihandler.c b/src/mainboard/dell/snb_ivb_latitude/smihandler.c
|
|
new file mode 100644
|
|
index 0000000000..00e55b51db
|
|
--- /dev/null
|
|
+++ b/src/mainboard/dell/snb_ivb_latitude/smihandler.c
|
|
@@ -0,0 +1,9 @@
|
|
+/* SPDX-License-Identifier: GPL-2.0-only */
|
|
+
|
|
+#include <cpu/x86/smm.h>
|
|
+#include <ec/dell/mec5035/mec5035.h>
|
|
+
|
|
+void mainboard_smi_sleep(u8 slp_typ)
|
|
+{
|
|
+ mec5035_smi_sleep(slp_typ);
|
|
+}
|
|
--
|
|
2.47.3
|
|
|