xref: /linux/drivers/usb/musb/Makefile (revision 7f7f9e2a5af9e30c6a0c6743ac874f67e2ef4b72)
1550a7375SFelipe Balbi#
2550a7375SFelipe Balbi# for USB OTG silicon based on Mentor Graphics INVENTRA designs
3550a7375SFelipe Balbi#
4550a7375SFelipe Balbi
5550a7375SFelipe Balbimusb_hdrc-objs := musb_core.o
6550a7375SFelipe Balbi
7550a7375SFelipe Balbiobj-$(CONFIG_USB_MUSB_HDRC)	+= musb_hdrc.o
8550a7375SFelipe Balbi
9c6a39eecSSergei Shtylyovifeq ($(CONFIG_ARCH_DAVINCI_DMx),y)
10550a7375SFelipe Balbi	musb_hdrc-objs	+= davinci.o
11550a7375SFelipe Balbiendif
12550a7375SFelipe Balbi
13550a7375SFelipe Balbiifeq ($(CONFIG_USB_TUSB6010),y)
14550a7375SFelipe Balbi	musb_hdrc-objs	+= tusb6010.o
15550a7375SFelipe Balbiendif
16550a7375SFelipe Balbi
17550a7375SFelipe Balbiifeq ($(CONFIG_ARCH_OMAP2430),y)
18550a7375SFelipe Balbi	musb_hdrc-objs	+= omap2430.o
19550a7375SFelipe Balbiendif
20550a7375SFelipe Balbi
21550a7375SFelipe Balbiifeq ($(CONFIG_ARCH_OMAP3430),y)
22550a7375SFelipe Balbi	musb_hdrc-objs	+= omap2430.o
23550a7375SFelipe Balbiendif
24550a7375SFelipe Balbi
25c71b1b9cSMaulik Mankadifeq ($(CONFIG_ARCH_OMAP4),y)
26c71b1b9cSMaulik Mankad	musb_hdrc-objs  += omap2430.o
27c71b1b9cSMaulik Mankadendif
28c71b1b9cSMaulik Mankad
29085ad406SBryan Wuifeq ($(CONFIG_BF54x),y)
30085ad406SBryan Wu	musb_hdrc-objs	+= blackfin.o
31085ad406SBryan Wuendif
32085ad406SBryan Wu
33085ad406SBryan Wuifeq ($(CONFIG_BF52x),y)
34085ad406SBryan Wu	musb_hdrc-objs	+= blackfin.o
35085ad406SBryan Wuendif
36085ad406SBryan Wu
37550a7375SFelipe Balbiifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y)
38550a7375SFelipe Balbi	musb_hdrc-objs		+= musb_gadget_ep0.o musb_gadget.o
39550a7375SFelipe Balbiendif
40550a7375SFelipe Balbi
41550a7375SFelipe Balbiifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y)
42550a7375SFelipe Balbi	musb_hdrc-objs		+= musb_virthub.o musb_host.o
43550a7375SFelipe Balbiendif
44550a7375SFelipe Balbi
45*7f7f9e2aSFelipe Balbiifeq ($(CONFIG_DEBUG_FS),y)
46*7f7f9e2aSFelipe Balbi	musb_hdrc-objs		+= musb_debugfs.o
47*7f7f9e2aSFelipe Balbiendif
48*7f7f9e2aSFelipe Balbi
49550a7375SFelipe Balbi# the kconfig must guarantee that only one of the
50550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ...
51550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes).
52550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0
53550a7375SFelipe Balbi
54550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y)
55550a7375SFelipe Balbi
56550a7375SFelipe Balbi  ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
57550a7375SFelipe Balbi    musb_hdrc-objs		+= musbhsdma.o
58550a7375SFelipe Balbi
59550a7375SFelipe Balbi  else
60550a7375SFelipe Balbi    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
61550a7375SFelipe Balbi      musb_hdrc-objs		+= cppi_dma.o
62550a7375SFelipe Balbi
63550a7375SFelipe Balbi    else
64550a7375SFelipe Balbi      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
65550a7375SFelipe Balbi        musb_hdrc-objs		+= tusb6010_omap.o
66550a7375SFelipe Balbi
67550a7375SFelipe Balbi      endif
68550a7375SFelipe Balbi    endif
69550a7375SFelipe Balbi  endif
70550a7375SFelipe Balbiendif
71550a7375SFelipe Balbi
72550a7375SFelipe Balbi
73550a7375SFelipe Balbi################################################################################
74550a7375SFelipe Balbi
75550a7375SFelipe Balbi# FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_*
76550a7375SFelipe Balbi
77550a7375SFelipe Balbiifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y)
78550a7375SFelipe Balbi	EXTRA_CFLAGS += -DMUSB_AHB_ID
79550a7375SFelipe Balbiendif
80550a7375SFelipe Balbi
81550a7375SFelipe Balbi# Debugging
82550a7375SFelipe Balbi
83e8164f64SFelipe Balbiifeq ($(CONFIG_USB_MUSB_DEBUG),y)
84550a7375SFelipe Balbi	EXTRA_CFLAGS += -DDEBUG
85550a7375SFelipe Balbiendif
86