summaryrefslogtreecommitdiff
path: root/board/blipper
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2021-03-30 14:46:28 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-01 20:53:54 +0000
commit7cdc480017b689209c9716e0858cf8e6a39e971a (patch)
treeaa7b5480738997d0e27ad68e435edd29b7f232c2 /board/blipper
parentf0486d8cde3001dc62038de7bc06a473f3d84b7c (diff)
downloadchrome-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/blipper')
-rw-r--r--board/blipper/usb_pd_policy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/blipper/usb_pd_policy.c b/board/blipper/usb_pd_policy.c
index 3a4fb4f543..b7c0ca21df 100644
--- a/board/blipper/usb_pd_policy.c
+++ b/board/blipper/usb_pd_policy.c
@@ -9,6 +9,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"
@@ -54,6 +55,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);