summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch/mips
AgeCommit message (Collapse)Author
2014-02-20ar71xx: rb91x: fix pll_1000 value for eth0 to avoid packet lossjuhosg
When the RB91x device uses a GbE link the connection suffers from packet loss: root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 20 -q PING 192.168.1.254 (192.168.1.254): 65507 data bytes --- 192.168.1.254 ping statistics --- 20 packets transmitted, 9 packets received, 55% packet loss round-trip min/avg/max = 4.570/4.815/4.999 ms Using a different PLL value fixes the issue. root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 100 -q PING 192.168.1.254 (192.168.1.254): 65507 data bytes --- 192.168.1.254 ping statistics --- 100 packets transmitted, 100 packets received, 0% packet loss round-trip min/avg/max = 4.449/5.413/13.870 ms Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39642 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20ar71xx: Add support for MikroTik RB951Ui-2HnDjuhosg
I noticed that the patch at http://patchwork.openwrt.org/patch/4017/ for adding support for the MikroTik RouterBOARD 951Ui-2HnD had been abandoned because it wasn't generated and sent to the mailing list correctly and doesn't apply as a result. I have cleaned up this patch. When testing this on real hardware, I also noticed that wireless didn't work, so this patch fixes that as well. This patch applies cleanly to SVN 39392. Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com> Patchwork: http://patchwork.openwrt.org/patch/4773/ [juhosg: - drop the 'rb951ui_wlan_init' function and rework the code to use the recently introduced rb95x_wlan_init function instead, - fix GPIO number of the port5 LED, - rename LEDs according to the standard LED naming conventions, and use 'rb' prefix in the names] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19ar71xx: add kernel support for the TP-Link TL-WDR4900 v2.0 boardjuhosg
Patch-by: TenNinjas <tenninjas@tenninjas.ca> Patchwork: http://patchwork.openwrt.org/patch/4848/ [juhosg: - rename and refresh kernel patch, - merge the board setup code into mach-archer-c7.c and drop mach-tl-wdr49000-v2.c] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39635 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-26ar71xx: wpe72: set active_low flag for the reset buttonjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39401 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-26ar71xx: wp543: set active_low flag for the buttonsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-25ar71xx: archer c7: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: fix bad RX sensitivity on newer TL-WDR4300 boardsjuhosg
On recent TL-WDR4300 boards the external LNAs of the 2.4GHz interface are connected to GPIO lines. Because these GPIO lines are disabled by default, the RX sensitivity of the device is quite bad. Setup the GPIOs of the external LNAs to fix the issue. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: wp543: use KEY_RESET code for the sw4 buttonjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39374 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-21ar71xx: mynet-n750: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4743/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39361 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: tl-wr1043nd-v2: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39346 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: tl-wdr4300: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: rb2011: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39341 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: rb2011: fix eth5 LEDjuhosg
The eth5 LED on the RB2011 is not working because the LED control rule is missing. Fix it. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39335 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-10ar71xx: my net n750: simplify LNA GPIO setupjuhosg
Use the ath79_wmac_set_ext_lna_gpio helper instead of exporting the GPIOs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-10ar71xx: my net n600: simplify LNA GPIO setupjuhosg
Use the ath79_wmac_set_ext_lna_gpio helper instead of exporting the GPIOs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39216 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-10ar71xx: Fix WD My Net N600 weak signal issuejuhosg
The LNAs need to be enabled by setting their respective GPIO to high even though the original firmware's setting sets them to low on initialization. Obviously the LNAs are then later initialized by the driver on the OEM firmware. Without this fix the device is mostly "deaf". Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Tested-by: Steven Haigh <netwiz@crc.id.au> Patchwork: http://patchwork.openwrt.org/patch/4689/ [juhosg: - remove the GPIO LED changes, the My Net N600 has no yellow LEDs at all, - change subject and update the commit message] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39214 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-10ar71xx: Fix WD My Net N750 weak signal issuejuhosg
The LNAs need to be enabled by setting their respective GPIO to high even though the original firmware's setting sets them to low on initialization. Obviously the LNAs are then later initialized by the driver on the OEM firmware. Without this fix the device is mostly "deaf". Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4688/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39213 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-23ar71xx: fix max frame length of the QCA955x SoCsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39161 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-23ar71xx: don't set builtin_switch flag for QCA9558juhosg
It makes no sense, the SoC has no built-in switch. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39160 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-20ar71xx: allow to use large ethernet frames on AR934x SoCsjuhosg
The hardware supports large ethernet frames. Override the maximum frame length and packet lenght mask in the platform data to allow to use large MTU on the ethernet interfaces. Limit the feature to AR934x SoCs for now. It should work on some other SoCs as well, but those has not been tested yet. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39149 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-20ar71xx: ag71xx: get max_frame_len and desc_pktlen_mask from platform datajuhosg
This will allow to use SoC specific values for both. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39145 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-17ar71xx: fix WD My Net N750 switch led cfgjuhosg
Now that the switch is working correctly I had the chance to actually test the LED config. Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4616/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39129 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-17ar71xx: implement switch fix for WD My Net N750juhosg
The bootloader on the WD My Net N750 disables the ports on it's internal AR8327N switch by powering them down. The stock firmware then brings the ports back up again by starting the auto negotiation process on each port. This fix implements just that. Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4615/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39128 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-17ar71xx: implement callback in mdio resetjuhosg
This enables us to add fixups to the board specific code for boards that require special treatment of PHYs on mdio bus reset. Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> http://patchwork.openwrt.org/patch/4614/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39127 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-17ar71xx: make ag71xx_mdio_platform_data visiblejuhosg
This enables us to modify the ag71xx_mdio_platform_data from within the board support files. Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4613/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39126 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boardsjuhosg
It is only on RB911G-5HPnD and RB912UAG-5HPnD boards. The LEDs and the USB port is not working yet. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39102 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: rb2011: use board name from the hardware configjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: rb2011: simplify setup codejuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: rb2011: use the new RouterBOOT helpersjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39094 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: rb95x: use the rb_get_wlan_data helperjuhosg
Also remove unused RB_* defines. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: add some RouterBOOT specific helper functionsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39091 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: rb95x: nuke rb95x_gpio_initjuhosg
Set up the chipselect GPIO directly in rb95x_nand_init instead. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-16ar71xx: add kernel support for WD My Net N750juhosg
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> [juhosg: use a separate patch for kernel changes] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39077 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-15ar71xx: add kernel support for the TL-WA901ND v3 boardjuhosg
Based-on: http://patchwork.openwrt.org/patch/4506/ Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39073 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-15ar71xx: move TL-WA801ND v2 setup codejuhosg
The TL-WA801ND v2 board has only one LAN port which makes it more similar to the TL-WR[78]50RE devices. Move the board setup code into the mach-tl-wax50re.c file. Based-on: http://patchwork.openwrt.org/patch/4506/ Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39072 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-15ar71xx: refactor TL-WAx50RE setup codejuhosg
This way it is a bit easier to add other TP-LINK devices based on the Atheros AP123 reference board with one LAN port. Based-on: http://patchwork.openwrt.org/patch/4506/ Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39071 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-15ar71xx: add kernel support for the TL-WA801ND v2 boardjuhosg
Patch to add kernel support for the TP-LINK WA801ND v2 Signed-off-by: Jiri Pirko <jiri@resnulli.us> Patchwork: http://patchwork.openwrt.org/patch/4500/ [juhosg: - the TL-WA801ND v2 does not have a sliding switch, it uses a push button for WPS instead. Use the tl_mr3420v2_gpio_keys array to reflect that, - rename kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-08ath9k: merge initval and tx gain table updates, calibration fixesnbd
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39001 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-29ar71xx: add kernel support for the TL-WR1043ND v2 boardjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38955 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-29ar71xx: improve support for the My Net Wi-Fi Range Extender devicejuhosg
This patch improves support for the device considerably. 1. The wifi didn't work in the initial release. This was because the WMAC of the AR9340 is not connected to the antennas. (However, it can pick up wifi signals, if they are strong enough!) Instead there's a dedicated AR9300 chip on the same board, which works. 2. Ethernet throughput is improved. iperf shows that the hardware can sustain more than 200Mbit/s and no longer drops any packages when the link is under load. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Patchwork: http://patchwork.openwrt.org/patch/4461/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38949 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-29ar71xx: Kernel support update tl-wr842n_v2 added missing usb ledjuhosg
Just a small oversight my part, added the support for the USB led Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/4425/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-15ar71xx: Add kernel support for the WR842N/ND v2juhosg
Patch to add kernel support for the TP-LINK WR842N/ND v2 Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/4352/ [juhosg: refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38813 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-11ar71xx: Use KEY_RESTART key code for the reset button on WD My Net N600 boardsjuhosg
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-11ar71xx: Add kernel support for the TP-Link WA750RE / WA850RE range extenderjuhosg
Patch to add kernel support for the TP-LINK WA750RE and the WA850RE range extender Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com> [juhosg: rename and refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38717 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-11-07ar71xx: add kernel support for the My Net Wi-Fi Range Extender devicejuhosg
This patch adds a new device definition for a Western Digital device. The hardware seems to be based on Qualcomm Atheros DB120 design. Patchwork: http://patchwork.openwrt.org/patch/4281/ Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> [juhosg: refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38686 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-30ar71xx: add kernel support for BHU Networks BXU2000n-2 A1 boardjuhosg
BXU2000n-2 A1 is a BHU Networks WLAN board, use ar9341 chip. Patchwork: http://patchwork.openwrt.org/patch/4183/ Signed-off-by: Terry Yang <yangbo@bhunetworks.com> [juhosg: - rename and refresh kernel patch, - fix some checkpatch warnings and adjust whitespaces in mach-bhu-bxu2000n2-a.c] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38591 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-30ar71xx: add kernel support for the Sitecom WLR-8100 wireless routerjuhosg
- unsure about copyright message - based on AP136-010 Patchwork: http://patchwork.openwrt.org/patch/4147/ Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> [juhosg: rename and refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-30ar71xx: add kernel support for DRAGINO2juhosg
This patch adds support for DRAGINO2 board (used by Meshpotato v2). Most of the files included can be found in the official svn repository provided by the company [1]. I have just adapt it to the last OpenWrt trunk revision (Fri Oct 4 10:49:47 2013). 1. http://svn.dragino.com/dragino2 Patchwork: http://patchwork.openwrt.org/patch/4234/ Signed-off-by: Pau Escrich <p4u@dabax.net> [juhosg: - rename and refresh kernel patch, - fix checkpatch warnings in mach-dragino2.c] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38587 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-20ar71xx: fix WLAN 5 GHz LED init on dir-825-c1juhosg
Fixes the 5 GHz LED. The same function has no effect on the 2.4 GHz LED at all, so we might as well remove it. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-25ar71xx: improve kernel support for the TL-MR3040 v2juhosg
This patch adds support for the hardware slide switch on the TL-MR3040 v2. Signed-off-by: Mads Hansen <d@taba.se> [juhosg: use EV_SW instead of EV_KEY] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38190 3c298f89-4303-0410-b956-a3cf2f4a3e73