diff options
author | Andrew McRae <amcrae@google.com> | 2022-09-21 11:09:06 +1000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-21 02:47:28 +0000 |
commit | 5d05f1d6267615c7701a1a90141c452dceaffa1a (patch) | |
tree | 16937c224ad1a6b8d91feb2a4260de44f0260fc1 | |
parent | e56a71d36b1a6fd07e3ad29139b6e1e21d27c22a (diff) | |
download | chrome-ec-5d05f1d6267615c7701a1a90141c452dceaffa1a.tar.gz |
nissa: Invert the USB-A limit select
The output ilimit select should be inverted so that
the EC output is 1 when current limiting is enabled (SDP), and 0
when current limiting is disabled (CDP).
The default mode is CDP (charging downstream port), and
internally the EC assumes that setting an ilimit of 1 will enable
the higher current, so this value needs to be inverted before
setting the GPIO output.
BUG=b:246504619
TEST=zmake build nivviks; gpioget usb_a0_ilimit_sdp
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ieb56ded563f61f0c41d280e7cf65bbc534e6fd50
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3904720
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
-rw-r--r-- | zephyr/projects/nissa/prj.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/prj.conf b/zephyr/projects/nissa/prj.conf index 2232bd3fca..7a46a14076 100644 --- a/zephyr/projects/nissa/prj.conf +++ b/zephyr/projects/nissa/prj.conf @@ -133,6 +133,7 @@ CONFIG_PLATFORM_EC_USB_PORT_ENABLE_DYNAMIC=y CONFIG_PLATFORM_EC_USB_PORT_POWER_SMART=y CONFIG_PLATFORM_EC_USB_PORT_POWER_SMART_CDP_SDP_ONLY=y CONFIG_PLATFORM_EC_USB_PORT_POWER_SMART_DEFAULT_CDP=y +CONFIG_PLATFORM_EC_USB_PORT_POWER_SMART_INVERTED=y # Battery support CONFIG_PLATFORM_EC_BATTERY=y |