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 *