From 217a7962d0e596da2ab5791c4d8ca7e082b8c7e4 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Fri, 3 Oct 2025 07:38:08 +0800 Subject: [PATCH] ec/google/chromeec: Update EC headers Generated using update_ec_headers.sh from EC repo commit: 8be982a31008 (cbi: Add Unified Firmware and Second-source Config (UFSC)) BUG=b:448300592 TEST=emerge-skywalker coreboot BRANCH=none Change-Id: I212489c2fd732478b12deb3c47521a050bd379f6 Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/89403 Reviewed-by: Caveh Jalali Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/ec/google/chromeec/ec_cmd_api.h | 8 ++++++++ src/ec/google/chromeec/ec_commands.h | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/ec/google/chromeec/ec_cmd_api.h b/src/ec/google/chromeec/ec_cmd_api.h index dd833e4605..89c2d11f4c 100644 --- a/src/ec/google/chromeec/ec_cmd_api.h +++ b/src/ec/google/chromeec/ec_cmd_api.h @@ -121,6 +121,14 @@ static inline int ec_cmd_fp_template(CROS_EC_COMMAND_INFO *h, { return CROS_EC_COMMAND(h, EC_CMD_FP_TEMPLATE, 0, p, size, NULL, 0); } + +static inline int ec_cmd_fp_info_v2(CROS_EC_COMMAND_INFO *h, + struct ec_response_fp_info_v2 *r, + size_t resp_size) +{ + return CROS_EC_COMMAND(h, EC_CMD_FP_INFO, 2, NULL, 0, r, resp_size); +} + /* * Section 2: EC interface functions that can be generated with the help * of template macros. diff --git a/src/ec/google/chromeec/ec_commands.h b/src/ec/google/chromeec/ec_commands.h index fa17a4fb23..073ae597cf 100644 --- a/src/ec/google/chromeec/ec_commands.h +++ b/src/ec/google/chromeec/ec_commands.h @@ -5014,6 +5014,14 @@ enum charge_state_params { /* step value of charger input current limit (READ ONLY) */ CS_PARAM_CHG_INPUT_CURRENT_STEP, + /* Minimum required voltage for hybrid boost chargers (READ ONLY) */ + CS_PARAM_CHG_MIN_REQUIRED_MV, + + /* For hybrid boost chargers returns !=0 when attached charger is + * capable of charging the battery + */ + CS_PARAM_CHG_IS_ADAPTER_SUFFICIENT, + /* How many so far? */ CS_NUM_BASE_PARAMS, @@ -6644,10 +6652,22 @@ enum cbi_data_tag { */ CBI_TAG_PROVISION_MATRIX_VERSION = 28, /* uint32_t bit field */ + /* Unified Firmware and Second-source Config: + * A fixed-size array of 5 uint32_t values. + */ + CBI_TAG_UFSC = 29, + /* Last entry */ CBI_TAG_COUNT, }; +#define CBI_UFSC_DATA_COUNT 5 + +/* Unified Firmware and Second-source Config (UFSC) data structure */ +struct cbi_ufsc { + uint32_t data[CBI_UFSC_DATA_COUNT]; +}; + /* * Flags to control read operation *