From: Jean-Jacques Hiblot Date: Tue, 4 Dec 2018 10:30:47 +0000 (+0100) Subject: spl: drivers: Link usb common library to SPL if USB gadget is enabled X-Git-Tag: v2019.01-rc2~5^2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9a1dde58f5ed4a929971b37b7436040947ec732a;p=oweals%2Fu-boot.git spl: drivers: Link usb common library to SPL if USB gadget is enabled Some drivers might need to access common USB functions such as usb_get_maximum_speed() or usb_get_dr_mode(). Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- diff --git a/drivers/Makefile b/drivers/Makefile index 752caeae4e..5e3b122769 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -47,6 +47,7 @@ obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/ obj-$(CONFIG_SPL_USB_ETHER) += net/phy/ obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/ obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/ +obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/common/ obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/ obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/ obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/