Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. ifeq ($(CONFIG_USB_MUSB_DEBUG),y)
  48. EXTRA_CFLAGS += -DDEBUG
  49. endif