rebase recent dell thermal safety patch

it didn't apply. i will soon update the coreboot revisions
ready for Libreboot 25.12

just rebase this patch for now

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-11-18 18:47:23 +00:00
parent efd17fde19
commit 7a9977af72
2 changed files with 18 additions and 18 deletions
@@ -1,7 +1,7 @@
From 4968635d22dcd4f1eed0083565c423f7a42fc74c Mon Sep 17 00:00:00 2001 From 732819a85ea6cca637350192fbab9d459dc68439 Mon Sep 17 00:00:00 2001
From: Nicholas Chin <nic.c3.14@gmail.com> From: Nicholas Chin <nic.c3.14@gmail.com>
Date: Sun, 11 May 2025 15:41:22 -0600 Date: Sun, 11 May 2025 15:41:22 -0600
Subject: [PATCH 42/43] ec/dell/mec5035: Add command to disable EC-initiated Subject: [PATCH 1/2] ec/dell/mec5035: Add command to disable EC-initiated
thermal shutdown thermal shutdown
If command 0xBF isn't sent, the EC shuts down the system without warning If command 0xBF isn't sent, the EC shuts down the system without warning
@@ -39,11 +39,11 @@ Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
2 files changed, 21 insertions(+) 2 files changed, 21 insertions(+)
diff --git a/src/ec/dell/mec5035/mec5035.c b/src/ec/dell/mec5035/mec5035.c diff --git a/src/ec/dell/mec5035/mec5035.c b/src/ec/dell/mec5035/mec5035.c
index dffbb7960c..6c19d1f509 100644 index bdae929a27..b3574611a7 100644
--- a/src/ec/dell/mec5035/mec5035.c --- a/src/ec/dell/mec5035/mec5035.c
+++ b/src/ec/dell/mec5035/mec5035.c +++ b/src/ec/dell/mec5035/mec5035.c
@@ -94,6 +94,25 @@ void mec5035_control_radio(enum ec_radio_dev dev, enum ec_radio_state state) @@ -115,6 +115,25 @@ void mec5035_sleep_enable(void)
ec_command(CMD_RADIO_CTRL); ec_command(CMD_SLEEP_ENABLE);
} }
+void mec5035_cmd_bf(u8 i) +void mec5035_cmd_bf(u8 i)
@@ -69,24 +69,24 @@ index dffbb7960c..6c19d1f509 100644
{ {
/* If this isn't sent the EC shuts down the system after about 15 /* If this isn't sent the EC shuts down the system after about 15
diff --git a/src/ec/dell/mec5035/mec5035.h b/src/ec/dell/mec5035/mec5035.h diff --git a/src/ec/dell/mec5035/mec5035.h b/src/ec/dell/mec5035/mec5035.h
index 32f791cb01..e2000c455b 100644 index 51422598c4..f1d8c43051 100644
--- a/src/ec/dell/mec5035/mec5035.h --- a/src/ec/dell/mec5035/mec5035.h
+++ b/src/ec/dell/mec5035/mec5035.h +++ b/src/ec/dell/mec5035/mec5035.h
@@ -10,6 +10,7 @@ @@ -14,6 +14,7 @@ enum mec5035_cmd {
enum mec5035_cmd { CMD_POWER_BUTTON_TO_HOST = 0x3e,
CMD_MOUSE_TP = 0x1a, CMD_ACPI_WAKEUP_CHANGE = 0x4a,
CMD_RADIO_CTRL = 0x2b, CMD_SLEEP_ENABLE = 0x64,
+ CMD_BF = 0xbf, + CMD_BF = 0xbf,
CMD_CPU_OK = 0xc2, CMD_CPU_OK = 0xc2,
}; };
@@ -37,5 +38,6 @@ u8 mec5035_mouse_touchpad(enum ec_mouse_setting setting); @@ -66,5 +67,6 @@ void mec5035_change_wake(u8 source, enum ec_wake_change change);
void mec5035_cpu_ok(void); void mec5035_sleep_enable(void);
void mec5035_early_init(void);
void mec5035_control_radio(enum ec_radio_dev device, enum ec_radio_state state); void mec5035_smi_sleep(int slp_type);
+void mec5035_cmd_bf(u8 i); +void mec5035_cmd_bf(u8 i);
#endif /* _EC_DELL_MEC5035_H_ */ #endif /* _EC_DELL_MEC5035_H_ */
-- --
2.51.2 2.47.3
@@ -1,7 +1,7 @@
From 6e52d15cd47c849567bfc2cb75ccf3c6513dc688 Mon Sep 17 00:00:00 2001 From b93835414970c3b3e5a3f9ccaa82e2ae80756f82 Mon Sep 17 00:00:00 2001
From: Nicholas Chin <nic.c3.14@gmail.com> From: Nicholas Chin <nic.c3.14@gmail.com>
Date: Sun, 11 May 2025 16:28:23 -0600 Date: Sun, 11 May 2025 16:28:23 -0600
Subject: [PATCH 43/43] mb/dell/snb_ivb_latitude: Disable EC initiated shutdown Subject: [PATCH 2/2] mb/dell/snb_ivb_latitude: Disable EC initiated shutdown
at 87 degrees at 87 degrees
If command 0xBF isn't sent, the EC will shut down the system without If command 0xBF isn't sent, the EC will shut down the system without
@@ -32,5 +32,5 @@ index ff83db095b..ef385a0a70 100644
+ mec5035_cmd_bf(0x07); + mec5035_cmd_bf(0x07);
} }
-- --
2.51.2 2.47.3