summaryrefslogtreecommitdiff
path: root/include/driver/charger/isl923x_public.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/driver/charger/isl923x_public.h')
-rw-r--r--include/driver/charger/isl923x_public.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/driver/charger/isl923x_public.h b/include/driver/charger/isl923x_public.h
index d8cc9cf662..2ee5f62cdb 100644
--- a/include/driver/charger/isl923x_public.h
+++ b/include/driver/charger/isl923x_public.h
@@ -8,6 +8,7 @@
#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)
@@ -38,6 +39,15 @@ int isl923x_set_dc_prochot(int chgnum, uint16_t ma);
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.