Commit Graph

796 Commits (d495277d9ff556a372fc5c49c610287d37574cb5)

Author SHA1 Message Date
Gabor Juhos f0c7b93e5d ar71xx: init get_mac_revision on AR9330 rev 1
SVN-Revision: 27081
13 years ago
Gabor Juhos 1a54e33c17 ar71xx: add get_mac_revision to ath9k_platform_data
SVN-Revision: 27080
13 years ago
Gabor Juhos 34ff32a6eb ar71xx: export SoC revision
SVN-Revision: 27079
13 years ago
Felix Fietkau 4f06b8263a ar71xx: add kernel support for the buffalo wzr-hp-ag300h
SVN-Revision: 27075
13 years ago
Gabor Juhos f332dbd7be ar71xx: add support for the AP121/AP121-MINI reference boards
SVN-Revision: 27067
13 years ago
Gabor Juhos 8beff081eb ar71xx: register UART for the AR933X SoCs
SVN-Revision: 27066
13 years ago
Gabor Juhos b460bc6f12 ar71xx: add serial driver for the AR933X UART
SVN-Revision: 27065
13 years ago
Gabor Juhos c34e0cbc4c ar71xx: add WMAC initialization code for the AR933X SoCs
SVN-Revision: 27064
13 years ago
Gabor Juhos e8a0aaf9a2 ar71xx: add ethernet initialization for the AR933X SoCs
SVN-Revision: 27063
13 years ago
Gabor Juhos e0a0f3796a ar71xx: enable USB support for the AR933x SoCs
SVN-Revision: 27062
13 years ago
Gabor Juhos 677c80ee17 ar71xx: add AR933x specific glue for ar71xx_device{start,stop}
SVN-Revision: 27061
13 years ago
Gabor Juhos 88c45e3130 ar71xx: the watchdog uses the reference clock on the AR933x SoCs
SVN-Revision: 27060
13 years ago
Gabor Juhos 7acbacab8c ar71xx: add AR933x specific glue code for IRQ initialization
SVN-Revision: 27059
13 years ago
Gabor Juhos e6fde61bec ar71xx: don't register 8250 UART on the AR933x SoCs
SVN-Revision: 27058
13 years ago
Gabor Juhos 8f7541a044 ar71xx: enable GPIO support for the AR933x SoCs
SVN-Revision: 27057
13 years ago
Gabor Juhos e11b9c8371 ar71xx: add AR933x specific frequency initialization code
SVN-Revision: 27056
13 years ago
Gabor Juhos 0bf4478d37 ar71xx: add AR933x specific early_printk support
SVN-Revision: 27055
13 years ago
Gabor Juhos 6b3ca9ef0b ar71xx: add preliminary support for the Atheros AR933x SoCs
SVN-Revision: 27054
13 years ago
Gabor Juhos 0677e16248 ar71xx: Fix header offset for newer WRT160NL models
Newer WRT160NLs have a flash chip with 4K erase blocks instead of 64K,
resulting in miscalculated partition sizes.
Since the actual sizes did not change, hardcode them to their current
sizes, and make sure they are at least one erase block big (in case Cisco
decides to start to use chips with 128K erase blocks).

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 27049
13 years ago
Gabor Juhos be97e2a043 ar71xx: add SOC_AR{71XX,724X,913X,934X} config symbols
SVN-Revision: 27048
13 years ago
Gabor Juhos 5d5f72415e ar71xx: initialize is_clk_25mhz field for AR9340 WMAC
SVN-Revision: 27045
13 years ago
Gabor Juhos f7b3c3dfd1 ar71xx: sync ath9k_platform_data.h with compat-wireless
SVN-Revision: 27044
13 years ago
Gabor Juhos 60d5abbc27 ar71xx: ag71xx: make ring sizes configurable via ethtool
SVN-Revision: 27041
13 years ago
Gabor Juhos 7a2651f633 ar71xx: ag71xx: prepare to make ring sizes configurable
SVN-Revision: 27040
13 years ago
Gabor Juhos 669aba3871 ar71xx: ag71xx: nuke unused AG71XX_TX_FIFO_LEN define
Reported-by: Dave Täht <dave.taht@gmail.com>

