diff options
author | Aseda Aboagye <aaboagye@google.com> | 2021-03-30 14:46:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-01 20:53:54 +0000 |
commit | 7cdc480017b689209c9716e0858cf8e6a39e971a (patch) | |
tree | aa7b5480738997d0e27ad68e435edd29b7f232c2 /board/sasukette | |
parent | f0486d8cde3001dc62038de7bc06a473f3d84b7c (diff) | |
download | chrome-ec-7cdc480017b689209c9716e0858cf8e6a39e971a.tar.gz |
dedede/raa489000: Enable ASGATE when sourcing
With the previous change to disable the ASGATE from the charger side,
this actually ended up breaking sourcing VBUS.
This commit enables the ASGATE when we are attempting to source VBUS.
BUG=b:183220414
BRANCH=dedede
TEST=Build and flash madoo, plug in a Type-C sink, verify that VBUS is
sourced.
TEST=Verify that DUT can PR_Swap with peripheral.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I1938f2b827e57a04ef72e2ad35ad6ff29ce18712
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2795073
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/sasukette')
-rw-r--r-- | board/sasukette/usb_pd_policy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/sasukette/usb_pd_policy.c b/board/sasukette/usb_pd_policy.c index fdeabc27cb..b0e1098e4d 100644 --- a/board/sasukette/usb_pd_policy.c +++ b/board/sasukette/usb_pd_policy.c @@ -7,6 +7,7 @@ #include "chipset.h" #include "common.h" #include "console.h" +#include "driver/charger/isl923x_public.h" #include "driver/tcpm/tcpci.h" #include "usb_pd.h" @@ -49,6 +50,10 @@ int pd_set_power_supply_ready(int port) if (rv) return rv; + rv = raa489000_enable_asgate(port, true); + if (rv) + return rv; + /* Notify host of power info change. */ pd_send_host_event(PD_EVENT_POWER_CHANGE); |