blob: 0b46082b500d6a420cb676517e099566e8d953e1 [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
Felipe Balbi72246da2011-08-19 18:10:58 +03004
5obj-$(CONFIG_USB_DWC3) += dwc3.o
6
7dwc3-y := core.o
Felipe Balbid07e8812011-10-12 14:08:26 +03008dwc3-y += host.o
Felipe Balbi67920bd2011-10-12 14:15:10 +03009dwc3-y += gadget.o ep0.o
Ido Shayevitzcdeef4c2012-05-29 13:17:41 +020010dwc3-y += dwc3_otg.o
Felipe Balbid07e8812011-10-12 14:08:26 +030011
Felipe Balbi72246da2011-08-19 18:10:58 +030012ifneq ($(CONFIG_DEBUG_FS),)
13 dwc3-y += debugfs.o
14endif
15
16##
17# Platform-specific glue layers go here
18#
19# NOTICE: Make sure your glue layer doesn't depend on anything
20# which is arch-specific and that it compiles on all situations.
21#
22# We want to keep this requirement in order to be able to compile
23# the entire driver (with all its glue layers) on several architectures
24# and make sure it compiles fine. This will also help with allmodconfig
25# and allyesconfig builds.
26#
27# The only exception is the PCI glue layer, but that's only because
28# PCI doesn't provide nops if CONFIG_PCI isn't enabled.
29##
30
Ido Shayevitzef72ddd2012-03-28 18:55:55 +020031
Ido Shayevitzb01e3c72012-03-12 13:24:51 +020032obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
Ido Shayevitzef72ddd2012-03-28 18:55:55 +020033obj-$(CONFIG_USB_DWC3_MSM) += dwc3-msm.o
Felipe Balbi72246da2011-08-19 18:10:58 +030034
Anton Tikhomirovd28a9682012-02-15 17:04:56 +090035##
36# REVISIT Samsung Exynos platform needs the clk API which isn't
37# defined on all architectures. If we allow dwc3-exynos.c compile
38# always we will fail the linking phase on those architectures
39# which don't provide clk api implementation and that's unnaceptable.
40#
41# When Samsung's platform start supporting pm_runtime, this check
42# for HAVE_CLK should be removed.
43##
44ifneq ($(CONFIG_HAVE_CLK),)
45 obj-$(CONFIG_USB_DWC3) += dwc3-exynos.o
46endif
47
Felipe Balbi72246da2011-08-19 18:10:58 +030048ifneq ($(CONFIG_PCI),)
49 obj-$(CONFIG_USB_DWC3) += dwc3-pci.o
50endif
51