summaryrefslogtreecommitdiff
path: root/package/kernel/lantiq/ltq-hcd/src/Makefile
blob: 153fd42dc4b4acfb052f041cf6e51abd196e2036 (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
ltq_hcd_$(BUILD_VARIANT)-objs    := ifxusb_driver.o ifxusb_ctl.o ifxusb_cif.o \
			ifxusb_cif_h.o ifxhcd.o ifxhcd_es.o \
			ifxhcd_intr.o ifxhcd_queue.o
obj-m = ltq_hcd_$(BUILD_VARIANT).o

ifeq ($(BUILD_VARIANT),danube)
  EXTRA_CFLAGS += -D__IS_DANUBE__
endif

ifeq ($(BUILD_VARIANT),ase)
  EXTRA_CFLAGS += -D__IS_AMAZON_SE__
endif

ifeq ($(BUILD_VARIANT),ar9)
  EXTRA_CFLAGS += -D__IS_AR9__
  EXTRA_CFLAGS += -D__IS_DUAL__
endif

ifeq ($(BUILD_VARIANT),vr9)
  EXTRA_CFLAGS += -D__IS_VR9__
  EXTRA_CFLAGS += -D__PHY_LONG_PREEMP__
  EXTRA_CFLAGS += -D__PINGSTOP_CTRL__
  EXTRA_CFLAGS += -D__PINGSTOP_BULK__
  EXTRA_CFLAGS += -D__IS_DUAL__
endif

ifeq ($(BUILD_VARIANT),ar10)
  EXTRA_CFLAGS += -D__IS_AR10__
  EXTRA_CFLAGS += -D__PHY_LONG_PREEMP__
  EXTRA_CFLAGS += -D__PINGSTOP_CTRL__
  EXTRA_CFLAGS += -D__PINGSTOP_BULK__
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_BUF_ADJ__
#endif
ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_CHK),y)
  EXTRA_CFLAGS  += -D__UNALIGNED_BUF_CHK__
endif
ifeq ($(CONFIG_USB_HOST_IFX_COC),y)
  EXTRA_CFLAGS  += -D__HOST_COC__
endif

# EXTRA_CFLAGS  += -D__IS_FIRST__
# EXTRA_CFLAGS  += -D__IS_SECOND__

# EXTRA_CFLAGS  += -D__EN_ISOC__
# EXTRA_CFLAGS  += -D__EN_ISOC_SPLIT__
# EXTRA_CFLAGS  += -D__EPQD_DESTROY_TIMEOUT__
# EXTRA_CFLAGS  += -D__INNAKSTOP_CTRL__

EXTRA_CFLAGS += -Dlinux -D__LINUX__
EXTRA_CFLAGS += -D__IS_HOST__
EXTRA_CFLAGS += -D__KERNEL__
#EXTRA_CFLAGS += -D__DEBUG__
#EXTRA_CFLAGS += -D__ENABLE_DUMP__

EXTRA_CFLAGS += -D__DYN_SOF_INTR__
EXTRA_CFLAGS += -D__UEIP__
EXTRA_CFLAGS += -D__DO_OC_INT__
EXTRA_CFLAGS += -D__INNAKSTOP_BULK__

EXTRA_CFLAGS += -D__INTRNAKRETRY__
EXTRA_CFLAGS += -D__INTRINCRETRY__