summaryrefslogtreecommitdiffstats
path: root/src/ec/starlabs/merlin/ec.h
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-07-31 17:35:28 +0100
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-06 18:17:01 +0000
commit8de7c01e8b1db914f8f14b7b0c61e3652157f2fd (patch)
tree73712ea448e75a47470342c51ea6295a187265cd /src/ec/starlabs/merlin/ec.h
parent47ee85f4d5b6818d1216511d0d7160b6b9431cc5 (diff)
downloadcoreboot-8de7c01e8b1db914f8f14b7b0c61e3652157f2fd.tar.gz
coreboot-8de7c01e8b1db914f8f14b7b0c61e3652157f2fd.tar.bz2
coreboot-8de7c01e8b1db914f8f14b7b0c61e3652157f2fd.zip
ec/starlabs/merlin: Add support for enabling fast charge
The Lite Mk IV's can enable fast charging, with support up to 100W via USB-C PD 3.0. The default for this is disabled, as it can reduce battery life span. This patch adds the option to enable fast charging, by writing 0x01 to 0x18 in the EC space. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: Ie01eb59d3f41b242190973fd9c58b1494320c12a Reviewed-on: https://review.coreboot.org/c/coreboot/+/66298 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/starlabs/merlin/ec.h')
-rw-r--r--src/ec/starlabs/merlin/ec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ec/starlabs/merlin/ec.h b/src/ec/starlabs/merlin/ec.h
index 6a6cda5ee13f..ca1d081f0c5c 100644
--- a/src/ec/starlabs/merlin/ec.h
+++ b/src/ec/starlabs/merlin/ec.h
@@ -71,6 +71,10 @@
#define CHARGE_80 0xbb
#define CHARGE_60 0xaa
+/* Fast Charge Setting */
+#define CHARGE_RATE_NORMAL 0x00
+#define CHARGE_RATE_FAST 0x01
+
/* Fan Mode Setting */
#define FAN_NORMAL 0x00
#define FAN_AGGRESSIVE 0xbb