Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 1 | ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG |
| 2 | ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG |
Ido Shayevitz | cdeef4c | 2012-05-29 13:17:41 +0200 | [diff] [blame] | 3 | ccflags-y += -Idrivers/usb/host |
Vijayavardhan Vennapusa | 4514588 | 2013-01-03 14:11:58 +0530 | [diff] [blame] | 4 | ccflags-y += -Idrivers/base/power |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 5 | |
| 6 | obj-$(CONFIG_USB_DWC3) += dwc3.o |
| 7 | |
| 8 | dwc3-y := core.o |
Felipe Balbi | d07e881 | 2011-10-12 14:08:26 +0300 | [diff] [blame] | 9 | dwc3-y += host.o |
Felipe Balbi | 67920bd | 2011-10-12 14:15:10 +0300 | [diff] [blame] | 10 | dwc3-y += gadget.o ep0.o |
Ido Shayevitz | cdeef4c | 2012-05-29 13:17:41 +0200 | [diff] [blame] | 11 | dwc3-y += dwc3_otg.o |
Felipe Balbi | d07e881 | 2011-10-12 14:08:26 +0300 | [diff] [blame] | 12 | |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 13 | ifneq ($(CONFIG_DEBUG_FS),) |
| 14 | dwc3-y += debugfs.o |
| 15 | endif |
| 16 | |
| 17 | ## |
| 18 | # Platform-specific glue layers go here |
| 19 | # |
| 20 | # NOTICE: Make sure your glue layer doesn't depend on anything |
| 21 | # which is arch-specific and that it compiles on all situations. |
| 22 | # |
| 23 | # We want to keep this requirement in order to be able to compile |
| 24 | # the entire driver (with all its glue layers) on several architectures |
| 25 | # and make sure it compiles fine. This will also help with allmodconfig |
| 26 | # and allyesconfig builds. |
| 27 | # |
| 28 | # The only exception is the PCI glue layer, but that's only because |
| 29 | # PCI doesn't provide nops if CONFIG_PCI isn't enabled. |
| 30 | ## |
| 31 | |
Ido Shayevitz | ef72ddd | 2012-03-28 18:55:55 +0200 | [diff] [blame] | 32 | |
Ido Shayevitz | b01e3c7 | 2012-03-12 13:24:51 +0200 | [diff] [blame] | 33 | obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o |
Ido Shayevitz | ef72ddd | 2012-03-28 18:55:55 +0200 | [diff] [blame] | 34 | obj-$(CONFIG_USB_DWC3_MSM) += dwc3-msm.o |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 35 | |
Anton Tikhomirov | d28a968 | 2012-02-15 17:04:56 +0900 | [diff] [blame] | 36 | ## |
| 37 | # REVISIT Samsung Exynos platform needs the clk API which isn't |
| 38 | # defined on all architectures. If we allow dwc3-exynos.c compile |
| 39 | # always we will fail the linking phase on those architectures |
| 40 | # which don't provide clk api implementation and that's unnaceptable. |
| 41 | # |
| 42 | # When Samsung's platform start supporting pm_runtime, this check |
| 43 | # for HAVE_CLK should be removed. |
| 44 | ## |
| 45 | ifneq ($(CONFIG_HAVE_CLK),) |
| 46 | obj-$(CONFIG_USB_DWC3) += dwc3-exynos.o |
| 47 | endif |
| 48 | |
Felipe Balbi | 72246da | 2011-08-19 18:10:58 +0300 | [diff] [blame] | 49 | ifneq ($(CONFIG_PCI),) |
| 50 | obj-$(CONFIG_USB_DWC3) += dwc3-pci.o |
| 51 | endif |
| 52 | |