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 25550a7375SFelipe Balbiifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y) 26550a7375SFelipe Balbi musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o 27550a7375SFelipe Balbiendif 28550a7375SFelipe Balbi 29550a7375SFelipe Balbiifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y) 30550a7375SFelipe Balbi musb_hdrc-objs += musb_virthub.o musb_host.o 31550a7375SFelipe Balbiendif 32550a7375SFelipe Balbi 33550a7375SFelipe Balbi# the kconfig must guarantee that only one of the 34550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ... 35550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes). 36550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0 37550a7375SFelipe Balbi 38550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y) 39550a7375SFelipe Balbi 40550a7375SFelipe Balbi ifeq ($(CONFIG_USB_INVENTRA_DMA),y) 41550a7375SFelipe Balbi musb_hdrc-objs += musbhsdma.o 42550a7375SFelipe Balbi 43550a7375SFelipe Balbi else 44550a7375SFelipe Balbi ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) 45550a7375SFelipe Balbi musb_hdrc-objs += cppi_dma.o 46550a7375SFelipe Balbi 47550a7375SFelipe Balbi else 48550a7375SFelipe Balbi ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) 49550a7375SFelipe Balbi musb_hdrc-objs += tusb6010_omap.o 50550a7375SFelipe Balbi 51550a7375SFelipe Balbi endif 52550a7375SFelipe Balbi endif 53550a7375SFelipe Balbi endif 54550a7375SFelipe Balbiendif 55550a7375SFelipe Balbi 56550a7375SFelipe Balbi 57550a7375SFelipe Balbi################################################################################ 58550a7375SFelipe Balbi 59550a7375SFelipe Balbi# FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_* 60550a7375SFelipe Balbi 61550a7375SFelipe Balbiifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y) 62550a7375SFelipe Balbi EXTRA_CFLAGS += -DMUSB_AHB_ID 63550a7375SFelipe Balbiendif 64550a7375SFelipe Balbi 65550a7375SFelipe Balbi# Debugging 66550a7375SFelipe Balbi 67*e8164f64SFelipe Balbiifeq ($(CONFIG_USB_MUSB_DEBUG),y) 68550a7375SFelipe Balbi EXTRA_CFLAGS += -DDEBUG 69550a7375SFelipe Balbiendif 70