X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fdwc3-uboot.h;h=e08530ec4e5894365afefb25599683801b00084c;hb=406df85345f942d9348443983d81a01e013e920b;hp=7af2ad11e4ed30f0453c299be594c6688d111b42;hpb=d77fa2ff766bbb4b867e791187f78b6033071613;p=oweals%2Fu-boot.git diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h index 7af2ad11e4..e08530ec4e 100644 --- a/include/dwc3-uboot.h +++ b/include/dwc3-uboot.h @@ -1,20 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* include/dwc3-uboot.h * * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com * * Designware SuperSpeed USB uboot init - * - * SPDX-License-Identifier: GPL-2.0 */ #ifndef __DWC3_UBOOT_H_ #define __DWC3_UBOOT_H_ +#include #include +#include struct dwc3_device { unsigned long base; enum usb_dr_mode dr_mode; + enum usb_phy_interface hsphy_mode; u32 maximum_speed; unsigned tx_fifo_resize:1; unsigned has_lpm_erratum; @@ -31,6 +33,10 @@ struct dwc3_device { unsigned rx_detect_poll_quirk; unsigned dis_u3_susphy_quirk; unsigned dis_u2_susphy_quirk; + unsigned dis_del_phy_power_chg_quirk; + unsigned dis_tx_ipgap_linecheck_quirk; + unsigned dis_enblslpm_quirk; + unsigned dis_u2_freeclk_exists_quirk; unsigned tx_de_emphasis_quirk; unsigned tx_de_emphasis; int index; @@ -39,4 +45,21 @@ struct dwc3_device { int dwc3_uboot_init(struct dwc3_device *dev); void dwc3_uboot_exit(int index); void dwc3_uboot_handle_interrupt(int index); + +struct phy; +#if CONFIG_IS_ENABLED(PHY) && CONFIG_IS_ENABLED(DM_USB) +int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys); +int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys); +#else +static inline int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys) +{ + return -ENOTSUPP; +} + +static inline int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys) +{ + return -ENOTSUPP; +} +#endif + #endif /* __DWC3_UBOOT_H_ */