| Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 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 |  | 
| Sergei Shtylyov | c6a39ee | 2010-03-25 13:14:24 +0200 | [diff] [blame] | 9 | ifeq ($(CONFIG_ARCH_DAVINCI_DMx),y) | 
| Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 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 |  | 
| Maulik Mankad | c71b1b9 | 2010-03-12 10:29:08 +0200 | [diff] [blame] | 25 | ifeq ($(CONFIG_ARCH_OMAP4),y) | 
 | 26 | 	musb_hdrc-objs  += omap2430.o | 
 | 27 | endif | 
 | 28 |  | 
| Bryan Wu | 085ad40 | 2008-12-02 21:33:49 +0200 | [diff] [blame] | 29 | ifeq ($(CONFIG_BF54x),y) | 
 | 30 | 	musb_hdrc-objs	+= blackfin.o | 
 | 31 | endif | 
 | 32 |  | 
 | 33 | ifeq ($(CONFIG_BF52x),y) | 
 | 34 | 	musb_hdrc-objs	+= blackfin.o | 
 | 35 | endif | 
 | 36 |  | 
| Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 37 | ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y) | 
 | 38 | 	musb_hdrc-objs		+= musb_gadget_ep0.o musb_gadget.o | 
 | 39 | endif | 
 | 40 |  | 
 | 41 | ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y) | 
 | 42 | 	musb_hdrc-objs		+= musb_virthub.o musb_host.o | 
 | 43 | endif | 
 | 44 |  | 
| Felipe Balbi | 7f7f9e2 | 2010-03-12 10:29:11 +0200 | [diff] [blame^] | 45 | ifeq ($(CONFIG_DEBUG_FS),y) | 
 | 46 | 	musb_hdrc-objs		+= musb_debugfs.o | 
 | 47 | endif | 
 | 48 |  | 
| Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 49 | # the kconfig must guarantee that only one of the | 
 | 50 | # possible I/O schemes will be enabled at a time ... | 
 | 51 | # PIO only, or DMA (several potential schemes). | 
 | 52 | # though PIO is always there to back up DMA, and for ep0 | 
 | 53 |  | 
 | 54 | ifneq ($(CONFIG_MUSB_PIO_ONLY),y) | 
 | 55 |  | 
 | 56 |   ifeq ($(CONFIG_USB_INVENTRA_DMA),y) | 
 | 57 |     musb_hdrc-objs		+= musbhsdma.o | 
 | 58 |  | 
 | 59 |   else | 
 | 60 |     ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) | 
 | 61 |       musb_hdrc-objs		+= cppi_dma.o | 
 | 62 |  | 
 | 63 |     else | 
 | 64 |       ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) | 
 | 65 |         musb_hdrc-objs		+= tusb6010_omap.o | 
 | 66 |  | 
 | 67 |       endif | 
 | 68 |     endif | 
 | 69 |   endif | 
 | 70 | endif | 
 | 71 |  | 
 | 72 |  | 
 | 73 | ################################################################################ | 
 | 74 |  | 
 | 75 | # FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_* | 
 | 76 |  | 
 | 77 | ifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y) | 
 | 78 | 	EXTRA_CFLAGS += -DMUSB_AHB_ID | 
 | 79 | endif | 
 | 80 |  | 
 | 81 | # Debugging | 
 | 82 |  | 
| Felipe Balbi | e8164f6 | 2008-08-10 21:22:35 +0300 | [diff] [blame] | 83 | ifeq ($(CONFIG_USB_MUSB_DEBUG),y) | 
 | 84 | 	EXTRA_CFLAGS += -DDEBUG | 
| Felipe Balbi | 550a737 | 2008-07-24 12:27:36 +0300 | [diff] [blame] | 85 | endif |