summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2023-01-19 14:35:26 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-23 01:16:22 +0000
commit0bcc570cca713d3a5fad8d7adff054b92c8c85bb (patch)
tree15b61d10b086296aa0ca2748434ba6191ec1a2d7
parent9b9b9f6c9e04f3e6817810684fb9b0f7e12d5a20 (diff)
downloadchrome-ec-0bcc570cca713d3a5fad8d7adff054b92c8c85bb.tar.gz
charger: Add config item for the RAA489000 supporting AC_PRESENT
On systems where the GSC input signal AC_PRESENT is generated by the charger, some support may be required within the RAA489000 driver to invert the comparator output. Add a config item to enable this when required. BUG=b:263691951 TEST=Verify that config item appears in generated config. BRANCH=none Change-Id: I5402fff5fba383f1dd4067d2357f581b1488b876 Signed-off-by: Andrew McRae <amcrae@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4179435 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
-rw-r--r--zephyr/Kconfig.charger12
1 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/Kconfig.charger b/zephyr/Kconfig.charger
index 30fdb98cde..30a2426870 100644
--- a/zephyr/Kconfig.charger
+++ b/zephyr/Kconfig.charger
@@ -184,6 +184,18 @@ config PLATFORM_EC_CHARGER_RAA489000
Enables the driver for the Renesas RAA489000 battery charger
with integrated USB-C TCPC.
+config PLATFORM_EC_RAA489000_AC_PRESENT_CONTROL
+ bool "Invert the AC_PRESENT signal when in OTG mode"
+ depends on PLATFORM_EC_CHARGER_RAA489000 && !PLATFORM_EC_EXTPOWER_GPIO
+ help
+ Enables the RAA489000 chip to invert the AC_PRESENT signal
+ when the charger is in OTG (sourcing) mode.
+ This is required when the internal comparator is used to
+ generate the AC_PRESENT signal from the ACOK signal.
+ In OTG mode the ACOK signal is high, but the AC_PRESENT
+ should be set low, so the comparator output must be inverted.
+ The GPIO_AC_PRESENT gpio signal must not be configured.
+
config PLATFORM_EC_CHARGER_RT9490
bool "Use the RT9490 charger"
default y