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 25*c71b1b9cSMaulik Mankadifeq ($(CONFIG_ARCH_OMAP4),y) 26*c71b1b9cSMaulik Mankad musb_hdrc-objs += omap2430.o 27*c71b1b9cSMaulik Mankadendif 28*c71b1b9cSMaulik 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 45550a7375SFelipe Balbi# the kconfig must guarantee that only one of the 46550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ... 47550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes). 48550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0 49550a7375SFelipe Balbi 50550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y) 51550a7375SFelipe Balbi 52550a7375SFelipe Balbi ifeq ($(CONFIG_USB_INVENTRA_DMA),y) 53550a7375SFelipe Balbi musb_hdrc-objs += musbhsdma.o 54550a7375SFelipe Balbi 55550a7375SFelipe Balbi else 56550a7375SFelipe Balbi ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) 57550a7375SFelipe Balbi musb_hdrc-objs += cppi_dma.o 58550a7375SFelipe Balbi 59550a7375SFelipe Balbi else 60550a7375SFelipe Balbi ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) 61550a7375SFelipe Balbi musb_hdrc-objs += tusb6010_omap.o 62550a7375SFelipe Balbi 63550a7375SFelipe Balbi endif 64550a7375SFelipe Balbi endif 65550a7375SFelipe Balbi endif 66550a7375SFelipe Balbiendif 67550a7375SFelipe Balbi 68550a7375SFelipe Balbi 69550a7375SFelipe Balbi################################################################################ 70550a7375SFelipe Balbi 71550a7375SFelipe Balbi# FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_* 72550a7375SFelipe Balbi 73550a7375SFelipe Balbiifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y) 74550a7375SFelipe Balbi EXTRA_CFLAGS += -DMUSB_AHB_ID 75550a7375SFelipe Balbiendif 76550a7375SFelipe Balbi 77550a7375SFelipe Balbi# Debugging 78550a7375SFelipe Balbi 79e8164f64SFelipe Balbiifeq ($(CONFIG_USB_MUSB_DEBUG),y) 80550a7375SFelipe Balbi EXTRA_CFLAGS += -DDEBUG 81550a7375SFelipe Balbiendif 82