blob: ffc0e0525823f9848d5d6d7f4b2c50c05627766a [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_ARCH_DAVINCI_DMx) += davinci.o
12musb_hdrc-$(CONFIG_ARCH_DAVINCI_DA8XX) += da8xx.o
13musb_hdrc-$(CONFIG_USB_TUSB6010) += tusb6010.o
14musb_hdrc-$(CONFIG_ARCH_OMAP2430) += omap2430.o
15musb_hdrc-$(CONFIG_ARCH_OMAP3430) += omap2430.o
16musb_hdrc-$(CONFIG_ARCH_OMAP4) += omap2430.o
17musb_hdrc-$(CONFIG_BF54x) += blackfin.o
18musb_hdrc-$(CONFIG_BF52x) += blackfin.o
19musb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC) += musb_gadget_ep0.o musb_gadget.o
20musb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD) += musb_virthub.o musb_host.o
21musb_hdrc-$(CONFIG_DEBUG_FS) += musb_debugfs.o
Felipe Balbi7f7f9e22010-03-12 10:29:11 +020022
Felipe Balbi550a7372008-07-24 12:27:36 +030023# the kconfig must guarantee that only one of the
24# possible I/O schemes will be enabled at a time ...
25# PIO only, or DMA (several potential schemes).
26# though PIO is always there to back up DMA, and for ep0
27
28ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
29
30 ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
matt mooney0a2b8a02010-10-06 19:03:26 -070031 musb_hdrc-y += musbhsdma.o
Felipe Balbi550a7372008-07-24 12:27:36 +030032
33 else
34 ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
matt mooney0a2b8a02010-10-06 19:03:26 -070035 musb_hdrc-y += cppi_dma.o
Felipe Balbi550a7372008-07-24 12:27:36 +030036
37 else
38 ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
matt mooney0a2b8a02010-10-06 19:03:26 -070039 musb_hdrc-y += tusb6010_omap.o
Felipe Balbi550a7372008-07-24 12:27:36 +030040
41 endif
42 endif
43 endif
44endif