source: trunk/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig @ 29651

Last change on this file since 29651 was 29651, checked in by juhosg, 4 years ago

ar71xx: add support for TP-Link TL-MR3020

This patch adds support for the TP-Link device TL-MR3020 which is very
similiar to the TL-WR703N.
The TL-MR3020 uses 5 LEDs, 1 push button and a switch with 3 positions.
Only four LEDs can be controlled via GPIO. The power LED is connected to
the power supply.
The WPS push button has been mapped to KEY_WPS_BUTTON. The two GPIO signals
of the sliding switch have been mapped to BTN_0 and BTN_1.

I have also setup a wiki page with details here:
http://wiki.openwrt.org/toh/tp-link/tl-mr3020

USB is working and has been tested with USB mass storage and USB UMTS
stick.

Wifi also seems to work.

Ethernet is working too.

Signed-off-by: Christian Cier-Zniewski <c.cier@…>

File size: 10.9 KB
Line 
1if ATHEROS_AR71XX
2
3menu "Atheros AR71xx machine selection"
4config AR71XX_MACH_HORNET_UB
5        bool "Alfa Networks Hornet-UB board support"
6        select SOC_AR933X
7        select AR71XX_DEV_M25P80
8        select AR71XX_DEV_GPIO_BUTTONS
9        select AR71XX_DEV_LEDS_GPIO
10        select AR71XX_DEV_USB
11        select AR71XX_DEV_AR9XXX_WMAC
12
13config AR71XX_MACH_ALFA_NX
14        bool "ALFA Network N2/N5 board support"
15        select SOC_AR724X
16        select AR71XX_DEV_AP91_PCI if PCI
17        select AR71XX_DEV_M25P80
18        select AR71XX_DEV_GPIO_BUTTONS
19        select AR71XX_DEV_LEDS_GPIO
20
21config AR71XX_MACH_ALL0258N
22        bool "Allnet ALL0258N support"
23        select SOC_AR724X
24        select AR71XX_DEV_M25P80
25        select AR71XX_DEV_AP91_PCI if PCI
26        select AR71XX_DEV_GPIO_BUTTONS
27        select AR71XX_DEV_LEDS_GPIO
28
29config AR71XX_MACH_AP81
30        bool "Atheros AP81 board support"
31        select SOC_AR913X
32        select AR71XX_DEV_M25P80
33        select AR71XX_DEV_AR9XXX_WMAC
34        select AR71XX_DEV_GPIO_BUTTONS
35        select AR71XX_DEV_LEDS_GPIO
36        select AR71XX_DEV_USB
37
38config AR71XX_MACH_AP83
39        bool "Atheros AP83 board support"
40        select SOC_AR913X
41        select AR71XX_DEV_AR9XXX_WMAC
42        select AR71XX_DEV_GPIO_BUTTONS
43        select AR71XX_DEV_LEDS_GPIO
44        select AR71XX_DEV_USB
45
46config AR71XX_MACH_AP96
47        bool "Atheros AP96 board support"
48        select SOC_AR71XX
49        select AR71XX_DEV_M25P80
50        select AR71XX_DEV_AP94_PCI if PCI
51        select AR71XX_DEV_GPIO_BUTTONS
52        select AR71XX_DEV_LEDS_GPIO
53        select AR71XX_DEV_USB
54
55config AR71XX_MACH_AP121
56        bool "Atheros AP121 board support"
57        select AR71XX_DEV_M25P80
58        select AR71XX_DEV_GPIO_BUTTONS
59        select AR71XX_DEV_LEDS_GPIO
60        select AR71XX_DEV_USB
61        select AR71XX_DEV_AR9XXX_WMAC
62        select SOC_AR933X
63
64config AR71XX_MACH_DB120
65        bool "Atheros DB120 board support"
66        select SOC_AR934X
67        select AR71XX_DEV_AR9XXX_WMAC
68        select AR71XX_DEV_DB120_PCI if PCI
69        select AR71XX_DEV_GPIO_BUTTONS
70        select AR71XX_DEV_LEDS_GPIO
71        select AR71XX_DEV_USB
72
73config AR71XX_MACH_DIR_600_A1
74        bool "D-Link DIR-600 rev. A1 support"
75        select SOC_AR724X
76        select AR71XX_DEV_AP91_PCI if PCI
77        select AR71XX_DEV_M25P80
78        select AR71XX_DEV_GPIO_BUTTONS
79        select AR71XX_DEV_LEDS_GPIO
80        select AR71XX_NVRAM
81
82config AR71XX_MACH_DIR_615_C1
83        bool "D-Link DIR-615 rev. C1 support"
84        select SOC_AR913X
85        select AR71XX_DEV_M25P80
86        select AR71XX_DEV_AR9XXX_WMAC
87        select AR71XX_DEV_GPIO_BUTTONS
88        select AR71XX_DEV_LEDS_GPIO
89        select AR71XX_NVRAM
90
91config AR71XX_MACH_DIR_825_B1
92        bool "D-Link DIR-825 rev. B1 board support"
93        select SOC_AR71XX
94        select AR71XX_DEV_M25P80
95        select AR71XX_DEV_AP94_PCI if PCI
96        select AR71XX_DEV_GPIO_BUTTONS
97        select AR71XX_DEV_LEDS_GPIO
98        select AR71XX_DEV_USB
99
100config AR71XX_MACH_JA76PF
101        bool "jjPlus JA76PF board support"
102        select SOC_AR71XX
103        select AR71XX_DEV_M25P80
104        select AR71XX_DEV_GPIO_BUTTONS
105        select AR71XX_DEV_PB42_PCI if PCI
106        select AR71XX_DEV_LEDS_GPIO
107        select AR71XX_DEV_USB
108
109config AR71XX_MACH_JWAP003
110        bool "jjPlus JWAP003 board support"
111        select SOC_AR71XX
112        select AR71XX_DEV_M25P80
113        select AR71XX_DEV_GPIO_BUTTONS
114        select AR71XX_DEV_PB42_PCI if PCI
115        select AR71XX_DEV_USB
116
117config AR71XX_MACH_PB42
118        bool "Atheros PB42 board support"
119        select SOC_AR71XX
120        select AR71XX_DEV_M25P80
121        select AR71XX_DEV_GPIO_BUTTONS
122        select AR71XX_DEV_PB42_PCI if PCI
123
124config AR71XX_MACH_PB44
125        bool "Atheros PB44 board support"
126        select SOC_AR71XX
127        select AR71XX_DEV_GPIO_BUTTONS
128        select AR71XX_DEV_PB42_PCI if PCI
129        select AR71XX_DEV_LEDS_GPIO
130        select AR71XX_DEV_USB
131
132config AR71XX_MACH_PB92
133        bool "Atheros PB92 board support"
134        select SOC_AR724X
135        select AR71XX_DEV_GPIO_BUTTONS
136        select AR71XX_DEV_PB9X_PCI if PCI
137        select AR71XX_DEV_LEDS_GPIO
138        select AR71XX_DEV_USB
139
140config AR71XX_MACH_AW_NR580
141        bool "AzureWave AW-NR580 board support"
142        select SOC_AR71XX
143        select AR71XX_DEV_M25P80
144        select AR71XX_DEV_GPIO_BUTTONS
145        select AR71XX_DEV_PB42_PCI if PCI
146        select AR71XX_DEV_LEDS_GPIO
147
148config AR71XX_MACH_WZR_HP_AG300H
149        bool "Buffalo WZR-HP-AG300H board support"
150        select SOC_AR71XX
151        select AR71XX_DEV_M25P80
152        select AR71XX_DEV_GPIO_BUTTONS
153        select AR71XX_DEV_LEDS_GPIO
154        select AR71XX_DEV_USB
155
156config AR71XX_MACH_WZR_HP_G450H
157        bool "Buffalo WZR-HP-G450H board support"
158        select SOC_AR724X
159        select AR71XX_DEV_M25P80
160        select AR71XX_DEV_AP91_PCI if PCI
161        select AR71XX_DEV_GPIO_BUTTONS
162        select AR71XX_DEV_LEDS_GPIO
163        select AR71XX_DEV_USB
164
165config AR71XX_MACH_WZR_HP_G300NH
166        bool "Buffalo WZR-HP-G300NH board support"
167        select SOC_AR913X
168        select AR71XX_DEV_AR9XXX_WMAC
169        select AR71XX_DEV_GPIO_BUTTONS
170        select AR71XX_DEV_LEDS_GPIO
171        select AR71XX_DEV_USB
172        select RTL8366_SMI
173
174config AR71XX_MACH_WZR_HP_G300NH2
175        bool "Buffalo WZR-HP-G300NH2 board support"
176        select SOC_AR724X
177        select AR71XX_DEV_M25P80
178        select AR71XX_DEV_GPIO_BUTTONS
179        select AR71XX_DEV_AP91_PCI if PCI
180        select AR71XX_DEV_LEDS_GPIO
181        select AR71XX_DEV_USB
182
183config AR71XX_MACH_WHR_HP_G300N
184        bool "Buffalo WHR-HP-G300N board support"
185        select SOC_AR724X
186        select AR71XX_DEV_M25P80
187        select AR71XX_DEV_AP91_PCI if PCI
188        select AR71XX_DEV_GPIO_BUTTONS
189        select AR71XX_DEV_LEDS_GPIO
190
191config AR71XX_MACH_WP543
192        bool "Compex WP543/WPJ543 board support"
193        select SOC_AR71XX
194        select MYLOADER
195        select AR71XX_DEV_M25P80
196        select AR71XX_DEV_GPIO_BUTTONS
197        select AR71XX_DEV_PB42_PCI if PCI
198        select AR71XX_DEV_LEDS_GPIO
199        select AR71XX_DEV_USB
200
201config AR71XX_MACH_WRT160NL
202        bool "Linksys WRT160NL board support"
203        select SOC_AR913X
204        select AR71XX_DEV_M25P80
205        select AR71XX_DEV_AR9XXX_WMAC
206        select AR71XX_DEV_GPIO_BUTTONS
207        select AR71XX_DEV_LEDS_GPIO
208        select AR71XX_DEV_USB
209        select AR71XX_NVRAM
210
211config AR71XX_MACH_WRT400N
212        bool "Linksys WRT400N board support"
213        select SOC_AR71XX
214        select AR71XX_DEV_AP94_PCI if PCI
215        select AR71XX_DEV_M25P80
216        select AR71XX_DEV_GPIO_BUTTONS
217        select AR71XX_DEV_LEDS_GPIO
218
219config AR71XX_MACH_RB4XX
220        bool "MikroTik RouterBOARD 4xx series support"
221        select SOC_AR71XX
222        select AR71XX_DEV_GPIO_BUTTONS
223        select AR71XX_DEV_LEDS_GPIO
224        select AR71XX_DEV_USB
225
226config AR71XX_MACH_RB750
227        bool "MikroTik RouterBOARD 750 support"
228        select SOC_AR724X
229
230config AR71XX_MACH_WNDR3700
231        bool "NETGEAR WNDR3700 board support"
232        select SOC_AR71XX
233        select AR71XX_DEV_M25P80
234        select AR71XX_DEV_AP94_PCI if PCI
235        select AR71XX_DEV_GPIO_BUTTONS
236        select AR71XX_DEV_LEDS_GPIO
237        select AR71XX_DEV_USB
238
239config AR71XX_MACH_WNR2000
240        bool "NETGEAR WNR2000 board support"
241        select SOC_AR913X
242        select AR71XX_DEV_M25P80
243        select AR71XX_DEV_AR9XXX_WMAC
244        select AR71XX_DEV_GPIO_BUTTONS
245        select AR71XX_DEV_LEDS_GPIO
246
247config AR71XX_MACH_OM2P
248        bool "OpenMesh OM2P board support"
249        select SOC_AR724X
250        select AR71XX_DEV_M25P80
251        select AR71XX_DEV_AP91_PCI if PCI
252        select AR71XX_DEV_GPIO_BUTTONS
253        select AR71XX_DEV_LEDS_GPIO
254
255config AR71XX_MACH_MZK_W04NU
256        bool "Planex MZK-W04NU board support"
257        select SOC_AR913X
258        select AR71XX_DEV_M25P80
259        select AR71XX_DEV_AR9XXX_WMAC
260        select AR71XX_DEV_GPIO_BUTTONS
261        select AR71XX_DEV_LEDS_GPIO
262        select AR71XX_DEV_USB
263
264config AR71XX_MACH_MZK_W300NH
265        bool "Planex MZK-W300NH board support"
266        select SOC_AR913X
267        select AR71XX_DEV_M25P80
268        select AR71XX_DEV_AR9XXX_WMAC
269        select AR71XX_DEV_GPIO_BUTTONS
270        select AR71XX_DEV_LEDS_GPIO
271
272config AR71XX_MACH_NBG460N
273        bool "Zyxel NBG460N/550N/550NH board support"
274        select SOC_AR913X
275        select AR71XX_DEV_M25P80
276        select AR71XX_DEV_AR9XXX_WMAC
277        select AR71XX_DEV_GPIO_BUTTONS
278        select AR71XX_DEV_LEDS_GPIO
279
280config AR71XX_MACH_TL_MR3020
281        bool "TP-LINK TL-MR3020 support"
282        select SOC_AR933X
283        select AR71XX_DEV_M25P80
284        select AR71XX_DEV_GPIO_BUTTONS
285        select AR71XX_DEV_LEDS_GPIO
286        select AR71XX_DEV_USB
287        select AR71XX_DEV_AR9XXX_WMAC
288
289config AR71XX_MACH_TL_MR3X20
290        bool "TP-LINK TL-MR3220/3420 support"
291        select SOC_AR724X
292        select AR71XX_DEV_M25P80
293        select AR71XX_DEV_AP91_PCI if PCI
294        select AR71XX_DEV_GPIO_BUTTONS
295        select AR71XX_DEV_LEDS_GPIO
296        select AR71XX_DEV_USB
297
298config AR71XX_MACH_TL_WA901ND
299        bool "TP-LINK TL-WA901ND support"
300        select SOC_AR724X
301        select AR71XX_DEV_M25P80
302        select AR71XX_DEV_AP91_PCI if PCI
303        select AR71XX_DEV_GPIO_BUTTONS
304        select AR71XX_DEV_LEDS_GPIO
305
306config AR71XX_MACH_TL_WA901ND_V2
307        bool "TP-LINK TL-WA901ND v2 support"
308        select SOC_AR913X
309        select AR71XX_DEV_M25P80
310        select AR71XX_DEV_AR9XXX_WMAC
311        select AR71XX_DEV_GPIO_BUTTONS
312        select AR71XX_DEV_LEDS_GPIO
313
314config AR71XX_MACH_TL_WR703N
315        bool "TP-LINK TL-WR703N support"
316        select SOC_AR933X
317        select AR71XX_DEV_M25P80
318        select AR71XX_DEV_GPIO_BUTTONS
319        select AR71XX_DEV_LEDS_GPIO
320        select AR71XX_DEV_USB
321        select AR71XX_DEV_AR9XXX_WMAC
322
323config AR71XX_MACH_TL_WR741ND
324        bool "TP-LINK TL-WR741ND support"
325        select SOC_AR724X
326        select AR71XX_DEV_M25P80
327        select AR71XX_DEV_AP91_PCI if PCI
328        select AR71XX_DEV_GPIO_BUTTONS
329        select AR71XX_DEV_LEDS_GPIO
330
331config AR71XX_MACH_TL_WR741ND_V4
332        bool "TP-LINK TL-WR741ND v4 support"
333        select SOC_AR933X
334        select AR71XX_DEV_M25P80
335        select AR71XX_DEV_GPIO_BUTTONS
336        select AR71XX_DEV_LEDS_GPIO
337        select AR71XX_DEV_AR9XXX_WMAC
338
339config AR71XX_MACH_TL_WR841N_V1
340        bool "TP-LINK TL-WR841N v1 support"
341        select SOC_AR71XX
342        select AR71XX_DEV_M25P80
343        select AR71XX_DEV_PB42_PCI if PCI
344        select AR71XX_DEV_DSA
345        select AR71XX_DEV_GPIO_BUTTONS
346        select AR71XX_DEV_LEDS_GPIO
347
348config AR71XX_MACH_TL_WR941ND
349        bool "TP-LINK TL-WR941ND support"
350        select SOC_AR913X
351        select AR71XX_DEV_M25P80
352        select AR71XX_DEV_AR9XXX_WMAC
353        select AR71XX_DEV_DSA
354        select AR71XX_DEV_GPIO_BUTTONS
355        select AR71XX_DEV_LEDS_GPIO
356
357config AR71XX_MACH_TL_WR1043ND
358        bool "TP-LINK TL-WR1043ND support"
359        select SOC_AR913X
360        select AR71XX_DEV_M25P80
361        select AR71XX_DEV_AR9XXX_WMAC
362        select AR71XX_DEV_GPIO_BUTTONS
363        select AR71XX_DEV_LEDS_GPIO
364        select AR71XX_DEV_USB
365
366config AR71XX_MACH_TEW_632BRP
367        bool "TRENDnet TEW-632BRP support"
368        select SOC_AR913X
369        select AR71XX_DEV_M25P80
370        select AR71XX_DEV_AR9XXX_WMAC
371        select AR71XX_DEV_GPIO_BUTTONS
372        select AR71XX_DEV_LEDS_GPIO
373        select AR71XX_NVRAM
374
375config AR71XX_MACH_UBNT
376        bool "Ubiquiti AR71xx based boards support"
377        select SOC_AR71XX
378        select SOC_AR724X
379        select AR71XX_DEV_M25P80
380        select AR71XX_DEV_AP91_PCI if PCI
381        select AR71XX_DEV_GPIO_BUTTONS
382        select AR71XX_DEV_LEDS_GPIO
383        select AR71XX_DEV_PB42_PCI if PCI
384        select AR71XX_DEV_USB
385
386config AR71XX_MACH_EAP7660D
387        bool "Senao EAP7660D support"
388        select SOC_AR71XX
389        select AR71XX_DEV_M25P80
390        select AR71XX_DEV_GPIO_BUTTONS
391        select AR71XX_DEV_LEDS_GPIO
392
393config AR71XX_MACH_ZCN_1523H
394        bool "Zcomax ZCN-1523H support"
395        select SOC_AR724X
396        select AR71XX_DEV_M25P80
397        select AR71XX_DEV_AP91_PCI if PCI
398        select AR71XX_DEV_GPIO_BUTTONS
399        select AR71XX_DEV_LEDS_GPIO
400
401endmenu
402
403config SOC_AR71XX
404        bool
405        select USB_ARCH_HAS_EHCI
406        select USB_ARCH_HAS_OHCI
407
408config SOC_AR724X
409        bool
410        select USB_ARCH_HAS_EHCI
411        select USB_ARCH_HAS_OHCI
412
413config SOC_AR913X
414        bool
415        select USB_ARCH_HAS_EHCI
416
417config SOC_AR934X
418        bool
419        select USB_ARCH_HAS_EHCI
420
421config AR71XX_DEV_M25P80
422        def_bool n
423
424config AR71XX_DEV_AP91_PCI
425        select AR71XX_PCI_ATH9K_FIXUP
426        def_bool n
427
428config AR71XX_DEV_AP94_PCI
429        select AR71XX_PCI_ATH9K_FIXUP
430        def_bool n
431
432config AR71XX_DEV_AR9XXX_WMAC
433        def_bool n
434
435config AR71XX_DEV_DB120_PCI
436        select AR71XX_PCI_ATH9K_FIXUP
437        def_bool n
438
439config AR71XX_DEV_DSA
440        def_bool n
441
442config AR71XX_DEV_GPIO_BUTTONS
443        def_bool n
444
445config AR71XX_DEV_LEDS_GPIO
446        def_bool n
447
448config AR71XX_DEV_PB42_PCI
449        def_bool n
450
451config AR71XX_DEV_PB9X_PCI
452        def_bool n
453
454config AR71XX_DEV_USB
455        def_bool n
456
457config AR71XX_NVRAM
458        def_bool n
459
460config AR71XX_PCI_ATH9K_FIXUP
461        def_bool n
462
463config SOC_AR933X
464        bool
465        select USB_ARCH_HAS_EHCI
466
467endif
Note: See TracBrowser for help on using the repository browser.