Makefile 1.5 KB

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