xref: /openbmc/linux/drivers/usb/musb/Makefile (revision 9c1f8594)
1#
2# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3#
4
5obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
6
7musb_hdrc-y := musb_core.o
8
9musb_hdrc-y					+= musb_gadget_ep0.o musb_gadget.o
10musb_hdrc-y					+= musb_virthub.o musb_host.o
11musb_hdrc-$(CONFIG_DEBUG_FS)			+= musb_debugfs.o
12
13# Hardware Glue Layer
14obj-$(CONFIG_USB_MUSB_OMAP2PLUS)		+= omap2430.o
15obj-$(CONFIG_USB_MUSB_AM35X)			+= am35x.o
16obj-$(CONFIG_USB_MUSB_TUSB6010)			+= tusb6010.o
17obj-$(CONFIG_USB_MUSB_DAVINCI)			+= davinci.o
18obj-$(CONFIG_USB_MUSB_DA8XX)			+= da8xx.o
19obj-$(CONFIG_USB_MUSB_BLACKFIN)			+= blackfin.o
20obj-$(CONFIG_USB_MUSB_UX500)			+= ux500.o
21
22# the kconfig must guarantee that only one of the
23# possible I/O schemes will be enabled at a time ...
24# PIO only, or DMA (several potential schemes).
25# though PIO is always there to back up DMA, and for ep0
26
27ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
28
29  ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
30    musb_hdrc-y			+= musbhsdma.o
31
32  else
33    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
34      musb_hdrc-y		+= cppi_dma.o
35
36    else
37      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
38	musb_hdrc-y		+= tusb6010_omap.o
39
40      else
41        ifeq ($(CONFIG_USB_UX500_DMA),y)
42	  musb_hdrc-y		+= ux500_dma.o
43
44        endif
45      endif
46    endif
47  endif
48endif
49