diff options
author | Scott Collyer <scollyer@google.com> | 2020-11-04 09:11:24 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-02 18:52:09 +0000 |
commit | 6917e192ce03e484856ae1d69c7d781c34581241 (patch) | |
tree | 503e4e4bf2eef7e05a6fe2bbc1a4632db3ceb145 | |
parent | 1c19d95208187998bab51c797f45f688f4bfff1d (diff) | |
download | chrome-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>
-rw-r--r-- | baseboard/honeybuns/baseboard.c | 6 | ||||
-rw-r--r-- | baseboard/honeybuns/baseboard.h | 2 |
2 files changed, 7 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); diff --git a/baseboard/honeybuns/baseboard.h b/baseboard/honeybuns/baseboard.h index a2095deeac..85a877d80c 100644 --- a/baseboard/honeybuns/baseboard.h +++ b/baseboard/honeybuns/baseboard.h @@ -134,6 +134,8 @@ enum usb_strings { #define CONFIG_USB_PD_ALT_MODE_UFP_DP #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_REV30 +#undef CONFIG_USB_PD_PULLUP +#define CONFIG_USB_PD_PULLUP TYPEC_RP_3A0 #define CONFIG_USB_PD_TCPM_MUX #define CONFIG_USB_PD_TCPM_PS8805 #define CONFIG_USB_PD_TCPM_STM32GX |