diff options
author | Felipe Balbi <felipe.balbi@nokia.com> | 2008-07-24 05:27:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-13 20:33:00 -0400 |
commit | 550a7375fe720924241f0eb76e4a5c1a3eb8c32f (patch) | |
tree | bf973b43f6248e085557dcc268ad04d6e438d030 /drivers/usb/musb/Makefile | |
parent | f331e40ee8e4861e1d82310b1af7cf75de7370ac (diff) |
USB: Add MUSB and TUSB support
This patch adds support for MUSB and TUSB controllers
integrated into omap2430 and davinci. It also adds support
for external tusb6010 controller.
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/Makefile')
-rw-r--r-- | drivers/usb/musb/Makefile | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/drivers/usb/musb/Makefile b/drivers/usb/musb/Makefile new file mode 100644 index 000000000000..88eb67de08ae --- /dev/null +++ b/drivers/usb/musb/Makefile | |||
@@ -0,0 +1,86 @@ | |||
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_ARCH_OMAP3430),y) | ||
22 | musb_hdrc-objs += omap2430.o | ||
23 | endif | ||
24 | |||
25 | ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y) | ||
26 | musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o | ||
27 | endif | ||
28 | |||
29 | ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y) | ||
30 | musb_hdrc-objs += musb_virthub.o musb_host.o | ||
31 | endif | ||
32 | |||
33 | # the kconfig must guarantee that only one of the | ||
34 | # possible I/O schemes will be enabled at a time ... | ||
35 | # PIO only, or DMA (several potential schemes). | ||
36 | # though PIO is always there to back up DMA, and for ep0 | ||
37 | |||
38 | ifneq ($(CONFIG_MUSB_PIO_ONLY),y) | ||
39 | |||
40 | ifeq ($(CONFIG_USB_INVENTRA_DMA),y) | ||
41 | musb_hdrc-objs += musbhsdma.o | ||
42 | |||
43 | else | ||
44 | ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) | ||
45 | musb_hdrc-objs += cppi_dma.o | ||
46 | |||
47 | else | ||
48 | ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) | ||
49 | musb_hdrc-objs += tusb6010_omap.o | ||
50 | |||
51 | endif | ||
52 | endif | ||
53 | endif | ||
54 | endif | ||
55 | |||
56 | |||
57 | ################################################################################ | ||
58 | |||
59 | # FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_* | ||
60 | |||
61 | ifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y) | ||
62 | EXTRA_CFLAGS += -DMUSB_AHB_ID | ||
63 | endif | ||
64 | |||
65 | # Debugging | ||
66 | |||
67 | MUSB_DEBUG:=$(CONFIG_USB_MUSB_LOGLEVEL) | ||
68 | |||
69 | ifeq ("$(strip $(MUSB_DEBUG))","") | ||
70 | ifdef CONFIG_USB_DEBUG | ||
71 | MUSB_DEBUG:=1 | ||
72 | else | ||
73 | MUSB_DEBUG:=0 | ||
74 | endif | ||
75 | endif | ||
76 | |||
77 | ifneq ($(MUSB_DEBUG),0) | ||
78 | EXTRA_CFLAGS += -DDEBUG | ||
79 | |||
80 | ifeq ($(CONFIG_PROC_FS),y) | ||
81 | musb_hdrc-objs += musb_procfs.o | ||
82 | endif | ||
83 | |||
84 | endif | ||
85 | |||
86 | EXTRA_CFLAGS += -DMUSB_DEBUG=$(MUSB_DEBUG) | ||