Gabor Juhos
c7cf7f306b
ar71xx: ag71xx: make switch register access atomic
...
Reading of the PHY registers occasionally returns with bogus values
under heavy load. This misleads the PHY driver and thus causes false
link/speed change notifications which leads to performance loss.
This is easily noticable during an iperf session:
...
[ 3] 52.0-53.0 sec 11.3 MBytes 94.4 Mbits/sec
[ 3] 53.0-54.0 sec 11.4 MBytes 95.4 Mbits/sec
eth1: link down
br-lan: port 2(eth1) entering forwarding state
eth1: link up (100Mbps/Full duplex)
br-lan: port 2(eth1) entering forwarding state
br-lan: port 2(eth1) entering forwarding state
[ 3] 54.0-55.0 sec 6.75 MBytes 56.6 Mbits/sec
[ 3] 55.0-56.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 56.0-57.0 sec 10.5 MBytes 88.1 Mbits/sec
...
[ 3] 169.0-170.0 sec 11.4 MBytes 95.4 Mbits/sec
[ 3] 170.0-171.0 sec 11.4 MBytes 95.4 Mbits/sec
eth1: link up (10Mbps/Half duplex)
[ 3] 171.0-172.0 sec 7.63 MBytes 64.0 Mbits/sec
[ 3] 172.0-173.0 sec 9.38 MBytes 78.6 Mbits/sec
eth1: link up (100Mbps/Full duplex)
[ 3] 173.0-174.0 sec 11.3 MBytes 94.4 Mbits/sec
[ 3] 174.0-175.0 sec 11.4 MBytes 95.4 Mbits/sec
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26856 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 16:32:53 +00:00
Gabor Juhos
2d8d374be2
ar71xx: ag71xx: fix section mismatch warnings
...
The function __devinit ag71xx_probe() references
a function __devexit ag71xx_phy_disconnect().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
ag71xx_phy_disconnect() so it may be used outside an exit section.
The function ag71xx_phy_disconnect() references a function in an exit
section.
Often the function ag71xx_ar7240_cleanup() has valid usage outside the
exit section
and the fix is to remove the __devexit annotation of
ag71xx_ar7240_cleanup.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 13:30:36 +00:00
Gabor Juhos
0e24dd9f57
ar71xx: ag71xx: fix build error if debugfs is enabled
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26854 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-08 13:30:26 +00:00
Gabor Juhos
6373429682
ar71xx: ag71xx: add debugfs entry for [rt]x_ring
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:34 +00:00
Gabor Juhos
c37636c223
ar71xx: ag71xx: add timestamps to ag71xx_buf
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26844 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:28 +00:00
Gabor Juhos
3c6c9f5866
ar71xx: ag71xx: use dynamically allocated buffer for napi_stats
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26843 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:26 +00:00
Gabor Juhos
24b135c75c
ar71xx: ag71xx: use debugfs_remove_recursive
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26842 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 12:40:25 +00:00
Gabor Juhos
a0ea29bf0a
ar71xx: override wmac device name for the AR934x SoCs
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26840 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-07 09:23:32 +00:00
Felix Fietkau
bb19fcc01c
ar71xx: use the ar8316 switch driver on the PB92 board and add a matching default network config
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26779 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-28 21:27:42 +00:00
Felix Fietkau
46b7759b8d
ar71xx: fix MDIO access on ar7242 (based on a patch by Jess Zhu)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26777 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-28 19:30:49 +00:00
Gabor Juhos
1a56f54c77
ar71xx: fix build error w/o CONFIG_PCI
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26606 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 13:14:56 +00:00
Gabor Juhos
1fa235abdc
ar71xx: use the gpio_keys_polled driver instead of gpio_buttons
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26603 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 09:29:21 +00:00
Gabor Juhos
fa7cdb26c4
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26601 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 09:29:10 +00:00
Gabor Juhos
6f6bb8acd1
ar71xx: merge dev-ar9{13,34}x-wmac into dev-ar9xxx-wmac
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-11 17:37:08 +00:00
Gabor Juhos
f529b06394
ar71xx: fix AR934X_WMAC_SIZE
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-11 17:37:03 +00:00
Gabor Juhos
9775bb3be8
ar71xx: fix section mismatch
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:55 +00:00
Gabor Juhos
3c552ec2b6
ar71xx: rename ar934x_ref_freq to ar71xx_ref_freq
...
Also initialize that for each SoC and print its value along with the
other frequencies.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26561 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:52 +00:00
Gabor Juhos
dad64096e3
ar71xx: show the SoC type earlier
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26560 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:50 +00:00
Gabor Juhos
ee3fee89f3
ar71xx: cleanup SoC detection code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:49 +00:00
Gabor Juhos
89aecaca28
ar71xx: Fix mac address offset for AR934x
...
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-09 18:47:42 +00:00
Gabor Juhos
7a57b10459
ar71xx: add DB120 board specific PCI initialization
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:41 +00:00
Gabor Juhos
3347a1121d
ar71xx: register WMAC device on the DB120 board
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:37 +00:00
Gabor Juhos
0e4365af13
ar71xx: add support for the built-in WMAC of the AR934x
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26521 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:34 +00:00
Gabor Juhos
65582077b0
ar71xx: add initial support for the Atheros DB120 board
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26518 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:19 +00:00
Gabor Juhos
bde7320cf0
ar71xx: add support for the watchdog of the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26516 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:10 +00:00
Gabor Juhos
ec67f51a41
ar71xx: enable PCI for the AR934[24] SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26515 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:05 +00:00
Gabor Juhos
f5341a4236
ar71xx: enable USB support for the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26514 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:03 +00:00
Gabor Juhos
912c77a418
ar71xx: enable GPIO support for the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26513 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:53:00 +00:00
Gabor Juhos
6733c6b326
ar71xx: add AR934x specific glue for ar7100_device{start,stop}
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26512 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:57 +00:00
Gabor Juhos
189748139d
ar71xx: add AR934x specific UART clock initialization
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26511 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:53 +00:00
Gabor Juhos
6debe4786e
ar71xx: add AR934x specific glue for IRQ initialization
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26510 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:49 +00:00
Gabor Juhos
68f6f6c033
ar71xx: add initial support for the AR934x SoCs
...
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26509 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-07 20:52:45 +00:00
Felix Fietkau
48ae2fe4f6
ar71xx: enable access to the WAN port PHY on a few devices, adds WAN link detection
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26394 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 00:47:33 +00:00
Felix Fietkau
d8962e23e4
ar71xx: only allow internal access to the ar7240 switch, export the MDIO bus behind the switch instead
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26393 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 00:47:29 +00:00
Felix Fietkau
9e57d0f14c
ar71xx: frequent ethernet mac resets upset the MDIO bus on ar7240, so do not run them on every device open, only on tx timeouts
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 00:47:25 +00:00
Gabor Juhos
84f2d0b280
ar71xx: add support for the TP-Link TL-WA901ND v2 board
...
Patch-by: Jonathan Benett <jbscience87@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26119 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-13 15:08:31 +00:00
Felix Fietkau
250567442f
Revert "ar71xx: add missing gpio_set_debounce function" - wrong target
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25854 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-03 16:21:23 +00:00
Felix Fietkau
5f776e9507
ar71xx: add missing gpio_set_debounce function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25848 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-03 10:33:35 +00:00
Gabor Juhos
dcc5870b0c
ar71xx: add rtl8366s initvals for the DIR-825 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25121 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 20:35:47 +00:00
Gabor Juhos
1a425b01c1
ar71xx: add support for the WNDR3700v2 board
...
Based on a patch by Mark Mentovai <mark@moxienet.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25118 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 20:35:42 +00:00
Jo-Philipp Wich
10d78ebc85
[ar71xx] fix null pointer access in mach-dir-600-a1.c machine setup ( #8671 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25043 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-18 18:04:50 +00:00
Gabor Juhos
cfddb1fcbb
ar71xx: fix wlan LED on the TL-WR741 board
...
* Patch from #8630
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24963 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-11 08:20:47 +00:00
Gabor Juhos
cea9ea6093
ar71xx: fix wrong names of the WPS LED/button
...
Reported-by: Nuno Gonçalves
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24961 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-10 18:15:47 +00:00
Gabor Juhos
24c0a39451
ar71xx: use gpio_*_cansleep calls in the rb4xx NAND driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24944 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-09 09:29:45 +00:00
Gabor Juhos
537a37ad5b
ar71xx: use spinlock in ar71xx_device_{start,stop}
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24929 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-08 11:28:32 +00:00
Felix Fietkau
474f13fbc8
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24723 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-19 11:56:42 +00:00
Gabor Juhos
88b208c92e
ar71xx: remove stray semicolons
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24651 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-17 17:57:20 +00:00
Gabor Juhos
58792f7715
ar71xx: fix WLAN LEDs on the DIR-825 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-17 17:10:21 +00:00
Gabor Juhos
f6cb39e467
ar71xx: add helper function to setup ath9k LED/GPIO on the AP94 based boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24649 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-17 17:10:19 +00:00
Gabor Juhos
cfef002928
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-17 17:10:01 +00:00
Gabor Juhos
5529e6f9b3
ar71xx: add wlan led for the TL-WR941ND
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24612 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-15 19:55:50 +00:00
Gabor Juhos
8d281ee209
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24611 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-15 19:55:47 +00:00
Gabor Juhos
4d2ad41bd6
ar71xx: init the LED pin for ath9k on the TL-MR3[24]20 boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-14 18:01:04 +00:00
Gabor Juhos
e9f3cd582e
ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-14 18:01:00 +00:00
Gabor Juhos
c08927d555
ar71xx: add missing files for the JA76PF board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24444 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-10 19:55:28 +00:00
Gabor Juhos
5d0e74a393
ar71xx: add support for the jjPlus JA79PF
...
Patch-by: Cezary Jackiewicz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24440 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-10 17:57:51 +00:00
Gabor Juhos
11f383a3dc
ar71xx: add support for the TP-LINK TL-MR3220 v1 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-10 17:57:48 +00:00
Felix Fietkau
0b2bc8bac8
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
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24236 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-04 01:32:15 +00:00
Gabor Juhos
08b2d2d413
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24036 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-19 07:24:00 +00:00
Gabor Juhos
b98fe2a932
ar71xx: drivers/ar71xx_wdt: fix size argument passed to copy_to_user()
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23983 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:52:45 +00:00
Gabor Juhos
8a30b10bb8
ar71xx: drivers/ag71xx: remove deprecated usage of IRQF_SAMPLE_RANDOM
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23982 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:52:28 +00:00
Gabor Juhos
6a833a66ca
ar71xx: use pr_* functions in drivers
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23981 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:52:12 +00:00
Gabor Juhos
68ef19ebb3
ar71xx: drivers/rb4xx_nand: remove C++ comment usage
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23980 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:51:55 +00:00
Gabor Juhos
b61766aa30
ar71xx: return statements does not need parenthesis
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23979 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:51:38 +00:00
Gabor Juhos
b94e0b9e2f
ar71xx: fix inline attribute location
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23978 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:51:21 +00:00
Gabor Juhos
ab91049eb3
ar71xx: wrap long lines
...
(build errors has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23977 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:51:04 +00:00
Gabor Juhos
cea635ab15
ar71xx: fix trailing statements location
...
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23976 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:50:47 +00:00
Gabor Juhos
7832529d3f
ar71xx: fix whitespaces nits
...
(build error has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23975 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-12 18:50:29 +00:00
Claudio Mignanti
73d6e3b181
[ar71xx] Add support for Ubiquiti UniFi AP
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23904 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-06 21:08:48 +00:00
Felix Fietkau
90ba44f084
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23876 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-04 18:46:07 +00:00
Felix Fietkau
64d6dd0f2c
ar71xx: fix the wndr3700 antenna group setting for the first wireless chip (thx, Mark Mentovai)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23875 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-04 18:39:49 +00:00
Felix Fietkau
03d213eff1
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
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23822 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 14:55:53 +00:00
Felix Fietkau
9286ca91af
ar71xx: the ar7240 dsa driver is no longer used, remove it.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23577 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-21 18:42:28 +00:00
Felix Fietkau
bcfcff1c16
ar71xx: use the new ar7240 switch driver for tl-wa901nd as well
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23576 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-21 18:42:22 +00:00
Felix Fietkau
6da874b3a8
ar71xx: fix more section mismatches
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23575 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-21 18:42:16 +00:00
Felix Fietkau
c5cabb4673
ar71xx: improve 2.6.36 compatibility. also, instead of adding a forward port patch to the 2.6.36 patches, add a backport patch to 2.6.32
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23574 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-21 18:42:11 +00:00
Jo-Philipp Wich
c94e841075
[ar71xx] remove remaining references to dev-ap91-eth.h, patch by Stijn Tintel
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23451 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-14 23:08:10 +00:00
Felix Fietkau
f7bde0d88e
ar71xx: remove dev-ap91-eth.c. switch its only user (RB-750) to the new switch driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23439 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-14 13:41:42 +00:00
Felix Fietkau
1a956f1921
ar71xx: use the new ar7240 switch driver on the DIR-600-A1 as well ( fixes #7563 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-14 00:14:59 +00:00
Felix Fietkau
ae91389b77
ar71xx: increase rb4xx nand kernel partition size (patch by danimo)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-07 14:27:34 +00:00
Gabor Juhos
ccc0817067
ar71xx: initial support for jjPlus JWAP003
...
Patch-by: Cezary Jackiewicz <cezary@eko.one.pl>
(the GPIODEV code has been removed, the sysfs interface
can be used to control the GPIO lines instead - juhosg)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-01 07:09:29 +00:00
Felix Fietkau
579d2b4cdb
AP96: Fix LAN/WAN setup
...
LAN (eth0) is behind a switch and the fixed speed/duplex was
supposed to be for it, not WAN (eth1).
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23147 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-28 22:55:14 +00:00
Gabor Juhos
4f50f84bbe
ar71xx: add support for the TL-MR3420 v1 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-27 14:53:59 +00:00
Gabor Juhos
eaefe39218
ar71xx: AR724[12] requires different USB setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-27 14:53:57 +00:00
Gabor Juhos
2eaba1f7c4
ar71xx: use the MDIO interface of the 2nd MAC on the ar7241
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23132 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-27 14:53:49 +00:00
Gabor Juhos
efdab2d507
ar71xx: move ath9k specific PCI fixup into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23131 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-27 14:53:46 +00:00
Gabor Juhos
77b81718cb
ar71xx: use different address in ap91_pci_fixup for the AR724[012] SoCs
...
With this change ath9k can handle the wireless chip on the TL-WR841N v7
board which is based on the AR7241 SoC.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23130 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-27 14:53:43 +00:00
Felix Fietkau
06d41d3a2d
Add support for Atheros AP96 reference board
...
This is still preliminary and not really tested much. Anyway, this
version seems to be enough to get both wired and wireless
interfaces working. Buttons and leds are also working.
mach-ap96.c is based on mach-wndr3700.c.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23125 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-27 08:59:53 +00:00
Felix Fietkau
6c101610bf
ar71xx: select AR71XX_DEV_DSA when AR71XX_DEV_AP91_ETH is selected, do not select AR71XX_DEV_AP91_ETH for TL-WA901ND and TL-WR741ND
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-05 16:17:06 +00:00
Gabor Juhos
cf15bf1c2b
ar71xx: add support for the Zcomax ZCN-1523H-2-8/5-16 boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22882 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-03 18:14:37 +00:00
Gabor Juhos
21ef5a475e
ar71xx: rewrite SPI drivers for the RB4xx boards
...
* add a new SPI controller driver
* add SPI driver for the CPLD chip
* convert the NAND driver
* enable the mikroSD slot
* enable more LEDs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22863 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-31 20:13:47 +00:00
Gabor Juhos
019a16cdd1
ar71xx: change mac address initialization
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22700 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-18 16:00:28 +00:00
Felix Fietkau
f622088030
ar71xx: add a new driver for the ar7240 switch using swconfig.
...
hooks directly into the ethernet driver, as MAC resets also require switch reinitializations and the switch is part of the cpu core anyway
switch only tl-wr741nd (and other devices using this board file, such as tl-wr841nd) over to using this by default, as other devices are still untested
fixes #7563
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-16 19:21:57 +00:00
Felix Fietkau
9c66f092fd
ar71xx: remove the fifo cfg overrides for the ap91 ethernet code - these values have been wrong on every single device i've tested, falling back to the atheros values seems to be the right thing to do
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22401 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-27 21:04:43 +00:00
Felix Fietkau
40134c73fc
ar71xx: add support for the tp-link tl-wa901nd devices (patch by Pieter "Fate" Hollants, from #7528 , without the ethernet fifo cfg values)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22353 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-22 12:37:44 +00:00
Felix Fietkau
7a9d13a750
ar71xx: set default values for the fifo cfg registers on AR724x
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22303 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-20 01:54:11 +00:00
Gabor Juhos
e0afcb82f9
generic: move ath5k_platform.h from ar71xx to generic files
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22189 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 07:36:58 +00:00
Gabor Juhos
20a0bba898
ar71xx: in-flash macs and eeprom for mach-eap7660d
...
This adds in-flash mac-addresses and calibration data for the Senao
EAP7660D board.
Signed-off-by: Daniel Golle <daniel.golle@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22187 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 07:36:52 +00:00
Felix Fietkau
bf6dfd437d
ar71xx: only reinit the ethernet MAC at .open() on ar724x for now, until we've figured out what part of it causes the issue described in #7563
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-06 12:40:07 +00:00
Felix Fietkau
e12c89f637
ag71xx: reset the hardware during open(), this improves recovery from tx timeouts on ar724x considerably
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-04 02:15:08 +00:00
Felix Fietkau
d7965cb882
ag71xx: fix a memory corruption bug that happens if you flood the interface with packets while it's being brought down
...
fixes boot time crashes under load reported by matteo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-04 01:31:33 +00:00
Gabor Juhos
ec990bbb44
ar71xx: fix leds-rb750 build failure on 2.6.34
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22016 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-01 14:49:06 +00:00
Gabor Juhos
a069981ab9
ar71xx: add support for the Senao EAP7660D board
...
This patch adds support for the Senao EAP7660D board to trunk.
Signed-off-by: Daniel Golle <daniel.golle@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-18 16:22:05 +00:00
Gabor Juhos
8278f43ea1
ar71xx: avoid duplicated 'board' parameter in kernel command line
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21805 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-14 20:02:44 +00:00
Gabor Juhos
122dca56e5
ar71xx: nuke AR71XX_MACH_UBNT_AR71XX machtype
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21764 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-12 13:20:39 +00:00
Gabor Juhos
1743244300
ar71xx: fix phy_mask for the RB450
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-09 19:48:35 +00:00
Gabor Juhos
c876c55817
ar71xx: fix build error in the rb{4xx,750}_nand drivers on 2.6.34/35
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21736 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-09 15:31:34 +00:00
Gabor Juhos
fd62d6e97a
ar71xx: fix phy_mask on the RB433 for the IP17xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21728 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-08 20:19:18 +00:00
Gabor Juhos
e61a8b2e88
ar71xx: fix 2.6.34 build errors
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21698 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-07 09:18:13 +00:00
Gabor Juhos
0eea4b85a2
ar71xx: fix nbg460n mtd partitions
...
This fixes the NBG460N/550N/550NH mtd partitions.
Signed-off-by: Michael Kurz <michi.kurz@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21443 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-14 08:37:58 +00:00
Gabor Juhos
503f1bafb9
ar71xx: remove config partition from the mtd map on the MZK-W300NH board
...
This space can be used to extend the rootfs_data partition.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21173 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-26 18:28:04 +00:00
Gabor Juhos
ad82075821
ar71xx: fix firmware partition size on the MZK-W04NU board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-26 18:28:01 +00:00
Felix Fietkau
fe2c15b6a5
ag71xx: remove rx alignment code for small packets, it seems to break ipv6 for some reason ( fixes #7236 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21166 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-26 16:39:13 +00:00
Felix Fietkau
ebfdeeb267
ar71xx: fix a wifi card stability issue
...
when we receive a pci/ahb interrupt, we need to flush pending data for dma
from the device, otherwise the tx path may get stuck if the completion flag
of the dma descriptor is not updated at the time the tx interrupt arrives.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21143 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-24 17:24:11 +00:00
Gabor Juhos
0e3f38c6e1
ar71xx: reduce button threshold value on the NBG460 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21076 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-21 19:07:23 +00:00
Gabor Juhos
21d31612c3
ar71xx: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-21 19:07:19 +00:00
Gabor Juhos
b6bd0ef667
ar71xx: adding support for zyxel nbg460n/550n/550nh boards
...
This patch adds support for the zyxel nbg460n/550n/550nh routers.
Currently this only works if a second stage bootloader is also flashed,
as the used switch needs extra initialization.
Signed-off-by: Michael Kurz <michi.kurz@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20990 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-18 16:24:12 +00:00
Felix Fietkau
4593e471af
ar71xx: fix up alignment handling
...
- on ar724x, rx buffers can be aligned with an offset of 2, which keeps the ip header aligned
- alignment offset is only added if the ar8216 workaround is not active and the phy driver does not advertise its own packet alignment
- ar71xx and ar91xx can not handle rx alignment offsets, however taking a hit on unaligned exceptions seems to have less overhead than re-aligning the data for large packets
- use memmove to re-align small packets, if necessary
tested on ar9132, ar7240 and ar7242 based devices without ar8216 headers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-15 23:31:17 +00:00
Gabor Juhos
00b93e1214
ar71xx: update phy masks for the Planex boards
...
This avoids probing of the AR8216 chip on the eth0 interface.
Cc: backfire@openwrt.org
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20754 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-09 08:40:14 +00:00
Gabor Juhos
da7993d9f8
ar71xx: make the AR8216 driver usable on the TEW-632BRP/DIR-615-Cx boards
...
Cc: backfire@openwrt.org
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20752 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-09 08:40:09 +00:00
Gabor Juhos
74f5972ab6
ar71xx: ag71xx: avoid unalinged accesses when using the phy specific receive functions
...
Cc: backfire@openwrt.org
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20751 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-09 08:40:06 +00:00
Gabor Juhos
a325986fbb
ar71xx: ag71xx: call the phy driver's netif_receive_skb()
...
Ag71xx needs to call the phy's netif_receive_skb() to allow phy drivers
to mangle rx packets. This patch fixes it.
This fixes the header mangling of the AR8216 driver.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
Cc:backfire@openwrt.org
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20750 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-09 08:38:46 +00:00
Felix Fietkau
6f4f5e06bc
ar71xx: fix ethernet on final pb92 board (previous value was based on a preliminary version)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-06 00:12:50 +00:00
Jo-Philipp Wich
fd27f8a1d9
[PATCH 1/2] Add support for the ar8316 switch.
...
This patch enhances the ar8216 driver with ar8316 support and fixes some minor
issues with the ar8216 driver itself. It should not break anything, but isn't
tested on ar8216 devices.
[PATCH 2/2] ar71xx: Add the ar8316 driver to rs pro/rb-450g.
Add the ar8216 driver to the ar71xx target, and add network
configurations for the RouterStation Pro and the RouterBoard RB-450G.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-05 23:03:16 +00:00
Gabor Juhos
0f9fc9edba
ar71xx: fix broken LAN ports on the boards with AR8216 switch ( closes #7024 )
...
* cc: backfire@openwrt.org
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 13:59:08 +00:00
Felix Fietkau
aba9d83bea
ar71xx: fix pci on ar7241/ar7242
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20530 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 00:36:37 +00:00
Felix Fietkau
159a5e0667
ar71xx: fix the wan port on pb92
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20529 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 00:36:04 +00:00
Felix Fietkau
19f9c43c95
ar71xx: reset the mdio bus on ar7241/ar7242
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20528 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 00:35:44 +00:00
Gabor Juhos
79c06a8dc9
ar71xx: update image generation and trx header parsing for the WRT160NL
...
* patch by Bernhard Loos
* note: trailing whitespaces has been removed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20525 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 17:38:36 +00:00
Gabor Juhos
55a949e0f7
ar71xx: ag71xx: copy received packet to avoid unaligned access in the IP stack
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20506 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 13:05:27 +00:00
Gabor Juhos
9fb9eaa98e
ar71xx: ag71xx: introduce ag71xx_has_ar8216() helper
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20505 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 13:05:24 +00:00
Gabor Juhos
8db8756bc6
ar71xx: ag71xx: reorganize ag71xx_rx_packet function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20504 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 13:05:20 +00:00
Gabor Juhos
1f415dbfe9
ar71xx: ag71xx: Add netpoll support
...
This patch adds support for polling interrupts, used by
netconsole and the likes.
Tested on d-link dir-615 C1 using netconsole.
Signed-off-by: Pat Erley <pat-lkml@erley.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20503 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27 13:05:17 +00:00
Felix Fietkau
77ed8000f6
ar71xx: add basic kernel support for pb92
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20495 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 22:35:52 +00:00
Felix Fietkau
ef287bc6c5
ar71xx: add support for ar7241 and ar7242
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20494 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 22:35:41 +00:00
Felix Fietkau
ecd4ce5546
ar71xx: fix pci link detection for ar724x
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20493 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 22:35:27 +00:00
Andy Boyett
94f7c6cc52
[ar71xx] wrt400n: lan ports don't need the ar8216 workaround
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 19:09:11 +00:00
Gabor Juhos
e3725ff115
ar71xx: use the RB411 setup for the RB411U
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20359 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-21 18:16:24 +00:00
Gabor Juhos
41b8423dc1
ar71xx: change PHY select logic, and update phy_masks
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20358 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-21 18:16:07 +00:00
Gabor Juhos
bba572559e
ar71xx: check returned value of ioremap in ar71xx_pcibios_setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20288 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:19:19 +00:00
Gabor Juhos
9fc4c21a43
ar71xx: optimize register access in ar71xx_pci.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20287 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:19:16 +00:00
Gabor Juhos
85332413ff
ar71xx: optimize register access in irq.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20286 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:19:13 +00:00
Gabor Juhos
a11dc0416a
ar71xx: optimize register access in ar724x_pci.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20285 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:19:10 +00:00
Gabor Juhos
c2ef5274ac
ar71xx: introduce global ar724x_pci_ctrl_base variable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:19:07 +00:00
Gabor Juhos
3c75de37a8
ar71xx: add error handling to ar724x_pcibios_init
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20283 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:19:03 +00:00
Gabor Juhos
11f888b68e
ar71xx: move ar724x_pci_* helpers to ar724x-pci.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20282 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:18:58 +00:00
Gabor Juhos
72ce25d04e
ar71xx: move PCI intterupt handling code to pci-ar7{1xx,24x}.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20281 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:18:54 +00:00
Gabor Juhos
27cb794c04
ar71xx: use set_irq_chained_handler for the PCI IRQs
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20280 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:18:50 +00:00
Gabor Juhos
a63b2e9e7d
ar71xx: merge AR71XX_IRQ_CPU_{PCI,WMAC} into AR71XX_IRQ_CPU_IP2
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:18:46 +00:00
Gabor Juhos
ed2826b023
ar71xx: remove unnecessary includes from setup.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:18:41 +00:00
Gabor Juhos
afdd5b2423
ar71xx: fix ar724x_pci_wr{,_nf} helpers
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20277 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 19:18:36 +00:00
Gabor Juhos
9de158aa40
ar71xx: fix semantics error in the __ar71xx_gpio_get_value function.
...
* Thanks to Pascal Dornier
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20247 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-16 19:53:25 +00:00
Gabor Juhos
f29068f97c
ar71xx: optimize GPIO code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-16 14:02:31 +00:00
Felix Fietkau
3e2f215c02
ar71xx: fix oprofile support
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20150 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-11 18:48:57 +00:00
Gabor Juhos
060132c3b8
ar71xx: override lan port names on the RB750
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 18:05:48 +00:00
Gabor Juhos
f950ef6dca
ar71xx: allow overriding of the lan port names on AP91 based boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 18:05:45 +00:00
Gabor Juhos
cddeb0d7ed
ar71xx: fix a typo in the ar7240 dsa driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20093 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 18:05:39 +00:00
Gabor Juhos
0edfff7426
ar71xx: ag71xx: fix MAC address setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 18:05:36 +00:00
Gabor Juhos
961db2b910
ar71xx: add NAND driver for the RB750
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 12:10:23 +00:00
Gabor Juhos
d980f74b2c
ar71xx: add ar71xx_gpio_function_setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 12:10:14 +00:00
Gabor Juhos
0d9be72129
ar71xx: add LED driver for the RB750
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20051 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 12:10:01 +00:00
Gabor Juhos
a950c66e0d
ar71xx: add latch handling code for the RB750
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20050 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 12:09:49 +00:00
Gabor Juhos
7c352366fa
ar71xx: add preliminary support for the RouterBOARD 750
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20029 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-07 05:41:01 +00:00
Gabor Juhos
1b24ba1b73
ar71xx: rename mach-rb-4xx.c to mach-rb4xx.c, and change Kconfig symbol
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20027 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-07 05:40:56 +00:00
Gabor Juhos
4403a25f77
ar71xx: don't init PCI irqs on the AR7240 if the PCIe subsystem are in reset
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20007 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:29:29 +00:00
Gabor Juhos
ed0bf18b3a
ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlock
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20004 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:29:22 +00:00
Gabor Juhos
8fe8275c5c
ar71xx: ag71xx: move link update function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20003 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:29:18 +00:00
Gabor Juhos
c154c604c8
ar71xx: ag71xx: don't use dev->trans_start
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20002 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:29:14 +00:00
Gabor Juhos
cdf9393b64
ar71xx: ag71xx: use dma_unmap_single to unmap frames
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20001 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:29:10 +00:00
Gabor Juhos
0000020d9e
ar71xx: ag71xx: use correct device pointer for dma_map_single
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 13:36:18 +00:00
Gabor Juhos
be88103c82
ar71xx: ag71xx: don't use virt_to_phys
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19950 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 13:36:15 +00:00
Gabor Juhos
a6e21ff78d
ar71xx: ag71xx: simplify register access functions
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19949 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 13:36:12 +00:00
Gabor Juhos
cae649f01b
ar71xx: ag71xx: use NETDEV_TX_OK
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19948 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 13:36:09 +00:00
Gabor Juhos
df9c2ca437
ar71xx: use COMMAND_LINE_SIZE
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 13:36:04 +00:00
Gabor Juhos
f25b382a24
ar71xx: register DSA switch for the AP91 based boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19928 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-01 07:34:43 +00:00
Gabor Juhos
b21c16b94b
ar71xx: add DSA driver for the AR7240 built-in ethernet switch
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19927 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-01 07:34:41 +00:00
Gabor Juhos
0101bf0280
ar71xx: add QinQ tagging format for the DSA driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19926 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-01 07:34:37 +00:00
Gabor Juhos
60658ae399
ar71xx: register RTL8366RB switch on the TL-WR1043NB board
...
Thanks to Andrew Tarabaras.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19839 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 13:39:18 +00:00
Gabor Juhos
6dcdbc894c
ar71xx: fix pll value for the eth0 interface on the TL-WR1043ND board
...
Thanks to Andrew Tarabaras
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 13:38:51 +00:00
Gabor Juhos
51caf0277d
ar71xx: enable TX/RX flow control on the AR7240
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19832 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 13:38:41 +00:00
Gabor Juhos
afed2177ff
ar71xx: fix mac addresses on the DIR-600 rev. A1 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19752 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 11:52:42 +00:00
Gabor Juhos
1c163012cd
ar71xx: fix wireless mac address on the TL-WR741ND
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19751 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 11:52:39 +00:00
Gabor Juhos
7d54eb490a
ar71xx: move AP91 specific ethernet initialization into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19750 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 11:52:36 +00:00
Gabor Juhos
299fec26a9
ar71xx: add missing GPIO LED for the WNDR3700 board
...
Signed-off-by: Scott Dudley <spmsink@hotmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19744 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 11:52:19 +00:00
Gabor Juhos
9ddc13caf9
ar71xx: fix polarity of GPIO buttons on the WNDR3700 board
...
Signed-off-by: Scott Dudley <spmsink@hotmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 11:52:15 +00:00
Gabor Juhos
01d66231e3
ar71xx: fix WLAN mac address on the TL-WR1043ND
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19573 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-10 20:01:20 +00:00
Gabor Juhos
4f9f195c32
ar71xx/mac80211: add a workaround for the bad signal strength on the WNDR3700
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19565 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-09 16:27:35 +00:00
Gabor Juhos
846dd11d1c
ar71xx: add missing fields to the ar71xx-ehci driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19534 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-06 17:00:16 +00:00
Gabor Juhos
e97e8ca04c
rtl8366: make it available on all platforms
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19329 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-25 15:13:38 +00:00
Gabor Juhos
0cf4435886
rtl8366s: simplify mib counters handling
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-25 14:24:53 +00:00
Gabor Juhos
1801679e11
ar71xx: merge generic machine code into setup.c
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19325 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-25 14:24:48 +00:00
Gabor Juhos
a8e1784a70
rtl8366_smi: move RTL8366S driver into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:38:07 +00:00
Gabor Juhos
e4b621c24a
rtl8366_smi: rename rtl8366s specific functions and definitions
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:37:58 +00:00
Gabor Juhos
84be6aa3ca
rtl8366_smi: move chip specific stuff into its own struct
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19277 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:37:53 +00:00
Gabor Juhos
8a5c8d9eca
rtl8366_smi: separate gpio initialization
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19276 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:37:50 +00:00
Gabor Juhos
086011565c
rtl8366_smi: store GPIO numbers directly in the rtl8366_smi struct
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19275 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:37:47 +00:00
Gabor Juhos
3ddab9c06b
rtl8366_smi: store device pointer instead of plaform_device
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19274 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 17:37:41 +00:00
Gabor Juhos
e3412765b1
rtl8366_smi: rename switch attribute handlers
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19254 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-21 12:13:43 +00:00
Gabor Juhos
a6c08e2f1e
rtl8366_smi: simplify rtl8366_attr_get_port_link function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19250 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:30 +00:00
Gabor Juhos
fcff949054
rtl8366_smi: make rtl8366_phy_config_{aneg,init} static
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19249 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:27 +00:00
Gabor Juhos
f3dad232f6
rtl8366_smi: simplify rtl8366_{get,set}_port_vlan_index functions
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19248 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:24 +00:00
Gabor Juhos
a181f97bf5
rtl8366_smi: minor code optimalizations
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19247 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 20:36:21 +00:00
Gabor Juhos
d573c3ed35
rtl8366_smi: coding style cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19246 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 17:40:39 +00:00
Gabor Juhos
6632b1ff36
rtl8366_smi: add Kconfig option for the debugfs stuff
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19243 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 09:30:36 +00:00
Gabor Juhos
e58b6f9e11
rtl8366_smi: fix error checking in rtl8366s_set_vlan_4k_entry
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 09:30:32 +00:00
Gabor Juhos
95ccf9e5dd
rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 09:30:25 +00:00
Gabor Juhos
e41e188da3
rtl8366_smi: fix return codes in rtl8366s_reset_vlan
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19240 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 07:06:18 +00:00
Gabor Juhos
c1681883a5
rtl8366_smi: move variable initialization out from the loop
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19239 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 07:06:15 +00:00
Gabor Juhos
56ebadac0c
rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 07:06:10 +00:00
Gabor Juhos
12f0213084
ar71xx: fix ethernet mac address on the WZR-HP-G300NH
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19216 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 09:01:44 +00:00
Gabor Juhos
0df42b5cd8
rtl8366_smi: use inline function instead of a macro on top of container_of
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19215 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 09:01:40 +00:00
Felix Fietkau
bce1ca23fe
rtl8366_smi: reset the vlan table when resetting the switch and use vlan get/set ports for vlan member lists
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19206 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 00:12:12 +00:00
Felix Fietkau
11334e85eb
rtl8366_smi: fix excessive stack usage and buffer handling bugs
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-18 00:12:07 +00:00
Felix Fietkau
5db564846d
ar71xx: fix return statement in the rtl8366 driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19204 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 22:57:08 +00:00
Gabor Juhos
325e935158
rtl8366_smi: register the switch directly from the probe routine
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:37:09 +00:00
Gabor Juhos
010e9c50cc
rtl8366_smi: use vlanmc name for all vlanconfig variables
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19201 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:59 +00:00
Gabor Juhos
821854a1e6
rtl8366_smi: use vlan4k name for all vlan4kentry variables
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19200 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:57 +00:00
Gabor Juhos
62a2d46199
rtl8366_smi: move memset into the rtl8366s_get_member_config function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:53 +00:00
Gabor Juhos
cf4bc4100f
rtl8366_smi: move memset into the rtl8366s_get_vlan_4k_entry function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19198 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:49 +00:00
Gabor Juhos
d1f26095e5
rtl8366_smi: add vid parameter to the rtl8366s_get_vlan_4k_entry function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19197 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:46 +00:00
Gabor Juhos
2e3e427df2
ar71xx: upgrade rtl8366_smi driver
...
Thanks to Antti Seppälä.
Patch from https://forum.openwrt.org/viewtopic.php?pid=100150#p100150
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 21:17:42 +00:00
Gabor Juhos
0f4295c97e
ar71xx: fix phy interface selection for the RB-450G
...
Patch from: https://forum.openwrt.org/viewtopic.php?pid=95865#p95865
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19185 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 14:33:26 +00:00
Gabor Juhos
56053a62d6
Fix Routerboard 411ar on board wireless
...
This patch adds the appropriate interrupt for slot 0 pin 1 of the Routerboard 411ar (RB411 with on board Atheros wireless).
Signed-off-by: Andrew Bates abates@omeganetserv.com
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19184 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 14:33:23 +00:00
Gabor Juhos
87f4d9b406
ar71xx: add preliminary support for the Buffalo WZR-HP-G300NH
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19150 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-15 12:08:03 +00:00
Gabor Juhos
a64c102618
ar71xx: add GPIO driver for the NXP 74HC153 chip
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19149 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-15 12:07:58 +00:00
Gabor Juhos
77c49fab6c
ar71xx: reduce button threshold values
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19116 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-13 10:18:30 +00:00
Gabor Juhos
c3b4131574
ar71xx: add support for the D-Link DIR-600 rev. A1 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19100 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-11 08:02:10 +00:00
Gabor Juhos
b4b218d20a
ar71xx: add NAPI statistics to the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-08 20:22:55 +00:00
Gabor Juhos
3d21246af0
ar71xx: add missing flash partition for the DIR-825
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-08 13:35:25 +00:00
Jo-Philipp Wich
2bbf2a3c19
[ar71xx] fix typo after r19054
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19059 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-06 20:16:07 +00:00
Gabor Juhos
693a00b805
ar71xx: don't include nvram.h for the WRT400N
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19055 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-06 15:24:04 +00:00
Gabor Juhos
53568d6359
ar71xx: add detailed interrupt statistics for the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19054 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-06 15:24:01 +00:00
Gabor Juhos
fd8f0781e3
ar71xx: init PCI on the WRT400N board (thanks to Ben Pfountz for testing)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19047 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-05 20:12:12 +00:00
Gabor Juhos
0c2b8d1d98
ar71xx: update Kconfig of the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-04 14:28:28 +00:00
Gabor Juhos
ac6dc4fb0d
ar71xx: add dummy debugfs support for the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19031 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-04 14:28:25 +00:00
Gabor Juhos
4b1ab04766
ar71xx: fix bi-color QSS LED on the TL-WR941ND v2 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18988 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-01 19:40:04 +00:00
Gabor Juhos
56cd39f5bc
ar71xx: update mips multi-machine stuff
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-01 11:28:19 +00:00
Gabor Juhos
54bab1473e
ar71xx: select AR71XX_NVRAM for the WRT160NL
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-01 11:11:43 +00:00
Gabor Juhos
359db89206
ar71xx: fix wireless mac address on the WRT160NL
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18976 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-31 12:42:53 +00:00
Gabor Juhos
4060780e57
ar71xx: fix random wireless mac address on the TEW-632BRP/DIR-615 boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-27 20:59:54 +00:00
Gabor Juhos
af1a59b1ab
ar71xx: pass eeprom and mac address location to the ar913x_add_device_wmac function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18950 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-27 20:59:50 +00:00
Gabor Juhos
738eb2d5ea
ar71xx: remove duplicated include
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18949 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-27 20:59:46 +00:00
Gabor Juhos
34c49fa90a
ar71xx: move dsa switch device support into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18943 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:26 +00:00
Gabor Juhos
6a9f1a0f40
ar71xx: move mach type definitions into a separate include file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18942 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:22 +00:00
Gabor Juhos
0af965f950
ar71xx: change board specific Kconfig option to 'default n'
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18941 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:17 +00:00
Gabor Juhos
0bf7b33e19
ar71xx: move USB host device support into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18940 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:13 +00:00
Gabor Juhos
73378d717d
ar71xx: remove more unnecessary includes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18939 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:08 +00:00
Gabor Juhos
64e26215ee
ar71xx: use the generic m25p80 registration code for the MZK-W04NU
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18938 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:05 +00:00
Gabor Juhos
08d44a0942
ar71xx: move gpio-buttons support into a spearate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18937 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:19:01 +00:00
Gabor Juhos
326e9a8356
ar71xx: move leds-gpio device support into a spearate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18936 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 14:18:54 +00:00
Gabor Juhos
9bc2533b39
ar71xx: move PB42 specific PCI init code into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18932 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-25 13:09:04 +00:00
Gabor Juhos
896369267c
ar71xx: remove unnecessary includes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18931 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-25 13:09:00 +00:00
Gabor Juhos
55e2c5200a
ar71xx: fix bi-color led on the TL-WR841N v1.5
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18926 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-25 10:06:25 +00:00
Gabor Juhos
e80ae1b19a
ar71xx: add support for the TL-WR841N v1.5 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18893 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-22 19:31:28 +00:00
Gabor Juhos
0fae3953cf
ar71xx: add dsa driver for the 88e6063 chip
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-22 19:31:19 +00:00
Gabor Juhos
5481ea653c
ar71xx: update AR7240 PCI code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18860 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-20 13:46:23 +00:00
Gabor Juhos
adde83905e
ar71xx: Fix LED active_low for the TL-WR1043ND board
...
This fixes the LED active_low's for the TP-Link wr1043nd board
Signed-off-by: Andrew Tarabaras <andrew@advancedtechnologies.com.au>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18844 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-19 07:35:49 +00:00
Gabor Juhos
60eea9284b
tl-wr1043nd: Register missing leds.
...
This adds the folowing for the TP-Link wr1043nd board
1. USB and WLAN LEDS
2. Change QSS LED from red to green
3. Fix polarity of the System LED
Signed-off-by: Andrew Tarabaras <andrew@advancedtechnologies.com.au>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18821 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-18 12:57:12 +00:00
Gabor Juhos
f7921c963f
ar71xx: ar913x_wmac device support into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18820 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-18 12:57:09 +00:00
Gabor Juhos
37b67cc5d2
ar71xx: move AP94 specific PCI init code into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18819 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-18 12:57:05 +00:00
Gabor Juhos
4b565ddb06
ar71xx: separate DIR-615 rev. C1 support from the TEW-632 (based on the
...
patch from #6186 )
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-18 12:57:01 +00:00
Gabor Juhos
af172fc704
ar71xx: add common m25p80 device
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18817 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-18 12:56:55 +00:00
Felix Fietkau
d560a3be45
Revert "ar71xx: move phy_connect call to ag71xx_open" (r18691)
...
It's causing issues with switch drivers that register with swconfig and
makes fixing those unnecessarily complicated.
Fixes rtl8306 switch support on the WRT160NL.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18789 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-15 22:37:54 +00:00
Gabor Juhos
0d0f1c601d
ar71xx: add driver for the USB LED on the WNDR3700
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18758 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 20:32:31 +00:00
Gabor Juhos
b67365f9ac
ar71xx: add ar71xx_device_stopped function
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18757 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 20:32:28 +00:00
Gabor Juhos
f4e935e035
ar71xx: fix NULL pointer dereference in the ethernet driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18755 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 19:32:58 +00:00
Gabor Juhos
e48e1d35ba
ar71xx: merge DSA switch patch
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18752 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 16:41:51 +00:00
Gabor Juhos
7d315cc477
ar71xx: merge ag71xx specific patches
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18751 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 16:41:40 +00:00
Gabor Juhos
428adf203f
ar71xx: move mdio_bus reset code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18749 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 12:21:15 +00:00
Gabor Juhos
634b355d3c
ar71xx: register rtl8366-smi device on the DIR-825 B1 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18710 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-09 08:03:31 +00:00
Felix Fietkau
d8dc22afd6
rtl8306: manage the wan port as a separate phy device with proper link status reading and autonegotiation - the genphy driver does not handle it properly
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18709 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-09 03:25:33 +00:00
Felix Fietkau
fec8e48603
ar71xx: make the rtl8306 switch attach to eth0 instead of eth1 on the wrt160nl, fixes wan port detection ( #6309 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18699 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 14:06:18 +00:00
Gabor Juhos
9828d89496
ar71xx: TL-WR1043ND support cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18697 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 12:46:30 +00:00
Gabor Juhos
00c14fd865
ar71xx: preliminary support for the TL-WR1043ND
...
Adds board support for the TP-Link TL-WR1043ND Based on the Atheros AP81 platform.
Presently the RTL8366RB switch support is missing due to no driver.
The ethernet works with 5 ports@1Gbit but is missing vlan support.
Hope Ive done this right, First time submiting a patch.
Signed-off-by: Andrew Tarabaras <andrew@advancedtechnologies.com.au>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18696 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 12:46:25 +00:00
Gabor Juhos
65ffc1bc61
ar71xx: register rtl8366_smi device on the WNDR3700
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:37 +00:00
Gabor Juhos
468bef06f3
ar71xx: add mdio bus driver for the rtl8366 switch
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:35 +00:00
Gabor Juhos
5504bc6629
ar71xx: add support for external mii_bus
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:27 +00:00
Gabor Juhos
0346ad9467
ar71xx: move phy_connect call to ag71xx_open
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18691 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 10:29:19 +00:00
Gabor Juhos
f5523da72c
ar71xx: DIR-825 support cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18622 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-03 15:07:41 +00:00
Gabor Juhos
2d6e859525
ar71xx: add support for the D-Link DIR-825 rev. B1 board (thanks to
...
ValXdater)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18621 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-03 15:07:34 +00:00
Gabor Juhos
d18aa81fca
ar71xx: change mii_bus name
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-03 14:17:12 +00:00
Gabor Juhos
2383f010d9
ar71xx: override fifo_cfg[123] values on AR7240
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-30 13:53:39 +00:00
Felix Fietkau
82a3705ef1
ar71xx: mask out reserved bits from the dma tx status in the ethernet driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-29 13:38:03 +00:00
Felix Fietkau
bc1573db72
ar71xx: add usb support for ubnt rocket m
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18598 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-29 13:33:15 +00:00
Gabor Juhos
0b5ddaebff
ar71xx: fix mac address for 5GHz interface on WNDR3700
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-28 18:01:09 +00:00
Gabor Juhos
522e6f6a47
ar71xx: update ath9k_platform.h
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-28 18:01:06 +00:00
Gabor Juhos
038a4d7a7d
ar71xx: add PCI fixup for the WNDR3700 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18565 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-27 21:21:21 +00:00
Gabor Juhos
ea686cbea0
ar71xx: fix pll_1000 values for the WNDR3700
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-27 21:21:17 +00:00
Gabor Juhos
685a1f59a7
ar71xx: add AR724x GPIO_FUNC register bit defines
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18561 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-27 21:21:06 +00:00
Gabor Juhos
56b4822790
ar71xx: fix AR724X_GPIO_COUNT
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18560 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-27 21:21:01 +00:00
Gabor Juhos
dca0ec2a53
ar71xx: add AR724x register defines
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-27 21:20:54 +00:00
Felix Fietkau
0414b8cf78
ar71xx: use a separate board id for rocket m
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18450 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-18 18:10:33 +00:00
Matteo Croce
72915b4a56
ar71xx: add Ubiquiti Rocket M and Nanostation M support
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18447 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-18 17:05:42 +00:00
Gabor Juhos
c76b3f6282
ar71xx: setup platform data for ath9k on the TL-WR741ND, Bullet M and on the WNDR3700 boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18437 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-16 17:31:32 +00:00
Gabor Juhos
8816b5283a
ar71xx: register LEDs and buttons on the WNDR3700
...
Thanks to aorlinks (https://forum.openwrt.org/viewtopic.php?pid=97415#p97415 )
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18435 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-16 17:31:25 +00:00
Gabor Juhos
4628dc5124
ar71xx: use __init for ar{71,91}xx_usb_setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-16 17:31:22 +00:00
Gabor Juhos
f92973072d
ar71xx: add preliminary support for the Netgear WNDR3700
...
Based on patches by Marco Porsch from:
https://forum.openwrt.org/viewtopic.php?id=22311
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18411 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-13 17:11:29 +00:00
Gabor Juhos
872e71e3f5
ar71xx: use soc specific divider for mdio clock
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-30 12:26:22 +00:00
Gabor Juhos
24d9dfb98c
ar71xx: update mdio_reset code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18224 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-30 12:26:17 +00:00
Gabor Juhos
a4bd57700c
ar71xx: Compex WPJ543 board is supported as well
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18100 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 12:59:42 +00:00
Gabor Juhos
a161e43710
ar71xx: fix PCI IRQ map of the WP543
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18099 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-20 12:59:39 +00:00
Gabor Juhos
937b4d7183
ar71xx: reset the phy chip along with the ethernet mac on the WP543 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18072 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-19 08:07:32 +00:00
Gabor Juhos
1698cb5180
ar71xx: reset the ethernet device before registration
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18071 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-19 08:07:29 +00:00
Gabor Juhos
0676846255
ar71xx: initialize PCI controller on the Bullet M
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17812 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-01 19:41:11 +00:00
Gabor Juhos
9691b4e468
ar71xx: init ethernet mac address on the Bullet M
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17811 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-01 19:41:08 +00:00
Gabor Juhos
b0b877b8be
ar71xx: register GPIO button on the Bullet M
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17809 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-01 19:41:03 +00:00
Gabor Juhos
45e6e81be6
ar71xx: add PCI Host Controller fixup for ar724x
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17808 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-01 19:41:00 +00:00
Gabor Juhos
290284a0ea
ar71xx: use ar71xx_pci_fixup on ar71xx SoCs only
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17807 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-01 19:40:57 +00:00
Gabor Juhos
523fe5378c
ar71xx: fix a typo in the ar724x PCI code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-01 19:40:51 +00:00
Gabor Juhos
78487709a6
ar71xx: flush mii register writes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 17:44:08 +00:00
Gabor Juhos
495aed4039
ar71xx: don't use mac_base2 in the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17693 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 17:44:02 +00:00
Gabor Juhos
61be658834
ar71xx: remove some extern directives in the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 17:43:57 +00:00
Matteo Croce
8364df7278
ar71xx: preliminary Ubiquiti Bullet M support
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-15 09:16:21 +00:00
Gabor Juhos
d0b6cc45af
ar71xx: rewrite prom code (based on a patch by Jeff Hansen)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17566 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-10 18:30:12 +00:00
Gabor Juhos
e2686b946d
ar71xx: add preliminary support for the RB-411U (thanks to Feher Zoltan for testing)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17543 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-08 19:16:15 +00:00
Gabor Juhos
ff0d37992c
[ar71xx] move early_printk stuff into a separate file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17403 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-26 07:31:04 +00:00
Gabor Juhos
9be2ec7744
[ar71xx] remove AR71XX_EARLY_SERIAL stuff
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-25 17:13:12 +00:00
Gabor Juhos
9a8810cd40
[ar71xx] WRT160NL: add default trigger for the power led
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17203 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-09 14:13:26 +00:00
Gabor Juhos
b38a697aa7
[ar71xx] WRT160NL: more mtd parser cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17201 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-09 12:56:06 +00:00
Gabor Juhos
843e4c9648
[ar71xx] WRT160NL: mtd parser cleanup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17177 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-08 13:06:28 +00:00
Gabor Juhos
54e6d0e354
[ar71xx] move the trx parser out from the patch
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17176 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-08 12:08:41 +00:00
Gabor Juhos
95ea6571aa
[ar71xx] WRT160NL: register GPIO LEDs and buttons
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17166 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 17:33:02 +00:00
Gabor Juhos
99cf69088e
[ar71xx] update ar71xx_spi driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17143 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-06 10:56:48 +00:00
Gabor Juhos
5104dd2b1d
[ar71xx] oops, add missing semicolons
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-06 09:42:29 +00:00
Gabor Juhos
05500844db
[ar71xx] get rid of some ifdefs in the IRQ code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17141 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-06 09:32:15 +00:00
Gabor Juhos
074681b8d6
[ar71xx] fix MISC IRQ handling on the AR7240
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17098 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-02 13:27:43 +00:00
Gabor Juhos
7ea3d1520a
[ar71xx] add ethernet suppor for the WRT160NL (thanks to Christian Daniel)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-31 07:01:26 +00:00
Gabor Juhos
7c3041dac6
[ar71xx] ag71xx driver: rename ag71xx_debug module parameter
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16833 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 17:45:25 +00:00
Gabor Juhos
ea6ce3904f
[ar71xx] ag71xx driver: fix a typo
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16827 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 12:20:02 +00:00
Gabor Juhos
716f74c9bd
[ar71xx] ag71xx driver: align descriptors on cache_line boundary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 11:40:10 +00:00
Gabor Juhos
6bfa32dda5
[ar71xx] ag71xx driver: store descriptor pointers in ag71xx_buf
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16824 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-13 11:38:37 +00:00
Gabor Juhos
42e75cfee0
[ar71xx] ag71xx driver: descriptors always aligned on 4 byte boundary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 16:04:28 +00:00
Gabor Juhos
a9c43c0abb
[ar71xx] ag71xx driver: don't flush ddr on tx path
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16817 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 16:02:27 +00:00
Gabor Juhos
346ca391ed
[ar71xx] increase size of the kernel partition on the TL-WR[789]41N boards
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16785 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 17:20:46 +00:00
Gabor Juhos
322052f47a
[ar71xx] increase size of the kernel partition on the TEW-632BR board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16784 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 17:15:30 +00:00
Gabor Juhos
a8abf2cf4b
[ar71xx] register the VSC7395 device on the PB44 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16783 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 16:27:54 +00:00
Gabor Juhos
01b93ffd27
[ar71xx] add SPI controller driver for the PB44 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16781 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 15:55:55 +00:00
Gabor Juhos
98a02e113b
[ar71xx] use platform data to setup the MAC_CFG register in the spi_vsc7385 driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16780 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 14:59:31 +00:00
Gabor Juhos
be1b8cc75c
[ar71xx] add definitions for some magic values in the spi_vsc7385 driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16779 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 14:56:54 +00:00
Gabor Juhos
7ce0ae81ee
[ar71xx] fix a bug in the SPI driver ( closes #5485 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16767 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-10 19:29:58 +00:00
Gabor Juhos
c6c7d42839
[ar71xx] add board setup code for the RB-450G/RB-433UAH boards
...
* based on a patch from http://forum.openwrt.org/viewtopic.php?pid=91127#p91127
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16754 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-09 19:46:41 +00:00
Gabor Juhos
35948c0144
[ar71xx] register a GPIO LEDs and buttons on the PB44 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16748 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-09 06:58:38 +00:00
Gabor Juhos
38b922b128
[ar71xx] register a I2C GPIO expander on the PB44 board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16747 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-09 06:57:44 +00:00
Gabor Juhos
465e00b30f
[ar71xx] add initial support for the TL-WR741ND board
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16739 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-07 19:20:10 +00:00
Gabor Juhos
80f0f758b2
[ar71xx] add AR7240 specific fixes for the ag71xx driver
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16737 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-07 18:06:02 +00:00
Gabor Juhos
23dcbe7aec
[ar71xx] make irq_chip definitions static
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16736 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-07 18:04:26 +00:00
Gabor Juhos
14030d25dc
[ar71xx] AR7240 requires different IRQ unmasking code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16734 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-07 13:57:57 +00:00
Gabor Juhos
f9a833a3b6
[ar71xx] add missing break statement
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-05 18:02:12 +00:00
Gabor Juhos
4672a50b90
[ar71xx] add missing includes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16676 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-05 08:40:23 +00:00
Gabor Juhos
cf572ffe84
[ar71xx] add AR7240 specific PCI code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16674 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-05 08:06:24 +00:00