SVN-Revision: 27039
13 years ago
Felix Fietkau 2b5402d128 ar71xx: only enable the rx engine after the link is up, fixes a race condition that got rx stuck when the interface is brought up during lots of inbound traffic (thx, matteo)
SVN-Revision: 27035
13 years ago
Felix Fietkau 0ebc93831f ar71xx: disable flow control for ar724x, it can get stuck in a loop of continously sending MAC pause frames
SVN-Revision: 27034
13 years ago
Matteo Croce 17e257925f ar71xx: don't probe the LAN PHY
SVN-Revision: 26924
13 years ago
Matteo Croce 4deecea26b ar71xx: detect link on LAN ports
SVN-Revision: 26922
13 years ago
Matteo Croce 2ea528d1d0 ar71xx: add link detection on Ubiquiti devices WAN port
SVN-Revision: 26891
13 years ago
Matteo Croce c0c2e18452 use correct macros and frame size in ag71xx
SVN-Revision: 26890
13 years ago
Matteo Croce 99d1d4f795 ar71xx: cosmetic fixes
SVN-Revision: 26889
13 years ago
Gabor Juhos 9b5036a29d ar71xx: populate LED3 on the JA76PF board
Patch-by: Cezary Jackiewicz <cezary@eko.one.pl>

SVN-Revision: 26862
13 years ago
Gabor Juhos 869f3cb718 ar71xx: remove superfluous fifo_cfg overrides
SVN-Revision: 26859
13 years ago
Gabor Juhos 5d77f370d6 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

SVN-Revision: 26856
13 years ago
Gabor Juhos 3711658281 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.

SVN-Revision: 26855
13 years ago
Gabor Juhos ef53029870 ar71xx: ag71xx: fix build error if debugfs is enabled
SVN-Revision: 26854
13 years ago
Gabor Juhos 8b67d748cb ar71xx: ag71xx: add debugfs entry for [rt]x_ring
SVN-Revision: 26845
13 years ago
Gabor Juhos 2166432ba0 ar71xx: ag71xx: add timestamps to ag71xx_buf
SVN-Revision: 26844
13 years ago
Gabor Juhos 896e1d1ab4 ar71xx: ag71xx: use dynamically allocated buffer for napi_stats
SVN-Revision: 26843
13 years ago
Gabor Juhos a6708d20d1 ar71xx: ag71xx: use debugfs_remove_recursive
SVN-Revision: 26842
13 years ago
Gabor Juhos c39e5b9360 ar71xx: override wmac device name for the AR934x SoCs
SVN-Revision: 26840
13 years ago
Felix Fietkau cbc75a9c70 ar71xx: use the ar8316 switch driver on the PB92 board and add a matching default network config
SVN-Revision: 26779
13 years ago
Felix Fietkau 36aecb08b8 ar71xx: fix MDIO access on ar7242 (based on a patch by Jess Zhu)
SVN-Revision: 26777
13 years ago
Gabor Juhos fa9f45f345 ar71xx: fix build error w/o CONFIG_PCI
SVN-Revision: 26606
13 years ago
Gabor Juhos e193547733 ar71xx: use the gpio_keys_polled driver instead of gpio_buttons
SVN-Revision: 26603
13 years ago
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
13 years ago
Gabor Juhos ef4c1d49a6 ar71xx: merge dev-ar9{13,34}x-wmac into dev-ar9xxx-wmac
SVN-Revision: 26595
13 years ago
Gabor Juhos 4711dea8ff ar71xx: fix AR934X_WMAC_SIZE
SVN-Revision: 26594
13 years ago
Gabor Juhos 8586e61b00 ar71xx: fix section mismatch
SVN-Revision: 26562
13 years ago
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
13 years ago
Gabor Juhos 5573d6eb28 ar71xx: show the SoC type earlier
SVN-Revision: 26560
13 years ago
Gabor Juhos ab4c3b3a1c ar71xx: cleanup SoC detection code
SVN-Revision: 26559
13 years ago
Gabor Juhos 3310c70702 ar71xx: Fix mac address offset for AR934x
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>

SVN-Revision: 26557
13 years ago
Gabor Juhos 8f889f9250 ar71xx: add DB120 board specific PCI initialization
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26523
13 years ago
Gabor Juhos a0c3d49064 ar71xx: register WMAC device on the DB120 board
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26522
13 years ago
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
13 years ago
Gabor Juhos 14b42c44ec ar71xx: add initial support for the Atheros DB120 board
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26518
13 years ago
Gabor Juhos 2b064bb398 ar71xx: add support for the watchdog of the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26516
13 years ago
Gabor Juhos e4555809c7 ar71xx: enable PCI for the AR934[24] SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26515
13 years ago
Gabor Juhos 4f395745af ar71xx: enable USB support for the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26514
13 years ago
Gabor Juhos 25693b4769 ar71xx: enable GPIO support for the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26513
13 years ago
Gabor Juhos 334a5ec36e ar71xx: add AR934x specific glue for ar7100_device{start,stop}
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26512
13 years ago
Gabor Juhos ccd3ebd309 ar71xx: add AR934x specific UART clock initialization
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26511
13 years ago
Gabor Juhos 91470edada ar71xx: add AR934x specific glue for IRQ initialization
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26510
13 years ago
Gabor Juhos 3b209880bc ar71xx: add initial support for the AR934x SoCs
Signed-off-by: Jaiganesh Narayanan <jnarayanan@atheros.com>

