usb: dwc_otg_310: fix usb vbus power controlled by pmic
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc_otg_310 / Makefile-original
1 #
2 # Makefile for DWC_otg Highspeed USB controller driver
3 #
4
5 ifneq ($(KERNELRELEASE),)
6 CPPFLAGS        += -DDEBUG
7
8 # Use one of the following flags to compile the software in host-only or
9 # device-only mode.
10 #CPPFLAGS        += -DDWC_HOST_ONLY
11 #CPPFLAGS        += -DDWC_DEVICE_ONLY
12
13 CPPFLAGS        += -Dlinux -DDWC_HS_ELECT_TST
14
15 obj-m   := dwc_otg.o
16
17 dwc_otg-objs    := dwc_otg_driver.o dwc_otg_attr.o
18 dwc_otg-objs    += dwc_otg_cil.o dwc_otg_cil_intr.o
19 dwc_otg-objs    += dwc_otg_pcd.o dwc_otg_pcd_intr.o
20 dwc_otg-objs    += dwc_otg_hcd.o dwc_otg_hcd_intr.o dwc_otg_hcd_queue.o
21
22 else
23
24 KDIR            := /remote/d5290p01/usb/linux-2.6.12.2
25 PWD             := $(shell pwd)
26 CROSS_COMPILE   := /remote/d5290p01/usb/tools/arm/bin/arm-none-elf-
27 ARCH            := arm
28
29 # Command paths
30 CTAGS           := /usr/bin/ctags
31 DOXYGEN         := /remote/d5290p01/usb/tools/bin/doxygen
32
33 default:
34         $(MAKE) -C$(KDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
35
36 docs:   $(wildcard *.[hc]) doc/doxygen.cfg
37         $(DOXYGEN) doc/doxygen.cfg
38
39 tags:   $(wildcard *.[hc])
40         $(CTAGS) -e $(wildcard *.[hc]) $(wildcard linux/*.[hc]) $(wildcard $(KDIR)/include/linux/usb*.h)
41
42 endif
43
44 clean:
45         rm -rf   *.o *.ko .*cmd *.mod.c .tmp_versions