656fcdb4ddd67a66db67e8fb0690f24d10e45a92
[linux-libre-firmware.git] / carl9170fw / carlfw / Kconfig
1 menu "General"
2
3 config CARL9170FW_RELEASE_VERSION
4         int
5         default 1
6
7 menu "Selectable Hardware Options"
8
9 choice
10         prompt "Receiver Max. Frame Length"
11         default CARL9170FW_RX_FRAME_LEN_8192
12
13         config CARL9170FW_RX_FRAME_LEN_4096
14                 bool "4096"
15
16         config CARL9170FW_RX_FRAME_LEN_8192
17                 bool "8192"
18
19         config CARL9170FW_RX_FRAME_LEN_16384
20                 bool "16384"
21
22         config CARL9170FW_RX_FRAME_LEN_32768
23                 bool "32768"
24
25 endchoice
26
27 config CARL9170FW_RX_FRAME_LEN
28         int
29         default 4096 if CARL9170FW_RX_FRAME_LEN_4096
30         default 8192 if CARL9170FW_RX_FRAME_LEN_8192
31         default 16384 if CARL9170FW_RX_FRAME_LEN_16384
32         default 32768 if CARL9170FW_RX_FRAME_LEN_32768
33
34 config CARL9170FW_GPIO_INTERRUPT
35         def_bool y
36         prompt "GPIO Software Interrupt"
37         ---help---
38          When this option is enabled, the firmware will poll the GPIO
39          registers and reports to the driver whenever the GPIO state
40          has changed from a previous state.
41
42          Note: This feature is necessary to monitor the WPS button,
43                if you have one on your device, then say Y.
44
45 config CARL9170FW_SECURITY_ENGINE
46         def_bool y
47         prompt "Support Hardware Crypto Engine"
48         ---help---
49          This options controls if the firmware will allow the driver
50          to program the security engine / CAM through a firmware
51          interface.
52
53          Say Y. Unless you want to do the en- and decryption for
54          CCMP(AES), TKIP/WEP(RC4) in the application anyway.
55
56 config CARL9170FW_RADIO_FUNCTIONS
57         def_bool y
58         prompt "Enable Firmware-supported Radio/RF functions"
59         ---help---
60          Some PHY/RF functions (e.g.: AGC and Noise calibration) need
61          to be done in the firmware.
62
63          Say Y, unless you really don't need the Radio/RF for
64          your project.
65
66 endmenu
67
68 source "carlfw/usb/Kconfig"
69
70 menu "Experimental, Unstable & Testing Extensions"
71
72 config CARL9170FW_PRINTF
73         def_bool y
74         prompt "Advanced printf"
75         depends on CARL9170FW_DEBUG_UART || CARL9170FW_DEBUG_USB
76         ---help---
77          Advanced printf (very useful for debugging purposes)
78          The formats supported by this implementation are:
79                 'd' 'u' 'c' 's' 'x' 'X' 'p'.
80
81          Note: If this option is disabled, the firmware will be only
82                capable of reported _preformated_ string.
83
84 config CARL9170FW_EXPERIMENTAL
85         def_bool y
86         prompt "Experimental Features"
87
88 config CARL9170FW_WOL_OPTION
89         def_bool n
90         prompt "Wakeup on WLAN"
91         depends on CARL9170FW_EXPERIMENTAL
92         ---help---
93          With this option enabled, the firmware can wake-up
94          suspended hosts... As long as they fully support
95          USB remote wakeup.
96
97 config CARL9170FW_WOL
98         def_bool n
99         depends on CARL9170FW_WOL_OPTION
100
101 config CARL9170FW_WOL_NL80211_TRIGGERS
102         def_bool n
103         prompt "Standard NL80211 wakeup triggers"
104         depends on CARL9170FW_WOL_OPTION
105         select CARL9170FW_WOL
106         ---help---
107          Available triggers:
108           * Magic Packet(tm) pattern
109           * disconnect event
110
111 config CARL9170FW_WOL_PROBE_REQUEST
112         def_bool n
113         prompt "Probe Request"
114         depends on CARL9170FW_WOL_OPTION
115         select CARL9170FW_WOL
116         ---help---
117          Scan probe requests for a given SSID.
118
119 config CARL9170FW_WOL_PROBE_REQUEST_SSID
120         string
121         prompt "Wakeup on WLAN SSID"
122         default "CARL9170_WAKEUP"
123         depends on CARL9170FW_WOL_PROBE_REQUEST
124
125 config CARL9170FW_VIFS_NUM
126         default 1
127         int
128         prompt "Number of additional pseudo virtual interfaces"
129         depends on CARL9170FW_EXPERIMENTAL
130
131 config CARL9170FW_FW_MAC_RESET
132         def_bool y
133         prompt "Firmware MAC Chip recovery"
134         depends on CARL9170FW_EXPERIMENTAL
135
136 config CARL9170FW_NOISY_MAC_RESET
137         def_bool n
138         prompt "Notify MAC RESET events"
139         depends on CARL9170FW_FW_MAC_RESET
140
141 config CARL9170FW_BROKEN_FEATURES
142         def_bool n
143         prompt "Broken Featurs"
144
145 config CARL9170FW_DEBUG
146         def_bool n
147         depends on CARL9170FW_BROKEN_FEATURES && CARL9170FW_PRINTF
148         prompt "Enable verbose debugging messages"
149
150 config CARL9170FW_DEBUG_LED_HEARTBEAT
151         def_bool n
152         prompt "LED Heartbeat"
153         depends on CARL9170FW_BROKEN_FEATURES
154         ---help---
155          This option conflicts with the application's LED code.
156          Also, it assumes that you have two LEDs, which is not
157          necessarily true.
158
159 config CARL9170FW_DEBUG_UART
160         def_bool n
161         prompt "Pass debug messages through Highspeed UART"
162         depends on CARL9170FW_BROKEN_FEATURES
163         ---help---
164          This option allows the firmware to send BUG/ERR/INFO/DBG and
165          hexdumps through the UART _as well_. However, first: you must
166          connect a working logger.
167
168 config CARL9170FW_WATCHDOG_BUTTON
169         def_bool n
170         depends on CARL9170FW_BROKEN && CARL9170FW_GPIO_INTERRUPT
171         prompt "Trigger Watchdog by pressing the WPS button"
172
173 choice CARL9170FW_UART_CLOCK
174         prompt "UART Clock"
175         depends on CARL9170FW_DEBUG_UART
176         default CARL9170FW_UART_CLOCK_40M
177
178 config CARL9170FW_UART_CLOCK_25M
179         bool "25"
180
181 config CARL9170FW_UART_CLOCK_40M
182         bool "40"
183
184 endchoice
185
186 config CARL9170FW_UNUSABLE
187         def_bool y
188         depends on CARL9170FW_BROKEN || CARL9170FW_DEBUG
189
190 config CARL9170FW_USB_MODESWITCH
191         def_bool n
192         prompt "USB 1.1 / 2.0 switching support"
193         depends on CARL9170FW_BROKEN_FEATURES && CARL9170FW_USB_STANDARD_CMDS
194         ---help---
195          Mostly implemented, but untested and some serious
196          doubts remain.
197
198 config CARL9170FW_DMA_QUEUE_BUMP
199         def_bool n
200         prompt "Bump a stuck TX queue before doing a MAC reset"
201         depends on CARL9170FW_BROKEN_FEATURES
202
203 menu "Build Options"
204 config CARL9170FW_AGGRESSIVE_CFLAGS
205         def_bool y
206         prompt "Enable aggressive size optimization"
207         ---help---
208          This option adds several more optimization compiler flags,
209          which can greatly reduce the firmware size... at the expense
210          of machine-code readability.
211
212           Say Y. Else the firmware might not fit onto the device!
213
214 endmenu
215
216 endmenu
217
218 endmenu