mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-21 05:53:14 +00:00
16d9c405ac
Fixes access to the EC through the Index I/O interface Fixes AC and DC LoadLine values to avoid overheating problems Fix Turbo mode value from EC Change version name to have '-heads' suffix
64 lines
1.9 KiB
Diff
64 lines
1.9 KiB
Diff
From 7cb5f11eac45c17bfdd096eb10db3115fc782b5b Mon Sep 17 00:00:00 2001
|
|
From: Youness Alaoui <youness.alaoui@puri.sm>
|
|
Date: Tue, 13 Mar 2018 16:58:52 -0400
|
|
Subject: [PATCH 2/3] ec/purism: Fix the CPU's PPCM value for Turbo when set by
|
|
the EC
|
|
|
|
The EC needs to set the PPCM value to 0, 1 or 2 depending on whether
|
|
the Turbo is enabled or not and the value differs from Broadwell and
|
|
Skylake machines.
|
|
|
|
Change-Id: I662dce54415e685c054ffc00b6afde0f1f7765e2
|
|
Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
|
|
---
|
|
src/ec/purism/librem/acpi/ec.asl | 4 ++--
|
|
src/mainboard/purism/librem13v1/acpi/ec.asl | 2 ++
|
|
src/mainboard/purism/librem_skl/acpi/ec.asl | 2 ++
|
|
3 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/ec/purism/librem/acpi/ec.asl b/src/ec/purism/librem/acpi/ec.asl
|
|
index e95f126c63..ff325aa9a3 100644
|
|
--- a/src/ec/purism/librem/acpi/ec.asl
|
|
+++ b/src/ec/purism/librem/acpi/ec.asl
|
|
@@ -218,11 +218,11 @@ Device (EC)
|
|
* when the system is charging.
|
|
*/
|
|
If (TURB) {
|
|
- Store (Zero, PPCM)
|
|
+ Store (PPCM_TURBO, PPCM)
|
|
PPCN ()
|
|
Store (One, EDTB)
|
|
} Else {
|
|
- Store (One, PPCM)
|
|
+ Store (PPCM_NOTURBO, PPCM)
|
|
PPCN ()
|
|
Store (Zero, EDTB)
|
|
}
|
|
diff --git a/src/mainboard/purism/librem13v1/acpi/ec.asl b/src/mainboard/purism/librem13v1/acpi/ec.asl
|
|
index cf8b9a91d9..b2fa5b9924 100644
|
|
--- a/src/mainboard/purism/librem13v1/acpi/ec.asl
|
|
+++ b/src/mainboard/purism/librem13v1/acpi/ec.asl
|
|
@@ -14,5 +14,7 @@
|
|
*/
|
|
|
|
#define EC_SCI_GPI 10
|
|
+#define PPCM_TURBO Zero
|
|
+#define PPCM_NOTURBO One
|
|
|
|
#include <ec/purism/librem/acpi/ec.asl>
|
|
diff --git a/src/mainboard/purism/librem_skl/acpi/ec.asl b/src/mainboard/purism/librem_skl/acpi/ec.asl
|
|
index 4215213737..c667b6c41b 100644
|
|
--- a/src/mainboard/purism/librem_skl/acpi/ec.asl
|
|
+++ b/src/mainboard/purism/librem_skl/acpi/ec.asl
|
|
@@ -14,5 +14,7 @@
|
|
*/
|
|
|
|
#define EC_SCI_GPI 0x50
|
|
+#define PPCM_TURBO One
|
|
+#define PPCM_NOTURBO 0x02
|
|
|
|
#include <ec/purism/librem/acpi/ec.asl>
|
|
--
|
|
2.14.3
|
|
|