blob: db7933de17b5a8ecc0d24a6ab9dfd64942924905 [file] [log] [blame]
Felipe Balbi550a7372008-07-24 12:27:36 +03001#
2# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3#
4
5musb_hdrc-objs := musb_core.o
6
7obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
8
Sergei Shtylyovc6a39ee2010-03-25 13:14:24 +02009ifeq ($(CONFIG_ARCH_DAVINCI_DMx),y)
Felipe Balbi550a7372008-07-24 12:27:36 +030010 musb_hdrc-objs += davinci.o
11endif
12
13ifeq ($(CONFIG_USB_TUSB6010),y)
14 musb_hdrc-objs += tusb6010.o
15endif
16
17ifeq ($(CONFIG_ARCH_OMAP2430),y)
18 musb_hdrc-objs += omap2430.o
19endif
20
21ifeq ($(CONFIG_ARCH_OMAP3430),y)
22 musb_hdrc-objs += omap2430.o
23endif
24
Maulik Mankadc71b1b92010-03-12 10:29:08 +020025ifeq ($(CONFIG_ARCH_OMAP4),y)
26 musb_hdrc-objs += omap2430.o
27endif
28
Bryan Wu085ad402008-12-02 21:33:49 +020029ifeq ($(CONFIG_BF54x),y)
30 musb_hdrc-objs += blackfin.o
31endif
32
33ifeq ($(CONFIG_BF52x),y)
34 musb_hdrc-objs += blackfin.o
35endif
36
Felipe Balbi550a7372008-07-24 12:27:36 +030037ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y)
38 musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o
39endif
40
41ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y)
42 musb_hdrc-objs += musb_virthub.o musb_host.o
43endif
44
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
49
50ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
51
52 ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
53 musb_hdrc-objs += musbhsdma.o
54
55 else
56 ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
57 musb_hdrc-objs += cppi_dma.o
58
59 else
60 ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
61 musb_hdrc-objs += tusb6010_omap.o
62
63 endif
64 endif
65 endif
66endif
67
68
69################################################################################
70
71# FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_*
72
73ifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y)
74 EXTRA_CFLAGS += -DMUSB_AHB_ID
75endif
76
77# Debugging
78
Felipe Balbie8164f62008-08-10 21:22:35 +030079ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
80 EXTRA_CFLAGS += -DDEBUG
Felipe Balbi550a7372008-07-24 12:27:36 +030081endif