xref: /linux/drivers/usb/musb/Makefile (revision 085ad4067b5def12bb0e6f50ec65302053d9186d)
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
9550a7375SFelipe Balbiifeq ($(CONFIG_ARCH_DAVINCI),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
25*085ad406SBryan Wuifeq ($(CONFIG_BF54x),y)
26*085ad406SBryan Wu	musb_hdrc-objs	+= blackfin.o
27*085ad406SBryan Wuendif
28*085ad406SBryan Wu
29*085ad406SBryan Wuifeq ($(CONFIG_BF52x),y)
30*085ad406SBryan Wu	musb_hdrc-objs	+= blackfin.o
31*085ad406SBryan Wuendif
32*085ad406SBryan Wu
33550a7375SFelipe Balbiifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y)
34550a7375SFelipe Balbi	musb_hdrc-objs		+= musb_gadget_ep0.o musb_gadget.o
35550a7375SFelipe Balbiendif
36550a7375SFelipe Balbi
37550a7375SFelipe Balbiifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y)
38550a7375SFelipe Balbi	musb_hdrc-objs		+= musb_virthub.o musb_host.o
39550a7375SFelipe Balbiendif
40550a7375SFelipe Balbi
41550a7375SFelipe Balbi# the kconfig must guarantee that only one of the
42550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ...
43550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes).
44550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0
45550a7375SFelipe Balbi
46550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y)
47550a7375SFelipe Balbi
48550a7375SFelipe Balbi  ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
49550a7375SFelipe Balbi    musb_hdrc-objs		+= musbhsdma.o
50550a7375SFelipe Balbi
51550a7375SFelipe Balbi  else
52550a7375SFelipe Balbi    ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
53550a7375SFelipe Balbi      musb_hdrc-objs		+= cppi_dma.o
54550a7375SFelipe Balbi
55550a7375SFelipe Balbi    else
56550a7375SFelipe Balbi      ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
57550a7375SFelipe Balbi        musb_hdrc-objs		+= tusb6010_omap.o
58550a7375SFelipe Balbi
59550a7375SFelipe Balbi      endif
60550a7375SFelipe Balbi    endif
61550a7375SFelipe Balbi  endif
62550a7375SFelipe Balbiendif
63550a7375SFelipe Balbi
64550a7375SFelipe Balbi
65550a7375SFelipe Balbi################################################################################
66550a7375SFelipe Balbi
67550a7375SFelipe Balbi# FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_*
68550a7375SFelipe Balbi
69550a7375SFelipe Balbiifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y)
70550a7375SFelipe Balbi	EXTRA_CFLAGS += -DMUSB_AHB_ID
71550a7375SFelipe Balbiendif
72550a7375SFelipe Balbi
73550a7375SFelipe Balbi# Debugging
74550a7375SFelipe Balbi
75e8164f64SFelipe Balbiifeq ($(CONFIG_USB_MUSB_DEBUG),y)
76550a7375SFelipe Balbi	EXTRA_CFLAGS += -DDEBUG
77550a7375SFelipe Balbiendif
78