SVN-Revision: 26509
13 years ago
Felix Fietkau 98c78c13db ar71xx: enable access to the WAN port PHY on a few devices, adds WAN link detection
SVN-Revision: 26394
13 years ago
Felix Fietkau 41ee4a283c ar71xx: only allow internal access to the ar7240 switch, export the MDIO bus behind the switch instead
SVN-Revision: 26393
13 years ago
Felix Fietkau acbb3e50e7 ar71xx: frequent ethernet mac resets upset the MDIO bus on ar7240, so do not run them on every device open, only on tx timeouts
SVN-Revision: 26392
13 years ago
Gabor Juhos 8eb616de82 ar71xx: add support for the TP-Link TL-WA901ND v2 board
Patch-by: Jonathan Benett <jbscience87@gmail.com>

SVN-Revision: 26119
14 years ago
Felix Fietkau 5bddd70a37 Revert "ar71xx: add missing gpio_set_debounce function" - wrong target
SVN-Revision: 25854
14 years ago
Felix Fietkau 57a14f4e15 ar71xx: add missing gpio_set_debounce function
SVN-Revision: 25848
14 years ago
Gabor Juhos 256169cbd0 ar71xx: add rtl8366s initvals for the DIR-825 board
SVN-Revision: 25121
14 years ago
Gabor Juhos 67c3e0bf7e ar71xx: add support for the WNDR3700v2 board
Based on a patch by Mark Mentovai <mark@moxienet.com>

