xref: /linux/drivers/usb/musb/Makefile (revision dc09886bfa781e2b442301116c18199519e36f0f)
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
167c925546SFelipe Balbi
177c925546SFelipe Balbimusb_hdrc-$(CONFIG_USB_MUSB_DAVINCI)		+= davinci.o
187c925546SFelipe Balbimusb_hdrc-$(CONFIG_USB_MUSB_DA8XX)		+= da8xx.o
197c925546SFelipe Balbimusb_hdrc-$(CONFIG_USB_MUSB_TUSB6010)		+= tusb6010.o
207c925546SFelipe Balbimusb_hdrc-$(CONFIG_USB_MUSB_AM35X)		+= am35x.o
217c925546SFelipe Balbimusb_hdrc-$(CONFIG_USB_MUSB_BLACKFIN)		+= blackfin.o
227c925546SFelipe Balbi
23*dc09886bSFelipe Balbiobj-$(CONFIG_USB_MUSB_OMAP2PLUS)		+= omap2430.o
24*dc09886bSFelipe Balbi
25550a7375SFelipe Balbi# the kconfig must guarantee that only one of the
26550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ...
27550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes).
28550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0
29550a7375SFelipe Balbi
30550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y)
31550a7375SFelipe Balbi
32550a7375SFelipe Balbi  ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
330a2b8a0dSmatt mooney    musb_hdrc-y			+= musbhsdma.o
34550a7375SFelipe Balbi
35550a7375SFelipe Balbi  else
36550a7375SFelipe Balbi    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
370a2b8a0dSmatt mooney      musb_hdrc-y		+= cppi_dma.o
38550a7375SFelipe Balbi
39550a7375SFelipe Balbi    else
40550a7375SFelipe Balbi      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
410a2b8a0dSmatt mooney	musb_hdrc-y		+= tusb6010_omap.o
42550a7375SFelipe Balbi
43550a7375SFelipe Balbi      endif
44550a7375SFelipe Balbi    endif
45550a7375SFelipe Balbi  endif
46550a7375SFelipe Balbiendif
47