blob: bf3e67cf427afad545c635c3edab0ae054d4d699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#
# Makefile for DWC_otg Highspeed USB controller driver
#
DWCPATH=$(PWD)/drivers/usb/susb/dwc_common_port
# Use the BUS_INTERFACE variable to compile the software for either
# PCI(PCI_INTERFACE) or LM(LM_INTERFACE) bus.
ifeq ($(BUS_INTERFACE),)
BUS_INTERFACE = -DLM_INTERFACE
endif
#CPPFLAGS += -DDEBUG
# Use one of the following flags to compile the software in host-only or
# device-only mode.
#CPPFLAGS += -DDWC_HOST_ONLY
CPPFLAGS += -DDWC_DEVICE_ONLY
CPPFLAGS += -Dlinux -DDWC_HS_ELECT_TST
#CPPFLAGS += -DDWC_EN_ISOC
CPPFLAGS += -I$(DWCPATH)
CPPFLAGS += -I$(PWD)
#CPPFLAGS += -I$(PORTLIB)
CPPFLAGS += -DDWC_LINUX
CPPFLAGS += $(CFI)
CPPFLAGS += $(BUS_INTERFACE)
#CPPFLAGS += -DDWC_DEV_SRPCAP
#KBUILD_CPPFLAGS += -DDEBUG
# Use one of the following flags to compile the software in host-only or
# device-only mode.
#KBUILD_CPPFLAGS += -DDWC_HOST_ONLY
KBUILD_CPPFLAGS += -DDWC_DEVICE_ONLY
KBUILD_CPPFLAGS += -Dlinux -DDWC_HS_ELECT_TST
#KBUILD_CPPFLAGS += -DDWC_EN_ISOC
KBUILD_CPPFLAGS += -I$(DWCPATH)
#KBUILD_CPPFLAGS += -I$(PORTLIB)
KBUILD_CPPFLAGS += -DDWC_LINUX
KBUILD_CPPFLAGS += $(CFI)
KBUILD_CPPFLAGS += $(BUS_INTERFACE)
#KBUILD_CPPFLAGS += -DDWC_DEV_SRPCAP
obj-y := dwc_otg.o
obj-y += dwc_common_port/
dwc_otg-objs := dwc_otg_driver.o dwc_otg_attr.o
dwc_otg-objs += dwc_otg_cil.o dwc_otg_cil_intr.o dwc_otg_core_param.o
dwc_otg-objs += dwc_otg_pcd_linux.o dwc_otg_pcd.o dwc_otg_pcd_intr.o
dwc_otg-objs += dwc_otg_hcd.o dwc_otg_hcd_linux.o dwc_otg_hcd_intr.o dwc_otg_hcd_queue.o dwc_otg_hcd_ddma.o
dwc_otg-objs += dwc_otg_adp.o
#dwc_otg-objs += hiusb_android.o
dwc_otg-objs += dwc_otg_k3v2.o
dwc_otg-objs += lm.o
ifneq ($(CFI),)
dwc_otg-objs += dwc_otg_cfi.o
endif
clean:
rm -rf *.o *.ko .*cmd *.mod.c .tmp_versions Module.symvers
|