diff options
author | Jean-Jacques Hiblot | 2018-12-04 11:30:57 +0100 |
---|---|---|
committer | Marek Vasut | 2018-12-14 17:59:10 +0100 |
commit | 7d98dbcc3dc8f1b93676d0953f3bee0db3796eb0 (patch) | |
tree | 8da9e111b15ac9fe5377df1336537f1234037b1b /common/Makefile | |
parent | 1594c75b3e285cac2ed19f958a0918ee677e4286 (diff) |
usb: musb-new: Add support for DM_USB
Enable DM for USB peripheral in the musb-new driver.
Also make sure that the driver can be used in the SPL.
This implies that:
* the driver must work with and without the OF_CONTROL option. That
in turn, implies that the platform data can be passed in a struct
ti_musb_platdata or be read from the dtb
* usb.o is linked in the SPL if host support is enabled
Another change is that the driver does not fail to bind (and stop the boot
process) if one of the child driver does not bind. Reporting the error is
enough. This kind of error would appear if the port is configured in the
DTS but the driver is not activated in the config.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile index 65d89dc62d5..0de60b3ced2 100644 --- a/common/Makefile +++ b/common/Makefile @@ -74,9 +74,12 @@ obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o + ifdef CONFIG_SPL_USB_HOST_SUPPORT obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o obj-$(CONFIG_USB_STORAGE) += usb_storage.o +else +obj-$(CONFIG_USB_MUSB_HOST) += usb.o endif endif # CONFIG_SPL_BUILD |