diff options
| author | Tom Rini <trini@konsulko.com> | 2020-05-31 20:07:39 -0400 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2020-05-31 20:07:39 -0400 |
| commit | 9452b7496f8b85ca3bdda1014495df1a6235a8de (patch) | |
| tree | 211e31287f621183b7cebd3929983ad0c5c367b1 /include/linux | |
| parent | d09b832cd8ccb7e37e2b188394df5a73d7074c3b (diff) | |
| parent | a343b4fe739a56ef248f01d96d80d080228b4068 (diff) | |
| download | u-boot-9452b7496f8b85ca3bdda1014495df1a6235a8de.tar.gz u-boot-9452b7496f8b85ca3bdda1014495df1a6235a8de.tar.xz u-boot-9452b7496f8b85ca3bdda1014495df1a6235a8de.zip | |
Merge tag 'u-boot-rockchip-20200531' of https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip
- Fix mmc of path after syncfrom kernel dts;
- Add dwc3 host support with DM for rk3399;
- Add usb2phy and typec phy for rockchip platform;
- Migrate board list doc to rockchip.rst;
- Add rk3399 Pinebook Pro board support;
- Update dram_init in board_init and add memory node in SPL;
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/phy.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index 158ca9cd85..1e1217a958 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h @@ -10,10 +10,28 @@ #ifndef __LINUX_USB_PHY_H #define __LINUX_USB_PHY_H +#include <dm/ofnode.h> + enum usb_phy_interface { USBPHY_INTERFACE_MODE_UNKNOWN, USBPHY_INTERFACE_MODE_UTMI, USBPHY_INTERFACE_MODE_UTMIW, }; +#if CONFIG_IS_ENABLED(DM_USB) +/** + * usb_get_phy_mode - Get phy mode for given device_node + * @np: Pointer to the given device_node + * + * The function gets phy interface string from property 'phy_type', + * and returns the corresponding enum usb_phy_interface + */ +enum usb_phy_interface usb_get_phy_mode(ofnode node); +#else +static inline enum usb_phy_interface usb_get_phy_mode(ofnode node) +{ + return USBPHY_INTERFACE_MODE_UNKNOWN; +} +#endif + #endif /* __LINUX_USB_PHY_H */ |
