summaryrefslogtreecommitdiff
path: root/baseboard/honeybuns/baseboard.c
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2020-11-04 09:11:24 -0800
committerCommit Bot <commit-bot@chromium.org>2021-04-02 18:52:09 +0000
commit6917e192ce03e484856ae1d69c7d781c34581241 (patch)
tree503e4e4bf2eef7e05a6fe2bbc1a4632db3ceb145 /baseboard/honeybuns/baseboard.c
parent1c19d95208187998bab51c797f45f688f4bfff1d (diff)
downloadchrome-ec-6917e192ce03e484856ae1d69c7d781c34581241.tar.gz
honeybuns: usbc default Rp and baseboard hook init timing
This CL changes the hook init timing for baseboard_init which needs to be run prior to any usbc/usb-pd initialization. In addition the config option CONFIG_USB_PD_PULLUP is changed from RP_1A5 to RP_3A0 to match what is advertised in the SRC CAP message. BUG=None BRANCH=None TEST=Verfied TD.4.9.2 USB Type C Current Advertisement Test passes Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I226e983733850f1b21c25175826e762295609069 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2519800 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'baseboard/honeybuns/baseboard.c')
-rw-r--r--baseboard/honeybuns/baseboard.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/baseboard/honeybuns/baseboard.c b/baseboard/honeybuns/baseboard.c
index 3edbc2bf3e..cd21c22492 100644
--- a/baseboard/honeybuns/baseboard.c
+++ b/baseboard/honeybuns/baseboard.c
@@ -55,4 +55,8 @@ static void baseboard_init(void)
CPRINTS("usbc: Failed to set up sink path");
#endif
}
-DECLARE_HOOK(HOOK_INIT, baseboard_init, HOOK_PRIO_DEFAULT);
+/*
+ * Power sequencing must run before any other chip init is attempted, so run
+ * power sequencing as soon as I2C bus is initialized.
+ */
+DECLARE_HOOK(HOOK_INIT, baseboard_init, HOOK_PRIO_INIT_I2C + 1);