ec/purism: Fix CPU Turbo value (PPCM) set by the EC

The EC needs to set the PPCM value depending on whether
Turbo is enabled or not, and the values differ between
Broadwell (0, 1) and Skylake (1, 2) platforms.

Change-Id: I662dce54415e685c054ffc00b6afde0f1f7765e2
Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
Reviewed-on: https://review.coreboot.org/25329
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
Youness Alaoui 2018-03-13 16:58:52 -04:00 committed by Patrick Georgi
parent 6aa28d93b3
commit be78775a93
3 changed files with 6 additions and 2 deletions

View File

@ -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)
}

View File

@ -14,5 +14,7 @@
*/
#define EC_SCI_GPI 10
#define PPCM_TURBO Zero
#define PPCM_NOTURBO One
#include <ec/purism/librem/acpi/ec.asl>

View File

@ -14,5 +14,7 @@
*/
#define EC_SCI_GPI 0x50
#define PPCM_TURBO One
#define PPCM_NOTURBO 0x02
#include <ec/purism/librem/acpi/ec.asl>