Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_DMx),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_ARCH_OMAP4),y)
  19. musb_hdrc-objs += omap2430.o
  20. endif
  21. ifeq ($(CONFIG_BF54x),y)
  22. musb_hdrc-objs += blackfin.o
  23. endif
  24. ifeq ($(CONFIG_BF52x),y)
  25. musb_hdrc-objs += blackfin.o
  26. endif
  27. ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y)
  28. musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o
  29. endif
  30. ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y)
  31. musb_hdrc-objs += musb_virthub.o musb_host.o
  32. endif
  33. ifeq ($(CONFIG_DEBUG_FS),y)
  34. musb_hdrc-objs += musb_debugfs.o
  35. endif
  36. # the kconfig must guarantee that only one of the
  37. # possible I/O schemes will be enabled at a time ...
  38. # PIO only, or DMA (several potential schemes).
  39. # though PIO is always there to back up DMA, and for ep0
  40. ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
  41. ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
  42. musb_hdrc-objs += musbhsdma.o
  43. else
  44. ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
  45. musb_hdrc-objs += cppi_dma.o
  46. else
  47. ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
  48. musb_hdrc-objs += tusb6010_omap.o
  49. endif
  50. endif
  51. endif
  52. endif
  53. ################################################################################
  54. # Debugging
  55. ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
  56. EXTRA_CFLAGS += -DDEBUG
  57. endif