diff options
Diffstat (limited to 'driver/charger/isl923x.h')
-rw-r--r-- | driver/charger/isl923x.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/driver/charger/isl923x.h b/driver/charger/isl923x.h index 6f76106157..89595a60fa 100644 --- a/driver/charger/isl923x.h +++ b/driver/charger/isl923x.h @@ -61,14 +61,6 @@ #define ISL9238_SYS_VOLTAGE_REG_MAX 18304 #define ISL923X_SYS_VOLTAGE_REG_MIN 2048 -/* PROCHOT# adapter prochot current setting in mA */ -#define ISL923X_PROCHOT_CURRENT_128 BIT(7) -#define ISL923X_PROCHOT_CURRENT_256 BIT(8) -#define ISL923X_PROCHOT_CURRENT_512 BIT(9) -#define ISL923X_PROCHOT_CURRENT_1024 BIT(10) -#define ISL923X_PROCHOT_CURRENT_2048 BIT(11) -#define ISL923X_PROCHOT_CURRENT_4096 BIT(12) - /* PROCHOT# debounce time and duration time in micro seconds */ #define ISL923X_PROCHOT_DURATION_10000 (0 << 6) #define ISL923X_PROCHOT_DURATION_20000 BIT(6) @@ -308,9 +300,12 @@ enum isl9237_fsm_state { #endif /* __CROS_EC_ISL923X_H */ /** - * Initialize ac prochot to reach better performance + * Initialize AC prochot threshold * - * @param ac_prochot: ISL923X_PROCHOT_CURRENT_* + * @param Porchot threshold current in mA: multiple of 128 up to 6400 mA + * Bits below 128mA are truncated (ignored). * @return enum ec_error_list */ -int isl923x_set_ac_prochot(uint16_t ac_prochot); +int isl923x_set_ac_prochot(uint16_t ma); + +#define ISL923X_AC_PROCHOT_CURRENT_MAX 6400 /* mA */ |