lantiq: Tune the XWAY subtarget cflags
[openwrt/staging/yousong.git] / package / platform / lantiq / ltq-hcd / src / Makefile
1 ltq_hcd_$(BUILD_VARIANT)-objs := ifxusb_driver.o ifxusb_ctl.o ifxusb_cif.o \
2 ifxusb_cif_h.o ifxhcd.o ifxhcd_es.o \
3 ifxhcd_intr.o ifxhcd_queue.o
4 obj-m = ltq_hcd_$(BUILD_VARIANT).o
5
6 ifeq ($(BUILD_VARIANT),danube)
7 EXTRA_CFLAGS += -D__IS_DANUBE__
8 endif
9
10 ifeq ($(BUILD_VARIANT),ase)
11 EXTRA_CFLAGS += -D__IS_AMAZON_SE__
12 endif
13
14 ifeq ($(BUILD_VARIANT),ar9)
15 EXTRA_CFLAGS += -D__IS_AR9__
16 EXTRA_CFLAGS += -D__IS_DUAL__
17 endif
18
19 ifeq ($(BUILD_VARIANT),vr9)
20 EXTRA_CFLAGS += -D__IS_VR9__
21 EXTRA_CFLAGS += -D__PHY_LONG_PREEMP__
22 EXTRA_CFLAGS += -D__PINGSTOP_CTRL__
23 EXTRA_CFLAGS += -D__PINGSTOP_BULK__
24 EXTRA_CFLAGS += -D__IS_DUAL__
25 endif
26
27 ifeq ($(BUILD_VARIANT),ar10)
28 EXTRA_CFLAGS += -D__IS_AR10__
29 EXTRA_CFLAGS += -D__PHY_LONG_PREEMP__
30 EXTRA_CFLAGS += -D__PINGSTOP_CTRL__
31 EXTRA_CFLAGS += -D__PINGSTOP_BULK__
32 endif
33
34 ifeq ($(CONFIG_USB_HOST_IFX_FORCE_USB11),y)
35 EXTRA_CFLAGS += -D__FORCE_USB11__
36 endif
37 ifeq ($(CONFIG_USB_HOST_IFX_WITH_HS_ELECT_TST),y)
38 EXTRA_CFLAGS += -D__WITH_HS_ELECT_TST__
39 endif
40 ifeq ($(CONFIG_USB_HOST_IFX_WITH_ISO),y)
41 EXTRA_CFLAGS += -D__EN_ISOC__
42 endif
43 #ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_ADJ),y)
44 EXTRA_CFLAGS += -D__UNALIGNED_BUF_ADJ__
45 #endif
46 ifeq ($(CONFIG_USB_HOST_IFX_UNALIGNED_CHK),y)
47 EXTRA_CFLAGS += -D__UNALIGNED_BUF_CHK__
48 endif
49 ifeq ($(CONFIG_USB_HOST_IFX_COC),y)
50 EXTRA_CFLAGS += -D__HOST_COC__
51 endif
52
53 # EXTRA_CFLAGS += -D__IS_FIRST__
54 # EXTRA_CFLAGS += -D__IS_SECOND__
55
56 # EXTRA_CFLAGS += -D__EN_ISOC__
57 # EXTRA_CFLAGS += -D__EN_ISOC_SPLIT__
58 # EXTRA_CFLAGS += -D__EPQD_DESTROY_TIMEOUT__
59 # EXTRA_CFLAGS += -D__INNAKSTOP_CTRL__
60
61 EXTRA_CFLAGS += -Dlinux -D__LINUX__
62 EXTRA_CFLAGS += -D__IS_HOST__
63 EXTRA_CFLAGS += -D__KERNEL__
64 #EXTRA_CFLAGS += -D__DEBUG__
65 #EXTRA_CFLAGS += -D__ENABLE_DUMP__
66
67 EXTRA_CFLAGS += -D__DYN_SOF_INTR__
68 EXTRA_CFLAGS += -D__UEIP__
69 EXTRA_CFLAGS += -D__DO_OC_INT__
70 EXTRA_CFLAGS += -D__INNAKSTOP_BULK__
71
72 EXTRA_CFLAGS += -D__INTRNAKRETRY__
73 EXTRA_CFLAGS += -D__INTRINCRETRY__
74