xref: /linux/drivers/usb/musb/Makefile (revision 622859634a663c5e55d0e2a2cdbb55ac058d97b3)
1550a7375SFelipe Balbi#
2550a7375SFelipe Balbi# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3550a7375SFelipe Balbi#
4550a7375SFelipe Balbi
5550a7375SFelipe Balbiobj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
6550a7375SFelipe Balbi
70a2b8a0dSmatt mooneymusb_hdrc-y := musb_core.o
8550a7375SFelipe Balbi
9*62285963SFelipe Balbimusb_hdrc-y					+= musb_gadget_ep0.o musb_gadget.o
10*62285963SFelipe Balbimusb_hdrc-y					+= musb_virthub.o musb_host.o
110a2b8a0dSmatt mooneymusb_hdrc-$(CONFIG_DEBUG_FS)			+= musb_debugfs.o
127f7f9e2aSFelipe Balbi
137c925546SFelipe Balbi# Hardware Glue Layer
14dc09886bSFelipe Balbiobj-$(CONFIG_USB_MUSB_OMAP2PLUS)		+= omap2430.o
15ce40c576SFelipe Balbiobj-$(CONFIG_USB_MUSB_AM35X)			+= am35x.o
1618688fbeSFelipe Balbiobj-$(CONFIG_USB_MUSB_TUSB6010)			+= tusb6010.o
1773b089b0SFelipe Balbiobj-$(CONFIG_USB_MUSB_DAVINCI)			+= davinci.o
188ceae51eSFelipe Balbiobj-$(CONFIG_USB_MUSB_DA8XX)			+= da8xx.o
199cb0308eSFelipe Balbiobj-$(CONFIG_USB_MUSB_BLACKFIN)			+= blackfin.o
204bc36fd3SMian Yousaf Kaukabobj-$(CONFIG_USB_MUSB_UX500)			+= ux500.o
21dc09886bSFelipe Balbi
22550a7375SFelipe Balbi# the kconfig must guarantee that only one of the
23550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ...
24550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes).
25550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0
26550a7375SFelipe Balbi
27550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y)
28550a7375SFelipe Balbi
29550a7375SFelipe Balbi  ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
300a2b8a0dSmatt mooney    musb_hdrc-y			+= musbhsdma.o
31550a7375SFelipe Balbi
32550a7375SFelipe Balbi  else
33550a7375SFelipe Balbi    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
340a2b8a0dSmatt mooney      musb_hdrc-y		+= cppi_dma.o
35550a7375SFelipe Balbi
36550a7375SFelipe Balbi    else
37550a7375SFelipe Balbi      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
380a2b8a0dSmatt mooney	musb_hdrc-y		+= tusb6010_omap.o
39550a7375SFelipe Balbi
40d2389440SMian Yousaf Kaukab      else
41d2389440SMian Yousaf Kaukab        ifeq ($(CONFIG_USB_UX500_DMA),y)
42d2389440SMian Yousaf Kaukab	  musb_hdrc-y		+= ux500_dma.o
43d2389440SMian Yousaf Kaukab
44d2389440SMian Yousaf Kaukab        endif
45550a7375SFelipe Balbi      endif
46550a7375SFelipe Balbi    endif
47550a7375SFelipe Balbi  endif
48550a7375SFelipe Balbiendif
49