Makefile 1.7 KB

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