summaryrefslogtreecommitdiff
path: root/board/quiche/board.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-03-24 13:09:09 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-17 22:05:23 +0000
commitfba31a3ae244b6dfd18e4b59508aa45387161d81 (patch)
tree907e84f3517aa617a5eadfdbc9871268aad112f4 /board/quiche/board.h
parentc01b28e5da86b783917523beaa97b1b81d38019c (diff)
downloadchrome-ec-fba31a3ae244b6dfd18e4b59508aa45387161d81.tar.gz
honeybuns: Add C2 initialization with power button on/off
This CL refactors code required for the user facing usbc port. This port was only being initialized at init time and therefore would not function properly following a power button off/on. To avoid duplicating code, the functions used to initialize this port and control VBUS were moved to usbc_support in baseboard so they can be common and are now guarded by a GPIO macro so this can be board specific for variants which don't have a PPC to control on this port. BUG=b:164157329 BRANCH=quiche TEST=Verifed that port C2 attaches as expected following power button off/on sequence. Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I2f9500f7e58de674c6f7c12a95cebad45de166cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785198 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/quiche/board.h')
-rw-r--r--board/quiche/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/quiche/board.h b/board/quiche/board.h
index ad9d57d271..70ed82474c 100644
--- a/board/quiche/board.h
+++ b/board/quiche/board.h
@@ -48,6 +48,7 @@
#include "registers.h"
#define GPIO_DP_HPD GPIO_DDI_MST_IN_HPD
+#define GPIO_USBC_UF_ATTACHED_SRC GPIO_USBC_UF_MUX_VBUS_EN
#define GPIO_TRIGGER_1 GPIO_TP41
#define GPIO_TRIGGER_2 GPIO_TP73