X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fdwc3-uboot.h;h=9941cc37a3ccf412f19fe9ec59be51208b239711;hb=476e991452433b72f280147c93435ccd9423639f;hp=09ff8a74d669aae53e007c15f988af8922feb7d2;hpb=20913018fbce5a2e3c93b6eeb56e67460e29542c;p=oweals%2Fu-boot.git diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h index 09ff8a74d6..9941cc37a3 100644 --- a/include/dwc3-uboot.h +++ b/include/dwc3-uboot.h @@ -1,10 +1,9 @@ +/* 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_ @@ -13,7 +12,7 @@ #include struct dwc3_device { - int base; + unsigned long base; enum usb_dr_mode dr_mode; u32 maximum_speed; unsigned tx_fifo_resize:1; @@ -39,4 +38,23 @@ 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 **array, int *num_phys); +int dwc3_shutdown_phy(struct udevice *dev, struct phy *usb_phys, int num_phys); +#else +static inline int dwc3_setup_phy(struct udevice *dev, struct phy **array, + int *num_phys) +{ + return -ENOTSUPP; +} + +static inline int dwc3_shutdown_phy(struct udevice *dev, struct phy *usb_phys, + int num_phys) +{ + return -ENOTSUPP; +} +#endif + #endif /* __DWC3_UBOOT_H_ */