SVN-Revision: 25118
14 years ago
Jo-Philipp Wich 18ed5bca9b fix null pointer access in mach-dir-600-a1.c machine setup (#8671)
SVN-Revision: 25043
14 years ago
Gabor Juhos b67bbfe287 ar71xx: fix wlan LED on the TL-WR741 board
* Patch from #8630

SVN-Revision: 24963
14 years ago
Gabor Juhos dd53effe15 ar71xx: fix wrong names of the WPS LED/button
Reported-by: Nuno Gonçalves

SVN-Revision: 24961
14 years ago
Gabor Juhos 23a6173099 ar71xx: use gpio_*_cansleep calls in the rb4xx NAND driver
SVN-Revision: 24944
14 years ago
Gabor Juhos 0de8689b70 ar71xx: use spinlock in ar71xx_device_{start,stop}
SVN-Revision: 24929
14 years ago
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
14 years ago
Gabor Juhos cafe08a1b2 ar71xx: remove stray semicolons
SVN-Revision: 24651
14 years ago
Gabor Juhos 01c76bf128 ar71xx: fix WLAN LEDs on the DIR-825 board
SVN-Revision: 24650
14 years ago
Gabor Juhos c1d3a23d19 ar71xx: add helper function to setup ath9k LED/GPIO on the AP94 based boards
SVN-Revision: 24649
14 years ago
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
14 years ago
Gabor Juhos a2a5598c00 ar71xx: add wlan led for the TL-WR941ND
SVN-Revision: 24612
14 years ago
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
14 years ago
Gabor Juhos 6c1ace2f28 ar71xx: init the LED pin for ath9k on the TL-MR3[24]20 boards
SVN-Revision: 24569
14 years ago
Gabor Juhos a7750dae90 ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards
SVN-Revision: 24568
14 years ago
Gabor Juhos 9f38f9bf76 ar71xx: add missing files for the JA76PF board
SVN-Revision: 24444
14 years ago
Gabor Juhos b680f088ba ar71xx: add support for the jjPlus JA79PF
Patch-by: Cezary Jackiewicz

SVN-Revision: 24440
14 years ago
Gabor Juhos 5b0c83edd9 ar71xx: add support for the TP-LINK TL-MR3220 v1 board
SVN-Revision: 24439
14 years ago
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
14 years ago
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
14 years ago
Gabor Juhos 920a34c0ce ar71xx: drivers/ar71xx_wdt: fix size argument passed to copy_to_user()
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23983
14 years ago
Gabor Juhos 3106aea40b ar71xx: drivers/ag71xx: remove deprecated usage of IRQF_SAMPLE_RANDOM
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23982
14 years ago
Gabor Juhos 30ef7d55fc ar71xx: use pr_* functions in drivers
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23981
14 years ago
Gabor Juhos fddf3b8dac ar71xx: drivers/rb4xx_nand: remove C++ comment usage
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23980
14 years ago
Gabor Juhos f4d5c885e4 ar71xx: return statements does not need parenthesis
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23979
14 years ago
Gabor Juhos e244e1c7cd ar71xx: fix inline attribute location
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23978
14 years ago
Gabor Juhos acd8ad4de5 ar71xx: wrap long lines
(build errors has been fixed - juhosg)

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23977
14 years ago
Gabor Juhos eef802855a ar71xx: fix trailing statements location
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23976
14 years ago
Gabor Juhos 500fac1735 ar71xx: fix whitespaces nits
(build error has been fixed - juhosg)

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23975
14 years ago
Claudio Mignanti 20b2a4417a Add support for Ubiquiti UniFi AP
SVN-Revision: 23904
14 years ago
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
14 years ago
Felix Fietkau fc28e1cd7d ar71xx: fix the wndr3700 antenna group setting for the first wireless chip (thx, Mark Mentovai)
SVN-Revision: 23875
14 years ago
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
14 years ago
Felix Fietkau f056c054b9 ar71xx: the ar7240 dsa driver is no longer used, remove it.
SVN-Revision: 23577
14 years ago
Felix Fietkau 9e2d1a194d ar71xx: use the new ar7240 switch driver for tl-wa901nd as well
SVN-Revision: 23576
14 years ago
Felix Fietkau 6656450c6d ar71xx: fix more section mismatches
SVN-Revision: 23575
14 years ago
Felix Fietkau 8858d90afe 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
SVN-Revision: 23574
14 years ago
Jo-Philipp Wich a680385396 remove remaining references to dev-ap91-eth.h, patch by Stijn Tintel
SVN-Revision: 23451
14 years ago
Felix Fietkau fc035b3cb6 ar71xx: remove dev-ap91-eth.c. switch its only user (RB-750) to the new switch driver
SVN-Revision: 23439
14 years ago
Felix Fietkau 3941621dbc ar71xx: use the new ar7240 switch driver on the DIR-600-A1 as well (fixes #7563)
SVN-Revision: 23432
14 years ago
Felix Fietkau b61a804bf7 ar71xx: increase rb4xx nand kernel partition size (patch by danimo)
SVN-Revision: 23293
14 years ago
Gabor Juhos 697f5d0bdd 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)

SVN-Revision: 23165
14 years ago
Felix Fietkau 8511c6b16c 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>

SVN-Revision: 23147
14 years ago
Gabor Juhos 32d12d5e5c ar71xx: add support for the TL-MR3420 v1 board
SVN-Revision: 23136
14 years ago
Gabor Juhos b831ebdde9 ar71xx: AR724[12] requires different USB setup
SVN-Revision: 23135
14 years ago
Gabor Juhos cda8655910 ar71xx: use the MDIO interface of the 2nd MAC on the ar7241
SVN-Revision: 23132
14 years ago
Gabor Juhos b445943cdf ar71xx: move ath9k specific PCI fixup into a separate file
SVN-Revision: 23131
14 years ago
Gabor Juhos 4ae167959b 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.

SVN-Revision: 23130
14 years ago
Felix Fietkau a7bb7dd99e 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>

SVN-Revision: 23125
14 years ago
Felix Fietkau 0c6653c6e2 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
SVN-Revision: 22935
14 years ago
Gabor Juhos b4336a8e2d ar71xx: add support for the Zcomax ZCN-1523H-2-8/5-16 boards
SVN-Revision: 22882
14 years ago
Gabor Juhos 47f8fd1dde 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

SVN-Revision: 22863
14 years ago
Gabor Juhos 7bc5a672c1 ar71xx: change mac address initialization
SVN-Revision: 22700
14 years ago
Felix Fietkau 523fcf0497 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
SVN-Revision: 22675
14 years ago
Felix Fietkau 65899cfa49 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
SVN-Revision: 22401
14 years ago
Felix Fietkau 900aaa919b ar71xx: add support for the tp-link tl-wa901nd devices (patch by Pieter "Fate" Hollants, from #7528, without the ethernet fifo cfg values)
SVN-Revision: 22353
14 years ago
Felix Fietkau bced5d7d74 ar71xx: set default values for the fifo cfg registers on AR724x
SVN-Revision: 22303
14 years ago
Gabor Juhos 4bb11f9a39 generic: move ath5k_platform.h from ar71xx to generic files
SVN-Revision: 22189
14 years ago
Gabor Juhos 95e09cccd8 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>

SVN-Revision: 22187
14 years ago
Felix Fietkau a27ea45e76 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
SVN-Revision: 22075
14 years ago
Felix Fietkau 15b209d09f ag71xx: reset the hardware during open(), this improves recovery from tx timeouts on ar724x considerably
SVN-Revision: 22055
14 years ago
Felix Fietkau 89da22d1ea 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
SVN-Revision: 22054
14 years ago
Gabor Juhos 5a28fb88a4 ar71xx: fix leds-rb750 build failure on 2.6.34
SVN-Revision: 22016
14 years ago
Gabor Juhos 7bff9c0101 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>

SVN-Revision: 21837
14 years ago
Gabor Juhos 08c2e29018 ar71xx: avoid duplicated 'board' parameter in kernel command line
SVN-Revision: 21805
14 years ago
Gabor Juhos 9789f0215a ar71xx: nuke AR71XX_MACH_UBNT_AR71XX machtype
SVN-Revision: 21764
14 years ago
Gabor Juhos adb0a95df1 ar71xx: fix phy_mask for the RB450
SVN-Revision: 21743
14 years ago
Gabor Juhos 6ce447427c ar71xx: fix build error in the rb{4xx,750}_nand drivers on 2.6.34/35
SVN-Revision: 21736
14 years ago
Gabor Juhos d55ebf3a8a ar71xx: fix phy_mask on the RB433 for the IP17xx driver
SVN-Revision: 21728
14 years ago
Gabor Juhos 90e2b1ad6b ar71xx: fix 2.6.34 build errors
SVN-Revision: 21698
14 years ago
Gabor Juhos 115f845e53 ar71xx: fix nbg460n mtd partitions
This fixes the NBG460N/550N/550NH mtd partitions.

Signed-off-by: Michael Kurz <michi.kurz@googlemail.com>

SVN-Revision: 21443
14 years ago
Gabor Juhos fca9b7ebad ar71xx: remove config partition from the mtd map on the MZK-W300NH board
This space can be used to extend the rootfs_data partition.

SVN-Revision: 21173
14 years ago
Gabor Juhos 77b2354fcd ar71xx: fix firmware partition size on the MZK-W04NU board
SVN-Revision: 21172
14 years ago
Felix Fietkau 7966004d99 ag71xx: remove rx alignment code for small packets, it seems to break ipv6 for some reason (fixes #7236)
SVN-Revision: 21166
14 years ago
Felix Fietkau 9848d38aed 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.

SVN-Revision: 21143
14 years ago
Gabor Juhos 10ed3b23a6 ar71xx: reduce button threshold value on the NBG460 board
SVN-Revision: 21076
14 years ago
Gabor Juhos 9933d34770 ar71xx: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
SVN-Revision: 21075
14 years ago
Gabor Juhos 693ea524c1 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>

SVN-Revision: 20990
14 years ago
Felix Fietkau 1c0e751391 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

SVN-Revision: 20892
14 years ago
Gabor Juhos dd7304ec6d ar71xx: update phy masks for the Planex boards
This avoids probing of the AR8216 chip on the eth0 interface.

Cc: backfire@openwrt.org

SVN-Revision: 20754
14 years ago
Gabor Juhos d6c0363884 ar71xx: make the AR8216 driver usable on the TEW-632BRP/DIR-615-Cx boards
Cc: backfire@openwrt.org

SVN-Revision: 20752
14 years ago
Gabor Juhos 4c29a2c263 ar71xx: ag71xx: avoid unalinged accesses when using the phy specific receive functions
Cc: backfire@openwrt.org

SVN-Revision: 20751
14 years ago
Gabor Juhos 4a28844d80 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

SVN-Revision: 20750
14 years ago
Felix Fietkau df463abb18 ar71xx: fix ethernet on final pb92 board (previous value was based on a preliminary version)
SVN-Revision: 20725
14 years ago
Jo-Philipp Wich 23bebe33a7 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.

SVN-Revision: 20722
14 years ago
Gabor Juhos c874513cfa ar71xx: fix broken LAN ports on the boards with AR8216 switch (closes #7024)
* cc: backfire@openwrt.org

SVN-Revision: 20673
14 years ago
Felix Fietkau 7983e442e1 ar71xx: fix pci on ar7241/ar7242
SVN-Revision: 20530
14 years ago
Felix Fietkau 9c0f21a5b9 ar71xx: fix the wan port on pb92
SVN-Revision: 20529
14 years ago
Felix Fietkau 2cc215f121 ar71xx: reset the mdio bus on ar7241/ar7242
SVN-Revision: 20528
14 years ago
Gabor Juhos 905f2d62f9 ar71xx: update image generation and trx header parsing for the WRT160NL
* patch by Bernhard Loos
 * note: trailing whitespaces has been removed

SVN-Revision: 20525
14 years ago
Gabor Juhos b7ca043240 ar71xx: ag71xx: copy received packet to avoid unaligned access in the IP stack
SVN-Revision: 20506
14 years ago
Gabor Juhos f9acf8ada1 ar71xx: ag71xx: introduce ag71xx_has_ar8216() helper
SVN-Revision: 20505
14 years ago
Gabor Juhos 200db5ebb5 ar71xx: ag71xx: reorganize ag71xx_rx_packet function
SVN-Revision: 20504
14 years ago
Gabor Juhos 245775a49f 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>

SVN-Revision: 20503
14 years ago
Felix Fietkau 0b6e32a7b0 ar71xx: add basic kernel support for pb92
SVN-Revision: 20495
14 years ago
Felix Fietkau aa3ff31b95 ar71xx: add support for ar7241 and ar7242
SVN-Revision: 20494
14 years ago
Felix Fietkau 4e10c56551 ar71xx: fix pci link detection for ar724x
SVN-Revision: 20493
14 years ago
Andy Boyett 681054333e wrt400n: lan ports don't need the ar8216 workaround
SVN-Revision: 20491
14 years ago
Gabor Juhos 120b1d8699 ar71xx: use the RB411 setup for the RB411U
SVN-Revision: 20359
15 years ago
Gabor Juhos 9a1031ce6d ar71xx: change PHY select logic, and update phy_masks
SVN-Revision: 20358
15 years ago
Gabor Juhos 18aa68d368 ar71xx: check returned value of ioremap in ar71xx_pcibios_setup
SVN-Revision: 20288
15 years ago
Gabor Juhos 73f7a1c224 ar71xx: optimize register access in ar71xx_pci.c
SVN-Revision: 20287
15 years ago
Gabor Juhos 1dedaf30a6 ar71xx: optimize register access in irq.c
SVN-Revision: 20286
15 years ago
Gabor Juhos 2438a03ce4 ar71xx: optimize register access in ar724x_pci.c
SVN-Revision: 20285
15 years ago
Gabor Juhos d02975eb0d ar71xx: introduce global ar724x_pci_ctrl_base variable
SVN-Revision: 20284
15 years ago
Gabor Juhos b051a3b784 ar71xx: add error handling to ar724x_pcibios_init
SVN-Revision: 20283
15 years ago
Gabor Juhos 695e989c6f ar71xx: move ar724x_pci_* helpers to ar724x-pci.c
SVN-Revision: 20282
15 years ago
Gabor Juhos 5f109ef2f3 ar71xx: move PCI intterupt handling code to pci-ar7{1xx,24x}.c
SVN-Revision: 20281
15 years ago
Gabor Juhos 4d32460353 ar71xx: use set_irq_chained_handler for the PCI IRQs
SVN-Revision: 20280
15 years ago
Gabor Juhos 1b8137eefc ar71xx: merge AR71XX_IRQ_CPU_{PCI,WMAC} into AR71XX_IRQ_CPU_IP2
SVN-Revision: 20279
15 years ago
Gabor Juhos 58911deda5 ar71xx: remove unnecessary includes from setup.c
SVN-Revision: 20278
15 years ago
Gabor Juhos ca49e09c9a ar71xx: fix ar724x_pci_wr{,_nf} helpers
SVN-Revision: 20277
15 years ago
Gabor Juhos d350e4cf40 ar71xx: fix semantics error in the __ar71xx_gpio_get_value function.
* Thanks to Pascal Dornier

SVN-Revision: 20247
15 years ago
Gabor Juhos 74556519e3 ar71xx: optimize GPIO code
SVN-Revision: 20242
15 years ago
Felix Fietkau 0849a208ce ar71xx: fix oprofile support
SVN-Revision: 20150
15 years ago
Gabor Juhos b21308313e ar71xx: override lan port names on the RB750
SVN-Revision: 20096
15 years ago
Gabor Juhos 45ff7289fe ar71xx: allow overriding of the lan port names on AP91 based boards
SVN-Revision: 20095
15 years ago
Gabor Juhos 9003a98d83 ar71xx: fix a typo in the ar7240 dsa driver
SVN-Revision: 20093
15 years ago
Gabor Juhos 2a818f388a ar71xx: ag71xx: fix MAC address setup
SVN-Revision: 20092
15 years ago
Gabor Juhos d58a367083 ar71xx: add NAND driver for the RB750
SVN-Revision: 20054
15 years ago
Gabor Juhos 6c1be20c2a ar71xx: add ar71xx_gpio_function_setup
SVN-Revision: 20053
15 years ago
Gabor Juhos 6600fab893 ar71xx: add LED driver for the RB750
SVN-Revision: 20051
15 years ago
Gabor Juhos a1a9727fbf ar71xx: add latch handling code for the RB750
SVN-Revision: 20050
15 years ago
Gabor Juhos 5e8c8818ed ar71xx: add preliminary support for the RouterBOARD 750
SVN-Revision: 20029
15 years ago
Gabor Juhos 10ad4ea96c ar71xx: rename mach-rb-4xx.c to mach-rb4xx.c, and change Kconfig symbol
SVN-Revision: 20027
15 years ago
Gabor Juhos 97c35a7dde ar71xx: don't init PCI irqs on the AR7240 if the PCIe subsystem are in reset
SVN-Revision: 20007
15 years ago
Gabor Juhos 2702ae4e8f ar71xx: ag71xx: move calling ag71xx_phy_stop out from spinlock
SVN-Revision: 20004
15 years ago
Gabor Juhos a4bccded57 ar71xx: ag71xx: move link update function
SVN-Revision: 20003
15 years ago
Gabor Juhos eacf9a7614 ar71xx: ag71xx: don't use dev->trans_start
SVN-Revision: 20002
15 years ago
Gabor Juhos ba288eeb84 ar71xx: ag71xx: use dma_unmap_single to unmap frames
SVN-Revision: 20001
15 years ago
Gabor Juhos 0e4eaea770 ar71xx: ag71xx: use correct device pointer for dma_map_single
SVN-Revision: 19951
15 years ago
Gabor Juhos 84823e1477 ar71xx: ag71xx: don't use virt_to_phys
SVN-Revision: 19950
15 years ago
Gabor Juhos 4a987d6008 ar71xx: ag71xx: simplify register access functions
SVN-Revision: 19949
15 years ago
Gabor Juhos e157281c5d ar71xx: ag71xx: use NETDEV_TX_OK
SVN-Revision: 19948
15 years ago
Gabor Juhos 347c5bc7fc ar71xx: use COMMAND_LINE_SIZE
SVN-Revision: 19947
15 years ago
Gabor Juhos b41c276df4 ar71xx: register DSA switch for the AP91 based boards
SVN-Revision: 19928
15 years ago
Gabor Juhos 6a702d127b ar71xx: add DSA driver for the AR7240 built-in ethernet switch
SVN-Revision: 19927
15 years ago
Gabor Juhos 8e22134773 ar71xx: add QinQ tagging format for the DSA driver
SVN-Revision: 19926
15 years ago
Gabor Juhos 30a2da99a1 ar71xx: register RTL8366RB switch on the TL-WR1043NB board
Thanks to Andrew Tarabaras.

SVN-Revision: 19839
15 years ago
Gabor Juhos f771c35033 ar71xx: fix pll value for the eth0 interface on the TL-WR1043ND board
Thanks to Andrew Tarabaras

SVN-Revision: 19835
15 years ago
Gabor Juhos 1612fd447d ar71xx: enable TX/RX flow control on the AR7240
SVN-Revision: 19832
15 years ago
Gabor Juhos f68a1d0a63 ar71xx: fix mac addresses on the DIR-600 rev. A1 board
SVN-Revision: 19752
15 years ago
Gabor Juhos f792c3647e ar71xx: fix wireless mac address on the TL-WR741ND
SVN-Revision: 19751
15 years ago
Gabor Juhos ccbfcba859 ar71xx: move AP91 specific ethernet initialization into a separate file
SVN-Revision: 19750
15 years ago
Gabor Juhos da5cacba76 ar71xx: add missing GPIO LED for the WNDR3700 board
Signed-off-by: Scott Dudley <spmsink@hotmail.com>

SVN-Revision: 19744
15 years ago
Gabor Juhos b00fe580ed ar71xx: fix polarity of GPIO buttons on the WNDR3700 board
Signed-off-by: Scott Dudley <spmsink@hotmail.com>

SVN-Revision: 19743
15 years ago
Gabor Juhos 0017e832cc ar71xx: fix WLAN mac address on the TL-WR1043ND
SVN-Revision: 19573
15 years ago
Gabor Juhos 0cbc5f678d ar71xx/mac80211: add a workaround for the bad signal strength on the WNDR3700
SVN-Revision: 19565
15 years ago
Gabor Juhos c747902042 ar71xx: add missing fields to the ar71xx-ehci driver
SVN-Revision: 19534
15 years ago
Gabor Juhos 49c4df5487 rtl8366: make it available on all platforms
SVN-Revision: 19329
15 years ago
Gabor Juhos 97b983c8b9 rtl8366s: simplify mib counters handling
SVN-Revision: 19326
15 years ago
Gabor Juhos 20df2bf825 ar71xx: merge generic machine code into setup.c
SVN-Revision: 19325
15 years ago
Gabor Juhos 2b5ba9073f rtl8366_smi: move RTL8366S driver into a separate file
SVN-Revision: 19279
15 years ago
Gabor Juhos 46b0e6643a rtl8366_smi: rename rtl8366s specific functions and definitions
SVN-Revision: 19278
15 years ago
Gabor Juhos 08055fd6d1 rtl8366_smi: move chip specific stuff into its own struct
SVN-Revision: 19277
15 years ago
Gabor Juhos de751af190 rtl8366_smi: separate gpio initialization
SVN-Revision: 19276
15 years ago
Gabor Juhos a1247d2f83 rtl8366_smi: store GPIO numbers directly in the rtl8366_smi struct
SVN-Revision: 19275
15 years ago
Gabor Juhos ab278275ee rtl8366_smi: store device pointer instead of plaform_device
SVN-Revision: 19274
15 years ago
Gabor Juhos edfa82ab60 rtl8366_smi: rename switch attribute handlers
SVN-Revision: 19254
15 years ago
Gabor Juhos 7aefde9f66 rtl8366_smi: simplify rtl8366_attr_get_port_link function
SVN-Revision: 19250
15 years ago
Gabor Juhos 83fb9f73e1 rtl8366_smi: make rtl8366_phy_config_{aneg,init} static
SVN-Revision: 19249
15 years ago
Gabor Juhos cad07a09c1 rtl8366_smi: simplify rtl8366_{get,set}_port_vlan_index functions
SVN-Revision: 19248
15 years ago
Gabor Juhos 50849c6cff rtl8366_smi: minor code optimalizations
SVN-Revision: 19247
15 years ago
Gabor Juhos 3e6b3ea088 rtl8366_smi: coding style cleanup
SVN-Revision: 19246
15 years ago
Gabor Juhos 5e5451a54d rtl8366_smi: add Kconfig option for the debugfs stuff
SVN-Revision: 19243
15 years ago
Gabor Juhos 0d48b043b1 rtl8366_smi: fix error checking in rtl8366s_set_vlan_4k_entry
SVN-Revision: 19242
15 years ago
Gabor Juhos 0296b24f80 rtl8366_smi: fix parameter checking in rtl8366_attr_get_vlan_info
SVN-Revision: 19241
15 years ago
Gabor Juhos 743e7617b0 rtl8366_smi: fix return codes in rtl8366s_reset_vlan
SVN-Revision: 19240
15 years ago
Gabor Juhos 43815d730b rtl8366_smi: move variable initialization out from the loop
SVN-Revision: 19239
15 years ago
Gabor Juhos fbc389ae9d rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
SVN-Revision: 19237
15 years ago
Gabor Juhos 71d0a7a7bf ar71xx: fix ethernet mac address on the WZR-HP-G300NH
SVN-Revision: 19216
15 years ago
Gabor Juhos c4838a0f9e rtl8366_smi: use inline function instead of a macro on top of container_of
SVN-Revision: 19215
15 years ago
Felix Fietkau 88ddc59655 rtl8366_smi: reset the vlan table when resetting the switch and use vlan get/set ports for vlan member lists
SVN-Revision: 19206
15 years ago
Felix Fietkau b228fd428a rtl8366_smi: fix excessive stack usage and buffer handling bugs
SVN-Revision: 19205
15 years ago
Felix Fietkau 8394a32815 ar71xx: fix return statement in the rtl8366 driver
SVN-Revision: 19204
15 years ago
Gabor Juhos d2229cb1cc rtl8366_smi: register the switch directly from the probe routine
SVN-Revision: 19202
15 years ago
Gabor Juhos 088ba7e1db rtl8366_smi: use vlanmc name for all vlanconfig variables
SVN-Revision: 19201
15 years ago