]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/usb/musb/Makefile
b66e66e8260f2d137af3a80d40e44b24a4fd8980
[linux-2.6-omap-h63xx.git] / drivers / usb / musb / Makefile
1 #
2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
3 #
4
5 musb_hdrc-objs := musb_core.o
6
7 obj-$(CONFIG_USB_MUSB_HDRC)     += musb_hdrc.o
8
9 ifeq ($(CONFIG_ARCH_DAVINCI),y)
10         musb_hdrc-objs  += davinci.o
11 endif
12
13 ifeq ($(CONFIG_USB_TUSB6010),y)
14         musb_hdrc-objs  += tusb6010.o
15 endif
16
17 ifeq ($(CONFIG_ARCH_OMAP2430),y)
18         musb_hdrc-objs  += omap2430.o
19 endif
20
21 ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y)
22         musb_hdrc-objs          += musb_gadget_ep0.o musb_gadget.o
23 endif
24
25 ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y)
26         musb_hdrc-objs          += musb_virthub.o musb_host.o
27 endif
28
29 # the kconfig must guarantee that only one of the
30 # possible I/O schemes will be enabled at a time ...
31 # PIO only, or DMA (several potential schemes).
32 # though PIO is always there to back up DMA, and for ep0
33
34 ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
35
36   ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
37     musb_hdrc-objs              += musbhsdma.o
38
39   else
40     ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
41       musb_hdrc-objs            += cppi_dma.o
42
43     else
44       ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
45         musb_hdrc-objs          += tusb6010_omap.o
46
47       endif
48     endif
49   endif
50 endif
51
52
53 ################################################################################
54
55 # FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_*
56
57 ifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y)
58         EXTRA_CFLAGS += -DMUSB_AHB_ID
59 endif
60
61 # Debugging
62
63 MUSB_DEBUG:=$(CONFIG_USB_MUSB_LOGLEVEL)
64
65 ifeq ("$(strip $(MUSB_DEBUG))","")
66     ifdef CONFIG_USB_DEBUG
67         MUSB_DEBUG:=1
68     else
69         MUSB_DEBUG:=0
70     endif
71 endif
72
73 ifneq ($(MUSB_DEBUG),0)
74     EXTRA_CFLAGS += -DDEBUG
75
76     ifeq ($(CONFIG_PROC_FS),y)
77         musb_hdrc-objs          += musb_procfs.o
78     endif
79
80 endif
81
82 EXTRA_CFLAGS += -DMUSB_DEBUG=$(MUSB_DEBUG)