summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.charger
diff options
context:
space:
mode:
authorDawid Niedzwiecki <dn@semihalf.com>2022-04-14 08:32:35 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-25 07:47:55 +0000
commit40cbd28031f52f806a2a7c8834f648f616b5ee93 (patch)
tree379c28386dff2e4e587280a6201cdaf7986a24e6 /zephyr/Kconfig.charger
parent197da82322401ec38a181b28fb00ff37e647440b (diff)
downloadchrome-ec-40cbd28031f52f806a2a7c8834f648f616b5ee93.tar.gz
zephyr: add yaml file for charger chips
Add the binding yaml files for all charger chips used in Zephyr. It will be needed for generating the chg_chips array based on DTS, not defining in board-specific code. The yaml files for ISL923x and ISL9241 chips were already present, so just adjust them to the desired usage. BUG=b:228237412 TEST=zmake testall BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I0e0120d28f03c5d1ba5fb1bd9bbb5a1e878af44f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3586424 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
Diffstat (limited to 'zephyr/Kconfig.charger')
-rw-r--r--zephyr/Kconfig.charger14
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/Kconfig.charger b/zephyr/Kconfig.charger
index d0cad26d04..6bb196929e 100644
--- a/zephyr/Kconfig.charger
+++ b/zephyr/Kconfig.charger
@@ -116,6 +116,20 @@ config PLATFORM_EC_CHARGER_ISL9241
control. It supports an input voltage range of 3.9-23.4V and output
of 3.9-18.3V. It provides an I2C interface for configuration.
+if PLATFORM_EC_CHARGER_ISL9241
+
+config PLATFORM_EC_ISL9241_SWITCHING_FREQ
+ int "ISL9241 switching frequency"
+ default -1
+ help
+ Switching frequency for all ISL9241 chips. ISL9241 configures the
+ switching frequency and overrides the default one set by PROG pin.
+ Setting -1 means the no-override option, the default value is not
+ changed. The valid frequency settings are listed in
+ driver/charger/isl9241.h
+
+endif
+
config PLATFORM_EC_CHARGER_BQ25710
bool "Use the BQ25710 charger"
depends on PLATFORM_EC_I2C