blob: 74df5284894fe8d46ff0e67afd29e76b46e8f0c1 [file] [log] [blame]
Felipe Balbi550a7372008-07-24 12:27:36 +03001#
2# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3#
4
matt mooney0a2b8a02010-10-06 19:03:26 -07005ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
Felipe Balbi550a7372008-07-24 12:27:36 +03006
matt mooney0a2b8a02010-10-06 19:03:26 -07007obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
Felipe Balbi550a7372008-07-24 12:27:36 +03008
matt mooney0a2b8a02010-10-06 19:03:26 -07009musb_hdrc-y := musb_core.o
Felipe Balbi550a7372008-07-24 12:27:36 +030010
matt mooney0a2b8a02010-10-06 19:03:26 -070011musb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC) += musb_gadget_ep0.o musb_gadget.o
12musb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD) += musb_virthub.o musb_host.o
13musb_hdrc-$(CONFIG_DEBUG_FS) += musb_debugfs.o
Felipe Balbi7f7f9e22010-03-12 10:29:11 +020014
Felipe Balbi7c925542010-12-01 14:23:48 +020015# Hardware Glue Layer
Felipe Balbidc098862010-12-01 15:01:11 +020016obj-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o
Felipe Balbice40c572010-12-02 09:06:51 +020017obj-$(CONFIG_USB_MUSB_AM35X) += am35x.o
Felipe Balbi18688fb2010-12-02 09:13:54 +020018obj-$(CONFIG_USB_MUSB_TUSB6010) += tusb6010.o
Felipe Balbi73b089b2010-12-02 09:16:55 +020019obj-$(CONFIG_USB_MUSB_DAVINCI) += davinci.o
Felipe Balbi8ceae512010-12-02 09:19:35 +020020obj-$(CONFIG_USB_MUSB_DA8XX) += da8xx.o
Felipe Balbi9cb03082010-12-02 09:21:05 +020021obj-$(CONFIG_USB_MUSB_BLACKFIN) += blackfin.o
Mian Yousaf Kaukab4bc36fd2010-12-09 13:05:01 +010022obj-$(CONFIG_USB_MUSB_UX500) += ux500.o
Felipe Balbidc098862010-12-01 15:01:11 +020023
Felipe Balbi550a7372008-07-24 12:27:36 +030024# the kconfig must guarantee that only one of the
25# possible I/O schemes will be enabled at a time ...
26# PIO only, or DMA (several potential schemes).
27# though PIO is always there to back up DMA, and for ep0
28
29ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
30
31 ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
matt mooney0a2b8a02010-10-06 19:03:26 -070032 musb_hdrc-y += musbhsdma.o
Felipe Balbi550a7372008-07-24 12:27:36 +030033
34 else
35 ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
matt mooney0a2b8a02010-10-06 19:03:26 -070036 musb_hdrc-y += cppi_dma.o
Felipe Balbi550a7372008-07-24 12:27:36 +030037
38 else
39 ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
matt mooney0a2b8a02010-10-06 19:03:26 -070040 musb_hdrc-y += tusb6010_omap.o
Felipe Balbi550a7372008-07-24 12:27:36 +030041
42 endif
43 endif
44 endif
45endif