blob: 6875b74a3d7d55d3c9c29b511dd85ac713897700 [file] [log] [blame]
Felipe Balbi72246da2011-08-19 18:10:58 +03001ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG
2ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG
Ido Shayevitzcdeef4c2012-05-29 13:17:41 +02003ccflags-y += -Idrivers/usb/host
Vijayavardhan Vennapusa45145882013-01-03 14:11:58 +05304ccflags-y += -Idrivers/base/power
Felipe Balbi72246da2011-08-19 18:10:58 +03005
6obj-$(CONFIG_USB_DWC3) += dwc3.o
7
8dwc3-y := core.o
Felipe Balbid07e8812011-10-12 14:08:26 +03009dwc3-y += host.o
Felipe Balbi67920bd2011-10-12 14:15:10 +030010dwc3-y += gadget.o ep0.o
Ido Shayevitzcdeef4c2012-05-29 13:17:41 +020011dwc3-y += dwc3_otg.o
Felipe Balbid07e8812011-10-12 14:08:26 +030012
Felipe Balbi72246da2011-08-19 18:10:58 +030013ifneq ($(CONFIG_DEBUG_FS),)
14 dwc3-y += debugfs.o
15endif
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 Shayevitzef72ddd2012-03-28 18:55:55 +020032
Ido Shayevitzb01e3c72012-03-12 13:24:51 +020033obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
Ido Shayevitzef72ddd2012-03-28 18:55:55 +020034obj-$(CONFIG_USB_DWC3_MSM) += dwc3-msm.o
Felipe Balbi72246da2011-08-19 18:10:58 +030035
Anton Tikhomirovd28a9682012-02-15 17:04:56 +090036##
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##
45ifneq ($(CONFIG_HAVE_CLK),)
46 obj-$(CONFIG_USB_DWC3) += dwc3-exynos.o
47endif
48
Felipe Balbi72246da2011-08-19 18:10:58 +030049ifneq ($(CONFIG_PCI),)
50 obj-$(CONFIG_USB_DWC3) += dwc3-pci.o
51endif
52