[PATCH v2 7/9] usb: dwc3: Make PHY functions depend on CONFIG_USB_DWC3
Tom Rini
trini at konsulko.com
Thu Sep 10 15:30:21 CEST 2020
On Tue, Sep 01, 2020 at 07:23:00PM +0200, Robert Marko wrote:
> PHY handling functions should depend also on CONFIG_USB_DWC3 aka DM DWC3 version.
> Otherwise when using the non DM version with PHY subsystem enabled there will be a linking error due to missing dwc3_setup_phy and dwc3_shutdown_phy.
>
> Signed-off-by: Robert Marko <robert.marko at sartura.hr>
> Cc: Luka Perkov <luka.perkov at sartura.hr>
> ---
> include/dwc3-uboot.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h
> index e08530ec4e..5eb0822d74 100644
> --- a/include/dwc3-uboot.h
> +++ b/include/dwc3-uboot.h
> @@ -47,7 +47,7 @@ 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)
> +#if CONFIG_IS_ENABLED(PHY) && CONFIG_IS_ENABLED(DM_USB) && CONFIG_IS_ENABLED(CONFIG_USB_DWC3)
> int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys);
> int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys);
> #else
This should be CONFIG_IS_ENABLED(USB_DWC3).
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200910/911bcc57/attachment.sig>
More information about the U-Boot
mailing list