xref: /linux/drivers/usb/musb/Makefile (revision 0a2b8a0d1101179fdebc974a7c72b514aede9d9d)
1550a7375SFelipe Balbi#
2550a7375SFelipe Balbi# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3550a7375SFelipe Balbi#
4550a7375SFelipe Balbi
5*0a2b8a0dSmatt mooneyccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
6550a7375SFelipe Balbi
7550a7375SFelipe Balbiobj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
8550a7375SFelipe Balbi
9*0a2b8a0dSmatt mooneymusb_hdrc-y := musb_core.o
10550a7375SFelipe Balbi
11*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_ARCH_DAVINCI_DMx)		+= davinci.o
12*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_ARCH_DAVINCI_DA8XX)		+= da8xx.o
13*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_USB_TUSB6010)		+= tusb6010.o
14*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_ARCH_OMAP2430)		+= omap2430.o
15*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_ARCH_OMAP3430)		+= omap2430.o
16*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_ARCH_OMAP4)			+= omap2430.o
17*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_BF54x)			+= blackfin.o
18*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_BF52x)			+= blackfin.o
19*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC)	+= musb_gadget_ep0.o musb_gadget.o
20*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD)		+= musb_virthub.o musb_host.o
21*0a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_DEBUG_FS)			+= musb_debugfs.o
227f7f9e2aSFelipe 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)
31*0a2b8a0dSmatt mooney    musb_hdrc-y			+= musbhsdma.o
32550a7375SFelipe Balbi
33550a7375SFelipe Balbi  else
34550a7375SFelipe Balbi    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
35*0a2b8a0dSmatt mooney      musb_hdrc-y		+= cppi_dma.o
36550a7375SFelipe Balbi
37550a7375SFelipe Balbi    else
38550a7375SFelipe Balbi      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
39*0a2b8a0dSmatt mooney	musb_hdrc-y		+= tusb6010_omap.o
40550a7375SFelipe Balbi
41550a7375SFelipe Balbi      endif
42550a7375SFelipe Balbi    endif
43550a7375SFelipe Balbi  endif
44550a7375SFelipe Balbiendif
45