diff options
Diffstat (limited to 'drivers/usb/musb/Makefile')
| -rw-r--r-- | drivers/usb/musb/Makefile | 71 |
1 files changed, 20 insertions, 51 deletions
diff --git a/drivers/usb/musb/Makefile b/drivers/usb/musb/Makefile index 9705f716386e..ce164e8998d8 100644 --- a/drivers/usb/musb/Makefile +++ b/drivers/usb/musb/Makefile | |||
| @@ -2,49 +2,27 @@ | |||
| 2 | # for USB OTG silicon based on Mentor Graphics INVENTRA designs | 2 | # for USB OTG silicon based on Mentor Graphics INVENTRA designs |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | musb_hdrc-objs := musb_core.o | 5 | ccflags-$(CONFIG_USB_MUSB_DEBUG) := -DDEBUG |
| 6 | 6 | ||
| 7 | obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o | 7 | obj-$(CONFIG_USB_MUSB_HDRC) += musb_hdrc.o |
| 8 | 8 | ||
| 9 | ifeq ($(CONFIG_ARCH_DAVINCI_DMx),y) | 9 | musb_hdrc-y := musb_core.o |
| 10 | musb_hdrc-objs += davinci.o | ||
| 11 | endif | ||
| 12 | |||
| 13 | ifeq ($(CONFIG_USB_TUSB6010),y) | ||
| 14 | musb_hdrc-objs += tusb6010.o | ||
| 15 | endif | ||
| 16 | |||
| 17 | ifeq ($(CONFIG_ARCH_OMAP2430),y) | ||
| 18 | musb_hdrc-objs += omap2430.o | ||
| 19 | endif | ||
| 20 | |||
| 21 | ifeq ($(CONFIG_ARCH_OMAP3430),y) | ||
| 22 | musb_hdrc-objs += omap2430.o | ||
| 23 | endif | ||
| 24 | |||
| 25 | ifeq ($(CONFIG_ARCH_OMAP4),y) | ||
| 26 | musb_hdrc-objs += omap2430.o | ||
| 27 | endif | ||
| 28 | |||
| 29 | ifeq ($(CONFIG_BF54x),y) | ||
| 30 | musb_hdrc-objs += blackfin.o | ||
| 31 | endif | ||
| 32 | 10 | ||
| 33 | ifeq ($(CONFIG_BF52x),y) | 11 | musb_hdrc-$(CONFIG_ARCH_DAVINCI_DMx) += davinci.o |
| 34 | musb_hdrc-objs += blackfin.o | 12 | musb_hdrc-$(CONFIG_ARCH_DAVINCI_DA8XX) += da8xx.o |
| 35 | endif | 13 | musb_hdrc-$(CONFIG_USB_TUSB6010) += tusb6010.o |
| 36 | 14 | musb_hdrc-$(CONFIG_ARCH_OMAP2430) += omap2430.o | |
| 37 | ifeq ($(CONFIG_USB_GADGET_MUSB_HDRC),y) | 15 | ifeq ($(CONFIG_USB_MUSB_AM35X),y) |
| 38 | musb_hdrc-objs += musb_gadget_ep0.o musb_gadget.o | 16 | musb_hdrc-$(CONFIG_ARCH_OMAP3430) += am35x.o |
| 39 | endif | 17 | else |
| 40 | 18 | musb_hdrc-$(CONFIG_ARCH_OMAP3430) += omap2430.o | |
| 41 | ifeq ($(CONFIG_USB_MUSB_HDRC_HCD),y) | ||
| 42 | musb_hdrc-objs += musb_virthub.o musb_host.o | ||
| 43 | endif | ||
| 44 | |||
| 45 | ifeq ($(CONFIG_DEBUG_FS),y) | ||
| 46 | musb_hdrc-objs += musb_debugfs.o | ||
| 47 | endif | 19 | endif |
| 20 | musb_hdrc-$(CONFIG_ARCH_OMAP4) += omap2430.o | ||
| 21 | musb_hdrc-$(CONFIG_BF54x) += blackfin.o | ||
| 22 | musb_hdrc-$(CONFIG_BF52x) += blackfin.o | ||
| 23 | musb_hdrc-$(CONFIG_USB_GADGET_MUSB_HDRC) += musb_gadget_ep0.o musb_gadget.o | ||
| 24 | musb_hdrc-$(CONFIG_USB_MUSB_HDRC_HCD) += musb_virthub.o musb_host.o | ||
| 25 | musb_hdrc-$(CONFIG_DEBUG_FS) += musb_debugfs.o | ||
| 48 | 26 | ||
| 49 | # the kconfig must guarantee that only one of the | 27 | # the kconfig must guarantee that only one of the |
| 50 | # possible I/O schemes will be enabled at a time ... | 28 | # possible I/O schemes will be enabled at a time ... |
| @@ -54,26 +32,17 @@ endif | |||
| 54 | ifneq ($(CONFIG_MUSB_PIO_ONLY),y) | 32 | ifneq ($(CONFIG_MUSB_PIO_ONLY),y) |
| 55 | 33 | ||
| 56 | ifeq ($(CONFIG_USB_INVENTRA_DMA),y) | 34 | ifeq ($(CONFIG_USB_INVENTRA_DMA),y) |
| 57 | musb_hdrc-objs += musbhsdma.o | 35 | musb_hdrc-y += musbhsdma.o |
| 58 | 36 | ||
| 59 | else | 37 | else |
| 60 | ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) | 38 | ifeq ($(CONFIG_USB_TI_CPPI_DMA),y) |
| 61 | musb_hdrc-objs += cppi_dma.o | 39 | musb_hdrc-y += cppi_dma.o |
| 62 | 40 | ||
| 63 | else | 41 | else |
| 64 | ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) | 42 | ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y) |
| 65 | musb_hdrc-objs += tusb6010_omap.o | 43 | musb_hdrc-y += tusb6010_omap.o |
| 66 | 44 | ||
| 67 | endif | 45 | endif |
| 68 | endif | 46 | endif |
| 69 | endif | 47 | endif |
| 70 | endif | 48 | endif |
| 71 | |||
| 72 | |||
| 73 | ################################################################################ | ||
| 74 | |||
| 75 | # Debugging | ||
| 76 | |||
| 77 | ifeq ($(CONFIG_USB_MUSB_DEBUG),y) | ||
| 78 | EXTRA_CFLAGS += -DDEBUG | ||
| 79 | endif | ||
