]> git.karo-electronics.de Git - mv-sheeva.git/blob - drivers/usb/musb/Makefile
Merge branch 'for-paul-38-rebased' of git://gitorious.org/linux-omap-dss2/linux
[mv-sheeva.git] / drivers / usb / musb / Makefile
1 #
2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
3 #
4
5 ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
6
7 obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
8
9 musb_hdrc-y := musb_core.o
10
11 musb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC)        += musb_gadget_ep0.o musb_gadget.o
12 musb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD)           += musb_virthub.o musb_host.o
13 musb_hdrc-$(CONFIG_DEBUG_FS)                    += musb_debugfs.o
14
15 # Hardware Glue Layer
16 obj-$(CONFIG_USB_MUSB_OMAP2PLUS)                += omap2430.o
17 obj-$(CONFIG_USB_MUSB_AM35X)                    += am35x.o
18 obj-$(CONFIG_USB_MUSB_TUSB6010)                 += tusb6010.o
19 obj-$(CONFIG_USB_MUSB_DAVINCI)                  += davinci.o
20 obj-$(CONFIG_USB_MUSB_DA8XX)                    += da8xx.o
21 obj-$(CONFIG_USB_MUSB_BLACKFIN)                 += blackfin.o
22 obj-$(CONFIG_USB_MUSB_UX500)                    += ux500.o
23
24 # 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
29 ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
30
31   ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
32     musb_hdrc-y                 += musbhsdma.o
33
34   else
35     ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
36       musb_hdrc-y               += cppi_dma.o
37
38     else
39       ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
40         musb_hdrc-y             += tusb6010_omap.o
41
42       endif
43     endif
44   endif
45 endif