chromeec: Add command to override charger limit
This patch adds EC_CMD_OVERRIDE_DEDICATED_CHARGER_LIMIT, which overrides the max input current and voltage when a barrel jack adapter supplies power. BUG=b:64442692 BRANCH=none TEST=Boot Fizz. Use chgsup console command to verify the max current and voltage are set as expected. Change-Id: I8c6fc54e519ce13e3db82ee2cecaa96c6eb42d8a Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://review.coreboot.org/22624 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Aaron Durbin
parent
40d0bfa212
commit
93fd8fa40f
@ -3533,6 +3533,16 @@ struct __ec_align2 ec_params_external_power_limit_v1 {
|
||||
|
||||
#define EC_POWER_LIMIT_NONE 0xffff
|
||||
|
||||
/*
|
||||
* Set maximum voltage & current of a dedicated charge port
|
||||
*/
|
||||
#define EC_CMD_OVERRIDE_DEDICATED_CHARGER_LIMIT 0x00A3
|
||||
|
||||
struct __ec_align2 ec_params_dedicated_charger_limit {
|
||||
uint16_t current_lim; /* in mA */
|
||||
uint16_t voltage_lim; /* in mV */
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Hibernate/Deep Sleep Commands */
|
||||
|
||||
|
Reference in New Issue
Block a user