xref: /linux/drivers/usb/musb/Makefile (revision 9cb0308eec7a965136fe9fc6d1be3548c01a4a1e)
1550a7375SFelipe Balbi#
2550a7375SFelipe Balbi# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3550a7375SFelipe Balbi#
4550a7375SFelipe Balbi
50a2b8a0dSmatt mooneyccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
6550a7375SFelipe Balbi
7550a7375SFelipe Balbiobj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
8550a7375SFelipe Balbi
90a2b8a0dSmatt mooneymusb_hdrc-y := musb_core.o
10550a7375SFelipe Balbi
110a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC)	+= musb_gadget_ep0.o musb_gadget.o
120a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD)		+= musb_virthub.o musb_host.o
130a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_DEBUG_FS)			+= musb_debugfs.o
147f7f9e2aSFelipe Balbi
157c925546SFelipe Balbi# Hardware Glue Layer
16dc09886bSFelipe Balbiobj-$(CONFIG_USB_MUSB_OMAP2PLUS)		+= omap2430.o
17ce40c576SFelipe Balbiobj-$(CONFIG_USB_MUSB_AM35X)			+= am35x.o
1818688fbeSFelipe Balbiobj-$(CONFIG_USB_MUSB_TUSB6010)			+= tusb6010.o
1973b089b0SFelipe Balbiobj-$(CONFIG_USB_MUSB_DAVINCI)			+= davinci.o
208ceae51eSFelipe Balbiobj-$(CONFIG_USB_MUSB_DA8XX)			+= da8xx.o
21*9cb0308eSFelipe Balbiobj-$(CONFIG_USB_MUSB_BLACKFIN)			+= blackfin.o
22dc09886bSFelipe Balbi
23550a7375SFelipe Balbi# the kconfig must guarantee that only one of the
24550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ...
25550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes).
26550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0
27550a7375SFelipe Balbi
28550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y)
29550a7375SFelipe Balbi
30550a7375SFelipe Balbi  ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
310a2b8a0dSmatt mooney    musb_hdrc-y			+= musbhsdma.o
32550a7375SFelipe Balbi
33550a7375SFelipe Balbi  else
34550a7375SFelipe Balbi    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
350a2b8a0dSmatt mooney      musb_hdrc-y		+= cppi_dma.o
36550a7375SFelipe Balbi
37550a7375SFelipe Balbi    else
38550a7375SFelipe Balbi      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
390a2b8a0dSmatt mooney	musb_hdrc-y		+= tusb6010_omap.o
40550a7375SFelipe Balbi
41550a7375SFelipe Balbi      endif
42550a7375SFelipe Balbi    endif
43550a7375SFelipe Balbi  endif
44550a7375SFelipe Balbiendif
45