xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/config.mak (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1
2KVERSION="`uname -r`"
3#DRVPATH=/lib/modules/$(KVERSION)/kernel/drivers/net/wireless/ssv6200
4DRVPATH=kernel/drivers/net/wireless/ssv6200
5KCFLAG += -Werror
6EXTRA_CFLAGS := -I$(KBUILD_TOP) -I$(KBUILD_TOP)/include
7
8CONFIG_SSV6200_CORE=m
9#ccflags-y += -DCONFIG_SSV6200_CORE
10
11###########################################################################
12# Compiler options                                                        #
13###########################################################################
14ccflags-y += -Werror
15
16# Enable -g to help debug. Deassembly from .o to .S would help to track to
17# the problomatic line from call stack dump.
18ccflags-y += -g
19
20############################################################
21# If you change the settings, please change the file synchronization
22# smac\firmware\include\config.h & compiler firmware
23############################################################
24#ccflags-y += -DCONFIG_SSV_CABRIO_A
25#ccflags-y += -DSDIO_USE_SLOW_CLOCK
26ccflags-y += -DCONFIG_SSV_CABRIO_E
27
28#CONFIG_SSV_SUPPORT_BTCX=y
29
30ccflags-y += -DCONFIG_SSV6200_CLI_ENABLE
31
32#ccflags-y += -DCONFIG_SSV_BUILD_AS_ONE_KO
33
34
35############################################################
36# Options should be able to set as parameters.             #
37############################################################
38
39#PADPD
40#ccflags-y += -DCONFIG_SSV_DPD
41
42#ccflags-y += -DCONFIG_SSV_CABRIO_MB_DEBUG
43ccflags-y += -DCONFIG_SSV6XXX_DEBUGFS
44
45#SDIO
46ccflags-y += -DCONFIG_SSV_TX_LOWTHRESHOLD
47
48############################################################
49# Rate control update for MPDU.
50############################################################
51ccflags-y += -DRATE_CONTROL_REALTIME_UPDATA
52
53#workaround
54#ccflags-y += -DCONFIG_SSV_CABRIO_EXT_PA
55
56############################################################
57# NOTE:
58#    Only one of the following flags could be turned on.
59# It also turned off the following flags. In this case,
60# pure software security or pure hardware security is used.
61#
62############################################################
63#ccflags-y += -DCONFIG_SSV_SW_ENCRYPT_HW_DECRYPT
64#ccflags-y += -DCONFIG_SSV_HW_ENCRYPT_SW_DECRYPT
65
66# FOR WFA
67#ccflags-y += -DWIFI_CERTIFIED
68
69#ccflags-y += -DCONFIG_SSV_SDIO_EXT_INT
70
71#######################################################
72ccflags-y += -DCONFIG_SSV6200_HAS_RX_WORKQUEUE
73#ccflags-y += -DUSE_THREAD_RX
74ccflags-y += -DUSE_THREAD_TX
75ccflags-y += -DENABLE_AGGREGATE_IN_TIME
76ccflags-y += -DENABLE_INCREMENTAL_AGGREGATION
77
78# Generic decision table applicable to both AP and STA modes.
79ccflags-y += -DUSE_GENERIC_DECI_TBL
80
81# Use crypto in SSV driver.
82ccflags-y += -DUSE_LOCAL_CRYPTO
83ccflags-y += -DUSE_LOCAL_WEP_CRYPTO
84ccflags-y += -DUSE_LOCAL_TKIP_CRYPTO
85ccflags-y += -DUSE_LOCAL_CCMP_CRYPTO
86ccflags-y += -DUSE_LOCAL_SMS4_CRYPTO
87
88ccflags-y += -DCONFIG_SSV_WAPI
89
90ccflags-y += -DMULTI_THREAD_ENCRYPT
91ccflags-y += -DKTHREAD_BIND
92ccflags-y += -DFW_WSID_WATCH_LIST
93#ccflags-y += -DUSE_BATCH_RX
94#ccflags-y += -DCONFIG_IRQ_DEBUG_COUNT
95#ccflags-y += -DCONFIG_SSV_SUPPORT_AES_ASM
96
97
98ccflags-y += -DSSV6200_ECO
99#ccflags-y += -DENABLE_WAKE_IO_ISR_WHEN_HCI_ENQUEUE
100ccflags-y += -DHAS_CRYPTO_LOCK
101ccflags-y += -DENABLE_TX_Q_FLOW_CONTROL
102
103#ccflags-y += -DCONFIG_DEBUG_SKB_TIMESTAMP
104
105
106###########################################################
107# option to :qswitch driver between relay device and sw mac device
108# Enable ->Relay device	(CHAR)
109# Disable->SW MAC device(NET)
110
111#DRV_OPT = HUW_DRV
112#For HUW to define some resources
113ifeq ($(DRV_OPT), HUW_DRV)
114ccflags-y += -DHUW_DRV
115endif
116
117#enable p2p client to parse GO broadcast noa
118#ccflags-y += -DCONFIG_P2P_NOA
119
120#enable rx management frame check
121#ccflags-y += -DCONFIG_RX_MGMT_CHECK
122
123ccflags-y += -DCONFIG_SSV_RSSI
124