diff options
author | Sean Rhodes <sean@starlabs.systems> | 2022-08-23 11:23:12 +0100 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-08-26 17:27:01 +0000 |
commit | f26d7ea2e90f8b505d1aca2c8ef1041a2b2f9d83 (patch) | |
tree | c7b1525cf5e6a9bae5d1a8b06cc51c8ba0b0ea63 /src/ec/starlabs/merlin/variants | |
parent | c6e26fbf852c98730d836a620bad522a7470ce50 (diff) |
ec/starlabs/merlin/cml: Correct the offset for Max Charge
The offset for Max Charge is located at 0x1a, so correct this in the
definitions and EC memory ACPI.
Change-Id: I92cc452d1189e62db78aed787f2de65fd5096564
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66962
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/starlabs/merlin/variants')
-rw-r--r-- | src/ec/starlabs/merlin/variants/cml/ecdefs.h | 2 | ||||
-rw-r--r-- | src/ec/starlabs/merlin/variants/cml/emem.asl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/starlabs/merlin/variants/cml/ecdefs.h b/src/ec/starlabs/merlin/variants/cml/ecdefs.h index 42b4d44d52..78c032997a 100644 --- a/src/ec/starlabs/merlin/variants/cml/ecdefs.h +++ b/src/ec/starlabs/merlin/variants/cml/ecdefs.h @@ -14,7 +14,7 @@ #define ECRAM_KBL_TIMEOUT 0x07 #define ECRAM_FN_CTRL_REVERSE 0x08 #define ECRAM_FAN_MODE 0x09 -#define ECRAM_MAX_CHARGE 0x10 +#define ECRAM_MAX_CHARGE 0x1a #define ECRAM_TRACKPAD_STATE 0x14 #define ECRAM_KBL_STATE 0x18 #define ECRAM_KBL_BRIGHTNESS 0x19 diff --git a/src/ec/starlabs/merlin/variants/cml/emem.asl b/src/ec/starlabs/merlin/variants/cml/emem.asl index b6a3c7b975..995949a099 100644 --- a/src/ec/starlabs/merlin/variants/cml/emem.asl +++ b/src/ec/starlabs/merlin/variants/cml/emem.asl @@ -22,7 +22,7 @@ Field (ECF2, ByteAcc, Lock, Preserve) P1SV, 8, // PD Port 1 Minor Version Offset(0x10), - BFCP, 8, // Battery Full Charge Percentage + PWCT, 8, // Power Control CDEV, 8, // Control Device OSFG, 8, // OS Flag @@ -35,7 +35,7 @@ Field (ECF2, ByteAcc, Lock, Preserve) KLBE, 8, // Keyboard Backlight Brightness Offset(0x1a), - CWFU, 8, // CW2015 Full + BFCP, 8, // Battery Full Charge Percentage Offset(0x1c), WIFI, 8, // WiFi Enable |