1*550a7375SFelipe Balbi# 2*550a7375SFelipe Balbi# for USB OTG silicon based on Mentor Graphics INVENTRA designs 3*550a7375SFelipe Balbi# 4*550a7375SFelipe Balbi 5*550a7375SFelipe Balbimusb_hdrc-objs := musb_core.o 6*550a7375SFelipe Balbi 7*550a7375SFelipe Balbiobj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o 8*550a7375SFelipe Balbi 9*550a7375SFelipe Balbiifeq ($(CONFIG_ARCH_DAVINCI),y) 10*550a7375SFelipe Balbi musb_hdrc-objs += davinci.o 11*550a7375SFelipe Balbiendif 12*550a7375SFelipe Balbi 13*550a7375SFelipe Balbiifeq ($(CONFIG_USB_TUSB6010),y) 14*550a7375SFelipe Balbi musb_hdrc-objs += tusb6010.o 15*550a7375SFelipe Balbiendif 16*550a7375SFelipe Balbi 17*550a7375SFelipe Balbiifeq ($(CONFIG_ARCH_OMAP2430),y) 18*550a7375SFelipe Balbi musb_hdrc-objs += omap2430.o 19*550a7375SFelipe Balbiendif 20*550a7375SFelipe Balbi 21*550a7375SFelipe Balbiifeq ($(CONFIG_ARCH_OMAP3430),y) 22*550a7375SFelipe Balbi musb_hdrc-objs += omap2430.o 23*550a7375SFelipe Balbiendif 24*550a7375SFelipe Balbi 25*550a7375SFelipe Balbiifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y) 26*550a7375SFelipe Balbi musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o 27*550a7375SFelipe Balbiendif 28*550a7375SFelipe Balbi 29*550a7375SFelipe Balbiifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y) 30*550a7375SFelipe Balbi musb_hdrc-objs += musb_virthub.o musb_host.o 31*550a7375SFelipe Balbiendif 32*550a7375SFelipe Balbi 33*550a7375SFelipe Balbi# the kconfig must guarantee that only one of the 34*550a7375SFelipe Balbi# possible I/O schemes will be enabled at a time ... 35*550a7375SFelipe Balbi# PIO only, or DMA (several potential schemes). 36*550a7375SFelipe Balbi# though PIO is always there to back up DMA, and for ep0 37*550a7375SFelipe Balbi 38*550a7375SFelipe Balbiifneq ($(CONFIG_MUSB_PIO_ONLY),y) 39*550a7375SFelipe Balbi 40*550a7375SFelipe Balbi ifeq ($(CONFIG_USB_INVENTRA_DMA),y) 41*550a7375SFelipe Balbi musb_hdrc-objs += musbhsdma.o 42*550a7375SFelipe Balbi 43*550a7375SFelipe Balbi else 44*550a7375SFelipe Balbi ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) 45*550a7375SFelipe Balbi musb_hdrc-objs += cppi_dma.o 46*550a7375SFelipe Balbi 47*550a7375SFelipe Balbi else 48*550a7375SFelipe Balbi ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) 49*550a7375SFelipe Balbi musb_hdrc-objs += tusb6010_omap.o 50*550a7375SFelipe Balbi 51*550a7375SFelipe Balbi endif 52*550a7375SFelipe Balbi endif 53*550a7375SFelipe Balbi endif 54*550a7375SFelipe Balbiendif 55*550a7375SFelipe Balbi 56*550a7375SFelipe Balbi 57*550a7375SFelipe Balbi################################################################################ 58*550a7375SFelipe Balbi 59*550a7375SFelipe Balbi# FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_* 60*550a7375SFelipe Balbi 61*550a7375SFelipe Balbiifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y) 62*550a7375SFelipe Balbi EXTRA_CFLAGS += -DMUSB_AHB_ID 63*550a7375SFelipe Balbiendif 64*550a7375SFelipe Balbi 65*550a7375SFelipe Balbi# Debugging 66*550a7375SFelipe Balbi 67*550a7375SFelipe BalbiMUSB_DEBUG:=$(CONFIG_USB_MUSB_LOGLEVEL) 68*550a7375SFelipe Balbi 69*550a7375SFelipe Balbiifeq ("$(strip $(MUSB_DEBUG))","") 70*550a7375SFelipe Balbi ifdef CONFIG_USB_DEBUG 71*550a7375SFelipe Balbi MUSB_DEBUG:=1 72*550a7375SFelipe Balbi else 73*550a7375SFelipe Balbi MUSB_DEBUG:=0 74*550a7375SFelipe Balbi endif 75*550a7375SFelipe Balbiendif 76*550a7375SFelipe Balbi 77*550a7375SFelipe Balbiifneq ($(MUSB_DEBUG),0) 78*550a7375SFelipe Balbi EXTRA_CFLAGS += -DDEBUG 79*550a7375SFelipe Balbi 80*550a7375SFelipe Balbi ifeq ($(CONFIG_PROC_FS),y) 81*550a7375SFelipe Balbi musb_hdrc-objs += musb_procfs.o 82*550a7375SFelipe Balbi endif 83*550a7375SFelipe Balbi 84*550a7375SFelipe Balbiendif 85*550a7375SFelipe Balbi 86*550a7375SFelipe BalbiEXTRA_CFLAGS += -DMUSB_DEBUG=$(MUSB_DEBUG) 87