From 8de7c01e8b1db914f8f14b7b0c61e3652157f2fd Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Sun, 31 Jul 2022 17:35:28 +0100 Subject: 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 Change-Id: Ie01eb59d3f41b242190973fd9c58b1494320c12a Reviewed-on: https://review.coreboot.org/c/coreboot/+/66298 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/ec/starlabs/merlin/variants/cezanne/ecdefs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ec/starlabs/merlin/variants/cezanne') diff --git a/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h b/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h index a75720e34e..6a3bad9286 100644 --- a/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h +++ b/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include +#include + /* * EC communication interface for ITE Embedded Controller */ @@ -19,5 +22,6 @@ #define ECRAM_FN_CTRL_REVERSE 0x22 #define ECRAM_MAX_CHARGE 0x23 #define ECRAM_FAN_MODE 0x24 +#define ECRAM_FAST_CHARGE dead_code_t(uint8_t) #endif -- cgit v1.2.3