Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # for USB OTG silicon based on Mentor Graphics INVENTRA designs
  3. #
  4. ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG
  5. obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o
  6. musb_hdrc-y := musb_core.o
  7. musb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC) += musb_gadget_ep0.o musb_gadget.o
  8. musb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD) += musb_virthub.o musb_host.o
  9. musb_hdrc-$(CONFIG_DEBUG_FS) += musb_debugfs.o
  10. # Hardware Glue Layer
  11. obj-$(CONFIG_USB_MUSB_OMAP2PLUS) += omap2430.o
  12. obj-$(CONFIG_USB_MUSB_AM35X) += am35x.o
  13. obj-$(CONFIG_USB_MUSB_TUSB6010) += tusb6010.o
  14. obj-$(CONFIG_USB_MUSB_DAVINCI) += davinci.o
  15. obj-$(CONFIG_USB_MUSB_DA8XX) += da8xx.o
  16. obj-$(CONFIG_USB_MUSB_BLACKFIN) += blackfin.o
  17. obj-$(CONFIG_USB_MUSB_UX500) += ux500.o
  18. # the kconfig must guarantee that only one of the
  19. # possible I/O schemes will be enabled at a time ...
  20. # PIO only, or DMA (several potential schemes).
  21. # though PIO is always there to back up DMA, and for ep0
  22. ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
  23. ifeq ($(CONFIG_USB_INVENTRA_DMA),y)
  24. musb_hdrc-y += musbhsdma.o
  25. else
  26. ifeq ($(CONFIG_USB_TI_CPPI_DMA),y)
  27. musb_hdrc-y += cppi_dma.o
  28. else
  29. ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
  30. musb_hdrc-y += tusb6010_omap.o
  31. endif
  32. endif
  33. endif
  34. endif