diff options
Diffstat (limited to 'include/driver/charger')
-rw-r--r-- | include/driver/charger/isl923x_public.h | 70 | ||||
-rw-r--r-- | include/driver/charger/isl9241_public.h | 41 |
2 files changed, 0 insertions, 111 deletions
diff --git a/include/driver/charger/isl923x_public.h b/include/driver/charger/isl923x_public.h deleted file mode 100644 index 2ee5f62cdb..0000000000 --- a/include/driver/charger/isl923x_public.h +++ /dev/null @@ -1,70 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * Renesas (Intersil) ISL-9237/38 battery charger public header - */ - -#ifndef __CROS_EC_DRIVER_CHARGER_ISL923X_PUBLIC_H -#define __CROS_EC_DRIVER_CHARGER_ISL923X_PUBLIC_H - -#include "common.h" -#include "stdbool.h" - -#define ISL923X_ADDR_FLAGS (0x09) - -extern const struct charger_drv isl923x_drv; - -/** - * Initialize AC & DC prochot threshold - * - * @param chgnum: Index into charger chips - * @param AC Prochot threshold current in mA: - * multiple of 128 up to 6400 mA - * DC Prochot threshold current in mA: - * multiple of 128 up to 12800 mA - * Bits below 128mA are truncated (ignored). - * @return enum ec_error_list - */ -int isl923x_set_ac_prochot(int chgnum, uint16_t ma); -int isl923x_set_dc_prochot(int chgnum, uint16_t ma); - -/** - * Set the general comparator output polarity when asserted. - * - * @param chgnum: Index into charger chips - * @param invert: Non-zero to invert polarity, zero to non-invert. - * @return EC_SUCCESS, error otherwise. - */ -int isl923x_set_comparator_inversion(int chgnum, int invert); - -/** - * Return whether ACOK is high or low. - * - * @param chgnum index into chg_chips table. - * @param acok will be set to true if ACOK is asserted, otherwise false. - * @return EC_SUCCESS, error otherwise. - */ -enum ec_error_list raa489000_is_acok(int chgnum, bool *acok); - -/** - * Prepare the charger IC for battery ship mode. Battery ship mode sets the - * lowest power state for the IC. Battery ship mode can only be entered from - * battery only mode. - * - * @param chgnum index into chg_chips table. - */ -void raa489000_hibernate(int chgnum, bool disable_adc); - -/** - * Enable or Disable the ASGATE in the READY state. - * - * @param chgnum: Index into charger chips - * @param enable: whether to enable ASGATE - */ -int raa489000_enable_asgate(int chgnum, bool enable); - -enum ec_error_list isl9238c_hibernate(int chgnum); -enum ec_error_list isl9238c_resume(int chgnum); - -#endif /* __CROS_EC_DRIVER_CHARGER_ISL923X_PUBLIC_H */ diff --git a/include/driver/charger/isl9241_public.h b/include/driver/charger/isl9241_public.h deleted file mode 100644 index 342f627bd3..0000000000 --- a/include/driver/charger/isl9241_public.h +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * Renesas (Intersil) ISL-9241 battery charger public header - */ - -#ifndef __CROS_EC_DRIVER_CHARGER_ISL9241_PUBLIC_H -#define __CROS_EC_DRIVER_CHARGER_ISL9241_PUBLIC_H - -#define ISL9241_ADDR_FLAGS 0x09 - -/* Default minimum VIN voltage controlled by ISL9241_REG_VIN_VOLTAGE */ -#define ISL9241_BC12_MIN_VOLTAGE 4096 - -extern const struct charger_drv isl9241_drv; - -/** - * Set AC prochot threshold - * - * @param chgnum: Index into charger chips - * @param ma: AC prochot threshold current in mA, multiple of 128mA - * @return EC_SUCCESS or error - */ -int isl9241_set_ac_prochot(int chgnum, int ma); - -/** - * Set DC prochot threshold - * - * @param chgnum: Index into charger chips - * @param ma: DC prochot threshold current in mA, multiple of 256mA - * @return EC_SUCCESS or error - */ -int isl9241_set_dc_prochot(int chgnum, int ma); - -#define ISL9241_AC_PROCHOT_CURRENT_MIN 128 /* mA */ -#define ISL9241_AC_PROCHOT_CURRENT_MAX 6400 /* mA */ -#define ISL9241_DC_PROCHOT_CURRENT_MIN 256 /* mA */ -#define ISL9241_DC_PROCHOT_CURRENT_MAX 12800 /* mA */ - -#endif /* __CROS_EC_DRIVER_CHARGER_ISL9241_PUBLIC_H */ |