diff options
author | Mary Ruthven <mruthven@chromium.org> | 2016-04-12 11:46:16 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-13 20:10:38 -0700 |
commit | d281308b4897ebd8cee38542bf690e4dee53e650 (patch) | |
tree | d86c9db1da9881d4082e40611a15b8386e60837c /include/usb_api.h | |
parent | 0374c599afdc9c13c22b4842266eade8d1afaf83 (diff) | |
download | chrome-ec-d281308b4897ebd8cee38542bf690e4dee53e650.tar.gz |
cr50: Detect debug cable and switch the PHY
This adds support for RD Detection on cr50. It can be used to detect a
debug device and signal the controller to switch from the AP PHY to the
to CCD PHY. When RDCC1 and 2 no longer detect the debug device, then
the controller switches back to using the USB to AP PHY.
BUG=chrome-os-partner:50700
BRANCH=none
TEST=change the value on RDCC1 and RDCC1 and check that the usb
controller connects to the right PHY.
Change-Id: Ice01a45a31fe1932945f89df2e3b851f4d287a17
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/338454
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/usb_api.h')
-rw-r--r-- | include/usb_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_api.h b/include/usb_api.h index c73360fce0..c2e365cf28 100644 --- a/include/usb_api.h +++ b/include/usb_api.h @@ -42,4 +42,11 @@ void usb_disconnect(void); */ void usb_release(void); +#ifdef CONFIG_USB_SELECT_PHY +/* Select which PHY to use. */ +void usb_select_phy(uint32_t phy); + +/* Get the current PHY */ +uint32_t usb_get_phy(void); +#endif #endif /* __CROS_EC_USB_API_H */ |