Full support for Ginger Console
[linux-ginger.git] / drivers / usb / musb / Makefile
blob01de383901ae017f2af4863da40a4817458f828f
2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
5 musb_hdrc-objs := musb_core.o
7 obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
9 ifeq ($(CONFIG_ARCH_DAVINCI),y)
10 musb_hdrc-objs += davinci.o
11 endif
13 ifeq ($(CONFIG_USB_TUSB6010),y)
14 musb_hdrc-objs += tusb6010.o
15 endif
17 ifeq ($(CONFIG_ARCH_OMAP2430),y)
18 musb_hdrc-objs += omap2430.o
19 endif
21 ifeq ($(CONFIG_ARCH_OMAP3430),y)
22 ifeq ($(CONFIG_MACH_OMAP3517EVM),y)
23 musb_hdrc-objs += am3517.o
24 else
25 musb_hdrc-objs += omap2430.o
26 endif
27 endif
29 ifeq ($(CONFIG_BF54x),y)
30 musb_hdrc-objs += blackfin.o
31 endif
33 ifeq ($(CONFIG_BF52x),y)
34 musb_hdrc-objs += blackfin.o
35 endif
37 ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y)
38 musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o
39 endif
41 ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y)
42 musb_hdrc-objs += musb_virthub.o musb_host.o
43 endif
45 # the kconfig must guarantee that only one of the
46 # possible I/O schemes will be enabled at a time ...
47 # PIO only, or DMA (several potential schemes).
48 # though PIO is always there to back up DMA, and for ep0
50 ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
52 ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
53 musb_hdrc-objs += musbhsdma.o
55 else
56 ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
57 musb_hdrc-objs += cppi_dma.o
59 else
60 ifeq ($(CONFIG_USB_TI_CPPI41_DMA),y)
61 musb_hdrc-objs += cppi41_dma.o cppi41.o
63 ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
64 musb_hdrc-objs += tusb6010_omap.o
66 endif
67 endif
68 endif
69 endif
70 endif
73 ################################################################################
75 # FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_*
77 ifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y)
78 EXTRA_CFLAGS += -DMUSB_AHB_ID
79 endif
81 # Debugging
83 ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
84 EXTRA_CFLAGS += -DDEBUG
85 ifeq ($(CONFIG_PROC_FS),y)
86 musb_hdrc-objs += musb_procfs.o
87 endif
88 endif