summaryrefslogtreecommitdiff
path: root/include/driver/charger/isl9241_public.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-07 14:37:33 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-09 05:11:07 +0000
commit6a5f6eb994f99fce764c5dedd834222eb82a28d1 (patch)
treed447f72c75a4209c3777e99a87f177d966980aa9 /include/driver/charger/isl9241_public.h
parent195d2d925def5f98e088b8b5ee2b1d61e3dc7040 (diff)
downloadchrome-ec-6a5f6eb994f99fce764c5dedd834222eb82a28d1.tar.gz
volteer: Separate out some baseboard USB-C config code
These three functions are needed by the charger task and are currently not compiled on Zephyr. Move them out into their own file so that they can be. Update the isl9241 interface slightly to add a needed define. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr Change-Id: Ia28c406c865003d8aec1c31add590bfdef57601d Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2617038 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include/driver/charger/isl9241_public.h')
-rw-r--r--include/driver/charger/isl9241_public.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/driver/charger/isl9241_public.h b/include/driver/charger/isl9241_public.h
index 14eb0db5ec..342f627bd3 100644
--- a/include/driver/charger/isl9241_public.h
+++ b/include/driver/charger/isl9241_public.h
@@ -10,6 +10,9 @@
#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;
/**