Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. # the kconfig must guarantee that only one of the
  34. # possible I/O schemes will be enabled at a time ...
  35. # PIO only, or DMA (several potential schemes).
  36. # though PIO is always there to back up DMA, and for ep0
  37. ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
  38. ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
  39. musb_hdrc-objs += musbhsdma.o
  40. else
  41. ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
  42. musb_hdrc-objs += cppi_dma.o
  43. else
  44. ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
  45. musb_hdrc-objs += tusb6010_omap.o
  46. endif
  47. endif
  48. endif
  49. endif
  50. ################################################################################
  51. # FIXME remove all these extra "-DMUSB_* things, stick to CONFIG_*
  52. ifeq ($(CONFIG_USB_INVENTRA_MUSB_HAS_AHB_ID),y)
  53. EXTRA_CFLAGS += -DMUSB_AHB_ID
  54. endif
  55. # Debugging
  56. ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
  57. EXTRA_CFLAGS += -DDEBUG
  58. endif