summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/files/drivers/usb/ifxhcd/Makefile
blob: 0a2ac993807c51cf480cff7e2949e7e7d382e865 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# Makefile for USB Core files and filesystem
#
	ifxusb_host-objs    := ifxusb_driver.o
	ifxusb_host-objs    += ifxusb_ctl.o
	ifxusb_host-objs    += ifxusb_cif.o
	ifxusb_host-objs    += ifxusb_cif_h.o
	ifxusb_host-objs    += ifxhcd.o
	ifxusb_host-objs    += ifxhcd_es.o
	ifxusb_host-objs    += ifxhcd_intr.o
	ifxusb_host-objs    += ifxhcd_queue.o

ifeq ($(CONFIG_IFX_TWINPASS),y)
        EXTRA_CFLAGS        += -D__IS_TWINPASS__
endif
ifeq ($(CONFIG_IFX_DANUBE),y)
        EXTRA_CFLAGS        += -D__IS_DANUBE__
endif
ifeq ($(CONFIG_IFX_AMAZON_SE),y)
        EXTRA_CFLAGS        += -D__IS_AMAZON_SE__
endif
ifeq ($(CONFIG_IFX_AR9),y)
        EXTRA_CFLAGS        += -D__IS_AR9__
endif
ifeq ($(CONFIG_IFX_AMAZON_S),y)
        EXTRA_CFLAGS        += -D__IS_AR9__
endif
ifeq ($(CONFIG_IFX_VR9),y)
        EXTRA_CFLAGS        += -D__IS_VR9__
endif

ifeq ($(CONFIG_USB_HOST_IFX),y)
	EXTRA_CFLAGS  += -Dlinux -D__LINUX__
	EXTRA_CFLAGS  += -D__IS_HOST__
	EXTRA_CFLAGS  += -D__KERNEL__
endif

ifeq ($(CONFIG_USB_HOST_IFX),m)
	EXTRA_CFLAGS  += -Dlinux -D__LINUX__
	EXTRA_CFLAGS  += -D__IS_HOST__
	EXTRA_CFLAGS  += -D__KERNEL__
endif

ifeq ($(CONFIG_USB_DEBUG),y)
	EXTRA_CFLAGS  += -D__DEBUG__
	EXTRA_CFLAGS  += -D__ENABLE_DUMP__
endif

ifeq ($(CONFIG_USB_HOST_IFX_B),y)
        EXTRA_CFLAGS  += -D__IS_DUAL__
endif
ifeq ($(CONFIG_USB_HOST_IFX_1),y)
        EXTRA_CFLAGS  += -D__IS_FIRST__
endif
ifeq ($(CONFIG_USB_HOST_IFX_2),y)
        EXTRA_CFLAGS  += -D__IS_SECOND__
endif

ifeq ($(CONFIG_USB_HOST_IFX_FORCE_USB11),y)
	EXTRA_CFLAGS  += -D__FORCE_USB11__
endif
ifeq ($(CONFIG_USB_HOST_IFX_WITH_HS_ELECT_TST),y)
	EXTRA_CFLAGS  += -D__WITH_HS_ELECT_TST__
endif
ifeq ($(CONFIG_USB_HOST_IFX_WITH_ISO),y)
	EXTRA_CFLAGS  += -D__EN_ISOC__
endif
ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_ADJ),y)
	EXTRA_CFLAGS  += -D__UNALIGNED_BUFFER_ADJ__
endif
ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_CHK),y)
	EXTRA_CFLAGS  += -D__UNALIGNED_BUFFER_CHK__
endif

#	EXTRA_CFLAGS  += -D__DYN_SOF_INTR__
	EXTRA_CFLAGS  += -D__UEIP__
#	EXTRA_CFLAGS  += -D__EN_ISOC__
#	EXTRA_CFLAGS  += -D__EN_ISOC_SPLIT__

## 20110628 AVM/WK New flag for less SOF IRQs
	EXTRA_CFLAGS  += -D__USE_TIMER_4_SOF__
	
obj-$(CONFIG_USB_HOST_IFX)	+= ifxusb_host.o