Jonas Gorski
e18ceb1dac
ar71xx: merge WZR-HP-G301NH support into WZR-HP-G300NH
...
Now that we can use a generic name for the switch there is no need for a
separate image for the WZR-HP-G301NH.
Update the default network config and remove the extra image.
SVN-Revision: 27814
2011-07-28 11:57:51 +00:00
Felix Fietkau
9e4113b493
ar71xx: autodetect rtl8366s/rtl8366rb on wzr-hp-g300nh
...
SVN-Revision: 27756
2011-07-24 14:40:35 +00:00
Felix Fietkau
1afe8a0726
rtl8366: unify rtl8366s and rtl8366rb platform data
...
SVN-Revision: 27754
2011-07-24 14:40:23 +00:00
Felix Fietkau
9105dad418
ar71xx: enable the usb power regulator on the wzr-hp-ag300h through gpio 2 ( #9684 )
...
SVN-Revision: 27739
2011-07-24 08:02:20 +00:00
Felix Fietkau
fefc79f3cb
ar71xx: reset the phy in the ethernet init on ar724x
...
SVN-Revision: 27703
2011-07-20 12:04:34 +00:00
Gabor Juhos
f9e4619b97
ar71xx: remove CONFIG_MTD_CONCAT ifdefs from the WZR-HP-AG300H code
...
The config option has been removed in 2.6.39.
SVN-Revision: 27320
2011-06-30 12:15:33 +00:00
Gabor Juhos
d98476c6bd
ar71xx: merge 2.6.39 patches
...
Also remove the old UART driver for ar933x.
SVN-Revision: 27314
2011-06-29 08:57:37 +00:00
Gabor Juhos
1e138098cd
ar71xx: remove ar71xx_gpio_irq_set_type
...
SVN-Revision: 27309
2011-06-29 08:57:30 +00:00
Gabor Juhos
055e317ed8
ar71xx: add separate handlers for IP3 interrupts
...
SVN-Revision: 27308
2011-06-29 08:57:29 +00:00
Gabor Juhos
59bff8bf18
ar71xx: use separate handlers for IP2 interrupts
...
SVN-Revision: 27307
2011-06-29 08:57:28 +00:00
Gabor Juhos
9d6af600e1
ar71xx: remove useless irq_desc.status initializations
...
SVN-Revision: 27306
2011-06-29 08:57:27 +00:00
Felix Fietkau
ed7f41792a
ar71xx: bring up secondary radio on wzr-hp-ag300h ( fixes #9608 )
...
SVN-Revision: 27282
2011-06-25 13:48:47 +00:00
Gabor Juhos
e6af77a1c8
ar71xx: cleanup AR933X UART driver
...
SVN-Revision: 27222
2011-06-19 13:17:51 +00:00
Gabor Juhos
066e04d497
ar71xx: fix uart clock frequency for AR933X
...
SVN-Revision: 27221
2011-06-19 13:17:50 +00:00
Gabor Juhos
b58ede16a5
ar71xx: update early_printk code
...
SVN-Revision: 27165
2011-06-13 08:12:38 +00:00
Gabor Juhos
ae2cbfa1e8
ar71xx: select the internal antenna by default on the ZCN-1523H boards
...
SVN-Revision: 27101
2011-06-04 12:30:09 +00:00
Gabor Juhos
750af1522b
ar71xx: init external_reset for AR933X
...
SVN-Revision: 27083
2011-06-01 13:12:30 +00:00
Gabor Juhos
f0c7b93e5d
ar71xx: init get_mac_revision on AR9330 rev 1
...
SVN-Revision: 27081
2011-06-01 13:12:27 +00:00
Gabor Juhos
34ff32a6eb
ar71xx: export SoC revision
...
SVN-Revision: 27079
2011-06-01 13:12:24 +00:00
Felix Fietkau
4f06b8263a
ar71xx: add kernel support for the buffalo wzr-hp-ag300h
...
SVN-Revision: 27075
2011-06-01 02:23:26 +00:00
Gabor Juhos
f332dbd7be
ar71xx: add support for the AP121/AP121-MINI reference boards
...
SVN-Revision: 27067
2011-05-31 22:53:43 +00:00
Gabor Juhos
8beff081eb
ar71xx: register UART for the AR933X SoCs
...
SVN-Revision: 27066
2011-05-31 22:53:42 +00:00
Gabor Juhos
b460bc6f12
ar71xx: add serial driver for the AR933X UART
...
SVN-Revision: 27065
2011-05-31 22:53:40 +00:00
Gabor Juhos
c34e0cbc4c
ar71xx: add WMAC initialization code for the AR933X SoCs
...
SVN-Revision: 27064
2011-05-31 22:53:39 +00:00
Gabor Juhos
e8a0aaf9a2
ar71xx: add ethernet initialization for the AR933X SoCs
...
SVN-Revision: 27063
2011-05-31 22:53:37 +00:00
Gabor Juhos
e0a0f3796a
ar71xx: enable USB support for the AR933x SoCs
...
SVN-Revision: 27062
2011-05-31 22:53:36 +00:00
Gabor Juhos
677c80ee17
ar71xx: add AR933x specific glue for ar71xx_device{start,stop}
...
SVN-Revision: 27061
2011-05-31 22:53:35 +00:00
Gabor Juhos
7acbacab8c
ar71xx: add AR933x specific glue code for IRQ initialization
...
SVN-Revision: 27059
2011-05-31 22:53:32 +00:00
Gabor Juhos
e6fde61bec
ar71xx: don't register 8250 UART on the AR933x SoCs
...
SVN-Revision: 27058
2011-05-31 22:53:31 +00:00
Gabor Juhos
8f7541a044
ar71xx: enable GPIO support for the AR933x SoCs
...
SVN-Revision: 27057
2011-05-31 22:53:30 +00:00
Gabor Juhos
e11b9c8371
ar71xx: add AR933x specific frequency initialization code
...
SVN-Revision: 27056
2011-05-31 22:53:29 +00:00
Gabor Juhos
0bf4478d37
ar71xx: add AR933x specific early_printk support
...
SVN-Revision: 27055
2011-05-31 22:53:27 +00:00
Gabor Juhos
6b3ca9ef0b
ar71xx: add preliminary support for the Atheros AR933x SoCs
...
SVN-Revision: 27054
2011-05-31 22:53:26 +00:00
Gabor Juhos
be97e2a043
ar71xx: add SOC_AR{71XX,724X,913X,934X} config symbols
...
SVN-Revision: 27048
2011-05-31 22:53:19 +00:00
Gabor Juhos
5d5f72415e
ar71xx: initialize is_clk_25mhz field for AR9340 WMAC
...
SVN-Revision: 27045
2011-05-31 22:53:15 +00:00
Matteo Croce
17e257925f
ar71xx: don't probe the LAN PHY
...
SVN-Revision: 26924
2011-05-17 11:15:24 +00:00
Matteo Croce
2ea528d1d0
ar71xx: add link detection on Ubiquiti devices WAN port
...
SVN-Revision: 26891
2011-05-14 23:31:50 +00:00
Matteo Croce
99d1d4f795
ar71xx: cosmetic fixes
...
SVN-Revision: 26889
2011-05-14 23:08:00 +00:00
Gabor Juhos
9b5036a29d
ar71xx: populate LED3 on the JA76PF board
...
Patch-by: Cezary Jackiewicz <cezary@eko.one.pl>
SVN-Revision: 26862
2011-05-08 21:38:51 +00:00
Gabor Juhos
869f3cb718
ar71xx: remove superfluous fifo_cfg overrides
...
SVN-Revision: 26859
2011-05-08 21:38:46 +00:00
Gabor Juhos
c39e5b9360
ar71xx: override wmac device name for the AR934x SoCs
...
SVN-Revision: 26840
2011-05-07 09:23:32 +00:00
Felix Fietkau
cbc75a9c70
ar71xx: use the ar8316 switch driver on the PB92 board and add a matching default network config
...
SVN-Revision: 26779
2011-04-28 21:27:42 +00:00
Felix Fietkau
36aecb08b8
ar71xx: fix MDIO access on ar7242 (based on a patch by Jess Zhu)
...
SVN-Revision: 26777
2011-04-28 19:30:49 +00:00
Gabor Juhos
fa9f45f345
ar71xx: fix build error w/o CONFIG_PCI
...
SVN-Revision: 26606
2011-04-12 13:14:56 +00:00
Gabor Juhos
e193547733
ar71xx: use the gpio_keys_polled driver instead of gpio_buttons
...
SVN-Revision: 26603
2011-04-12 09:29:21 +00:00
Gabor Juhos
54ede24829
ar71xx: Add support for WZR-HP-G301NH
...
Add support for the Buffalo WZR-HP-G301NH. The only difference between it
and the WZR-HP-G00NH is that it has a RTL8366RB instead of a RTL8366S.
Since we don't do runtime detection of the switch, we need a separate
machine definition for it.
While we are at it, also rename the profile to reflect that it now is for
more than one device.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 26601
2011-04-12 09:29:10 +00:00
Gabor Juhos
ef4c1d49a6
ar71xx: merge dev-ar9{13,34}x-wmac into dev-ar9xxx-wmac
...
SVN-Revision: 26595
2011-04-11 17:37:08 +00:00
Gabor Juhos
4711dea8ff
ar71xx: fix AR934X_WMAC_SIZE
...
SVN-Revision: 26594
2011-04-11 17:37:03 +00:00
Gabor Juhos
8586e61b00
ar71xx: fix section mismatch
...
SVN-Revision: 26562
2011-04-09 18:47:55 +00:00
Gabor Juhos
a8bf5e3cdb
ar71xx: rename ar934x_ref_freq to ar71xx_ref_freq
...
Also initialize that for each SoC and print its value along with the
other frequencies.
SVN-Revision: 26561
2011-04-09 18:47:52 +00:00
Gabor Juhos
5573d6eb28
ar71xx: show the SoC type earlier
...
SVN-Revision: 26560
2011-04-09 18:47:50 +00:00
Gabor Juhos
ab4c3b3a1c
ar71xx: cleanup SoC detection code
...
SVN-Revision: 26559
2011-04-09 18:47:49 +00:00
Gabor Juhos
3310c70702
ar71xx: Fix mac address offset for AR934x
...
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
SVN-Revision: 26557
2011-04-09 18:47:42 +00:00
Gabor Juhos
8f889f9250
ar71xx: add DB120 board specific PCI initialization
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26523
2011-04-07 20:53:41 +00:00
Gabor Juhos
a0c3d49064
ar71xx: register WMAC device on the DB120 board
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26522
2011-04-07 20:53:37 +00:00
Gabor Juhos
428888faec
ar71xx: add support for the built-in WMAC of the AR934x
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26521
2011-04-07 20:53:34 +00:00
Gabor Juhos
14b42c44ec
ar71xx: add initial support for the Atheros DB120 board
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26518
2011-04-07 20:53:19 +00:00
Gabor Juhos
e4555809c7
ar71xx: enable PCI for the AR934[24] SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26515
2011-04-07 20:53:05 +00:00
Gabor Juhos
4f395745af
ar71xx: enable USB support for the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26514
2011-04-07 20:53:03 +00:00
Gabor Juhos
25693b4769
ar71xx: enable GPIO support for the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26513
2011-04-07 20:53:00 +00:00
Gabor Juhos
334a5ec36e
ar71xx: add AR934x specific glue for ar7100_device{start,stop}
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26512
2011-04-07 20:52:57 +00:00
Gabor Juhos
ccd3ebd309
ar71xx: add AR934x specific UART clock initialization
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26511
2011-04-07 20:52:53 +00:00
Gabor Juhos
91470edada
ar71xx: add AR934x specific glue for IRQ initialization
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26510
2011-04-07 20:52:49 +00:00
Gabor Juhos
3b209880bc
ar71xx: add initial support for the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
SVN-Revision: 26509
2011-04-07 20:52:45 +00:00
Felix Fietkau
98c78c13db
ar71xx: enable access to the WAN port PHY on a few devices, adds WAN link detection
...
SVN-Revision: 26394
2011-04-02 00:47:33 +00:00
Gabor Juhos
8eb616de82
ar71xx: add support for the TP-Link TL-WA901ND v2 board
...
Patch-by: Jonathan Benett <jbscience87@gmail.com>
SVN-Revision: 26119
2011-03-13 15:08:31 +00:00
Felix Fietkau
5bddd70a37
Revert "ar71xx: add missing gpio_set_debounce function" - wrong target
...
SVN-Revision: 25854
2011-03-03 16:21:23 +00:00
Felix Fietkau
57a14f4e15
ar71xx: add missing gpio_set_debounce function
...
SVN-Revision: 25848
2011-03-03 10:33:35 +00:00
Gabor Juhos
256169cbd0
ar71xx: add rtl8366s initvals for the DIR-825 board
...
SVN-Revision: 25121
2011-01-26 20:35:47 +00:00
Gabor Juhos
67c3e0bf7e
ar71xx: add support for the WNDR3700v2 board
...
Based on a patch by Mark Mentovai <mark@moxienet.com>
SVN-Revision: 25118
2011-01-26 20:35:42 +00:00
Jo-Philipp Wich
18ed5bca9b
fix null pointer access in mach-dir-600-a1.c machine setup ( #8671 )
...
SVN-Revision: 25043
2011-01-18 18:04:50 +00:00
Gabor Juhos
b67bbfe287
ar71xx: fix wlan LED on the TL-WR741 board
...
* Patch from #8630
SVN-Revision: 24963
2011-01-11 08:20:47 +00:00
Gabor Juhos
dd53effe15
ar71xx: fix wrong names of the WPS LED/button
...
Reported-by: Nuno Gonçalves
SVN-Revision: 24961
2011-01-10 18:15:47 +00:00
Gabor Juhos
0de8689b70
ar71xx: use spinlock in ar71xx_device_{start,stop}
...
SVN-Revision: 24929
2011-01-08 11:28:32 +00:00
Felix Fietkau
6acfae9379
ar71xx: enable ar7240 switch support on the UBNT NanoStation M Fixes broadcast frames on the second ethernet MAC
...
Signed-off-by: Alexander Couzens <lynxis@c-base.org>
SVN-Revision: 24723
2010-12-19 11:56:42 +00:00
Gabor Juhos
cafe08a1b2
ar71xx: remove stray semicolons
...
SVN-Revision: 24651
2010-12-17 17:57:20 +00:00
Gabor Juhos
01c76bf128
ar71xx: fix WLAN LEDs on the DIR-825 board
...
SVN-Revision: 24650
2010-12-17 17:10:21 +00:00
Gabor Juhos
c1d3a23d19
ar71xx: add helper function to setup ath9k LED/GPIO on the AP94 based boards
...
SVN-Revision: 24649
2010-12-17 17:10:19 +00:00
Gabor Juhos
8390b7dc9b
ar71xx: UBNT Secondary MAC address duplicate fix
...
There is Secondary MAC address duplicate problem with some UBNT
RouterStation and RouterStation Pro HW batches as Primary MAC addresses
are not increased by 2 per device in board data. Fix is to use 'Locally
Administrated bit' for Secondary MAC address instead of increasing
Primary MAC addresses by 1 which could overlap with other device
Primary MAC address.
Signed-off-by: Kestutis Barkauskas<keba@devint.net>
SVN-Revision: 24643
2010-12-17 17:10:01 +00:00
Gabor Juhos
a2a5598c00
ar71xx: add wlan led for the TL-WR941ND
...
SVN-Revision: 24612
2010-12-15 19:55:50 +00:00
Gabor Juhos
e421d2575f
ar71xx: UBNT M-Series MAC address fix
...
UBNT M-Series devices have 2 MAC addresses in board data.
Fix is to use both entries from board data instead of one entry.
Signed-off-by: Kestutis Barkauskas<keba@devint.net>
SVN-Revision: 24611
2010-12-15 19:55:47 +00:00
Gabor Juhos
6c1ace2f28
ar71xx: init the LED pin for ath9k on the TL-MR3[24]20 boards
...
SVN-Revision: 24569
2010-12-14 18:01:04 +00:00
Gabor Juhos
a7750dae90
ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards
...
SVN-Revision: 24568
2010-12-14 18:01:00 +00:00
Gabor Juhos
9f38f9bf76
ar71xx: add missing files for the JA76PF board
...
SVN-Revision: 24444
2010-12-10 19:55:28 +00:00
Gabor Juhos
b680f088ba
ar71xx: add support for the jjPlus JA79PF
...
Patch-by: Cezary Jackiewicz
SVN-Revision: 24440
2010-12-10 17:57:51 +00:00
Gabor Juhos
5b0c83edd9
ar71xx: add support for the TP-LINK TL-MR3220 v1 board
...
SVN-Revision: 24439
2010-12-10 17:57:48 +00:00
Felix Fietkau
8067f3f3cc
ar71xx: work around a PCI controller bug which causes reads to the PCI_COMMAND register to return bogus values - properly fixes ath9k module reload issues
...
SVN-Revision: 24236
2010-12-04 01:32:15 +00:00
Gabor Juhos
9971dfe059
ar71xx: D-Link DIR-825 B1 eth1 MAC address is garbage
...
r22700 contained a copy-and-paste error that set eth0's MAC address
twice and never set eth1's.
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 24036
2010-11-19 07:24:00 +00:00
Gabor Juhos
f4d5c885e4
ar71xx: return statements does not need parenthesis
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23979
2010-11-12 18:51:38 +00:00
Gabor Juhos
e244e1c7cd
ar71xx: fix inline attribute location
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23978
2010-11-12 18:51:21 +00:00
Gabor Juhos
acd8ad4de5
ar71xx: wrap long lines
...
(build errors has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23977
2010-11-12 18:51:04 +00:00
Gabor Juhos
eef802855a
ar71xx: fix trailing statements location
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23976
2010-11-12 18:50:47 +00:00
Gabor Juhos
500fac1735
ar71xx: fix whitespaces nits
...
(build error has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23975
2010-11-12 18:50:29 +00:00
Claudio Mignanti
20b2a4417a
Add support for Ubiquiti UniFi AP
...
SVN-Revision: 23904
2010-11-06 21:08:48 +00:00
Felix Fietkau
91b6c63adc
ar71xx: Set eth1 MAC address from EEPROM for WNDR3700
...
The WNDR3700's art/caldata partition contains three MAC addresses at
offsets 0, 6, and 12, used for eth0/wlan0 (shared), eth1, and wlan1,
respectively. The existing code configures eth1's MAC address by adding
1 to eth0's instead of using the value stored in the EEPROM. This patch
causes the stored value to be used directly. (On my WNDR3700s, the three
stored addresses are all sequential anyway.)
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 23876
2010-11-04 18:46:07 +00:00
Felix Fietkau
fc28e1cd7d
ar71xx: fix the wndr3700 antenna group setting for the first wireless chip (thx, Mark Mentovai)
...
SVN-Revision: 23875
2010-11-04 18:39:49 +00:00
Felix Fietkau
b4e2c09b46
ar71xx: improve the wndr3700 quirks - move most of the code out of ath9k and instead allow the platform device to specify gpio overrides - fixes 5ghz signal strength issues
...
SVN-Revision: 23822
2010-11-03 14:55:53 +00:00
Felix Fietkau
9e2d1a194d
ar71xx: use the new ar7240 switch driver for tl-wa901nd as well
...
SVN-Revision: 23576
2010-10-21 18:42:22 +00:00
Jo-Philipp Wich
a680385396
remove remaining references to dev-ap91-eth.h, patch by Stijn Tintel
...
SVN-Revision: 23451
2010-10-14 23:08:10 +00:00
Felix Fietkau
fc035b3cb6
ar71xx: remove dev-ap91-eth.c. switch its only user (RB-750) to the new switch driver
...
SVN-Revision: 23439
2010-10-14 13:41:42 +00:00