diff options
author | Diana Z <dzigterman@chromium.org> | 2020-09-03 14:14:55 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-09 19:14:56 +0000 |
commit | 47411c780a03c06ca2f236d96eadd2418f0a8baf (patch) | |
tree | 353d186ec6274dfeaadb6efd5b20323b39621202 /baseboard/dedede | |
parent | f22c156554302e0da2358e04381ad4a9d0413558 (diff) | |
download | chrome-ec-47411c780a03c06ca2f236d96eadd2418f0a8baf.tar.gz |
Dedede: Disable pull-ups on C0 and C1 interrupts before z-state
Disabling pull-ups on the C0 and C1 interrupt lines before z-state
prevents EN_PP3300_G_L from being pulled down.
BRANCH=None
BUG=b:153684907
TEST=on waddledee, verify EN_PP3300_G_L is no longer pulled down as
z-state is entered
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ia5614bf32fe1a77255d990bc610fe2f09cf502c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391214
Tested-by: Divagar Mohandass <divagar.mohandass@intel.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'baseboard/dedede')
-rw-r--r-- | baseboard/dedede/baseboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/baseboard/dedede/baseboard.c b/baseboard/dedede/baseboard.c index 32b10f07aa..87eba1771b 100644 --- a/baseboard/dedede/baseboard.c +++ b/baseboard/dedede/baseboard.c @@ -229,6 +229,10 @@ DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, baseboard_chipset_shutdown, void board_hibernate_late(void) { + /* Disable any pull-ups on C0 and C1 interrupt lines */ + gpio_set_flags(GPIO_USB_C0_INT_ODL, GPIO_INPUT); + gpio_set_flags(GPIO_USB_C1_INT_ODL, GPIO_INPUT); + /* * Turn on the Z state. This will not return as it will cut power to * the EC. |