aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: spi cleanup for ap121, db120, ubnt-xm and ap136John Crispin2015-04-215-131/+28
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45552 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: merge ap81 patches into oneJohn Crispin2015-04-213-117/+3
| | | | | | Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45551 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add TP-LINK TL-WR710N v2John Crispin2015-04-211-1/+3
| | | | | | | | TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB). Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45538 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: refresh patchesLuka Perkov2015-04-207-15/+15
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45528 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add support for compex wpj344Luka Perkov2015-04-209-7/+224
| | | | | | | Signed-off-by: Christian Mehlis <christian@m3hlis.de> Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45527 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Increase RXD/RDV to 2 on OM5P-ANFelix Fietkau2015-04-201-3/+2
| | | | | | | | | | It was reported that OM5P-AN needs not only a delay setting of 1 for RXD/RDV but 2. These was found when testing with a NetGear GS752TP POE switch with a cable length of 50ft and 250ft. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45524 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add a helper function to set RXDV/RXD of ETH_CFG on AR934xFelix Fietkau2015-04-202-0/+27
| | | | | | | | | | | | | | | The ETH_RXDV_DELAY (17:16) and ETH_RXD_DELAY (15:14) are currently not cleared by the function ath79_setup_ar934x_eth_cfg. Clearing these in the ath79_setup_ar934x_eth_cfg may cause problems on some hardware because they rely on the preset value by the bootloader. Instead another function is introduced which also works on ETH_CFG on AR934x. It can be used to safely clear and set ETH_RXDV_DELAY and ETH_RXD_DELAY on machines which require special settings. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45523 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add mask and shift for RXD/RDV bits in AR934X register fileFelix Fietkau2015-04-201-1/+5
| | | | | | | | | | | | | The commit r38948 ("ag71xx: add F1E specific feature bit definitions to AR934X register file") introduced definitions for some bits in the RDV/RXD part of the ETH_CFG register of AR934x. These are incomplete because ETH_RXDV_DELAY is specified as 17:16 and ETH_RXD_DELAY is specified 15:14. The original commit only specified the lower bits. The upper bits also have to be unset when the lower bits should only be set. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45522 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Remove TX/RX delay from pll_1000 for OM5P-ANFelix Fietkau2015-04-201-1/+1
| | | | | | | | | | The tx/rx delay bits in the ETH_XMII_CONTROL register have to be unset when the enable_rgmii_rx_delay/enable_rgmii_tx_delay will be set in the AT803x PHY. Othwise the throughput in gigabit mode is heavily reduced. Signed-off-by: Sven Eckelmann <sven@open-mesh.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45521 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert "ar71xx/image: move TPLINK-LZMA image to new build code" (r45490)Felix Fietkau2015-04-191-325/+45
| | | | | | | | | Profile definitions need to be checked and fixed before this patch can be applied again. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45511 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: remove duplicated rootfs in new tplink initramfs imagesJohn Crispin2015-04-181-4/+14
| | | | | | | | | | The new building code included the rootfs twice when building tplink initramfs images. To make it more readable move initramfs into an own build step Build/mktplinkfw-initramfs. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45491 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: move TPLINK-LZMA image to new build codeJohn Crispin2015-04-181-45/+325
| | | | | | | | There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45490 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: add template tplink-16mlzmaJohn Crispin2015-04-181-0/+6
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45489 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: fix imagesize of template tplink-8mlzmaJohn Crispin2015-04-181-1/+1
| | | | | | | | | The new image size is verified by a running tplink device and checked against mktplinkfw source code. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45488 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Enable AT803X_PHY to set special flagsJohn Crispin2015-04-141-0/+1
| | | | | | | | | | | Open-Mesh OM5P-AN use a AT8035 (F1E) behind one of the ethernet ports. This PHY requires special flags to work correctly. Otherwise massive packet loss happens with active POE or when switching the link speed from gigabit ethernet to fast ethernet. The generic PHY doesn't have support to change these settings. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45439 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix ethernet packet loss issues on OM5P-ANJohn Crispin2015-04-141-1/+21
| | | | | | | | | | | | | | | The OM5P-AN boards are suffering from ethernet packet loss when booting with some active POE setups or when switching to Fast Ethernet when previously booted with Gigabit ethernet attached. The cause of the problem is that the AR8035 PHYs requires special register settings to work reliably on these boards. Enable the RGMII TX, RX delays and disable SmartEE functionality of the AR8035 PHYs. Also enable the RXD and RDV delay in the ETH_CFG register to fix the issue. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45438 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: enable LEDs on Hornet-UB X2John Crispin2015-04-092-2/+4
| | | | | | | | | | | None of the LEDs are enabled by default on the Hornet-UB X2 board (the 16/64MB version of the Hornet-UB), because it uses a different board-name ("hornet-ub-x2"); but hornet-ub and hornet-ub-x2 boards are equivalent WRT their LEDs. SIgned-off-by: Joshua Judson Rosen <jrosen@harvestai.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45328 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: remove ATHEROS_AR{231X,71XX} config symbols from the patchesGabor Juhos2015-04-081-1/+1
| | | | | | | | Those don't exist anymore. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45314 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add user-space support for RB911G-5HPacDGabor Juhos2015-04-074-0/+50
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45300 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add initial support for RB911G-5HPacDGabor Juhos2015-04-074-0/+289
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45299 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: routerboot: export extended wlan data via sysfsGabor Juhos2015-04-071-0/+58
| | | | | | | | Export the data to make it accessible from user-space. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45298 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: routerboot: add support for extended radio dataGabor Juhos2015-04-074-8/+67
| | | | | | | | | | | | | On newer Mikrotik boards, the radio calibration data is stored differently and uses LZO compression instead of RLE. Update the RouterBOOT helper code to support the new format. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45297 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: select RLE_DECOMPRESS directly by the RouterBOOT helper codeGabor Juhos2015-04-074-15/+14
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45296 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix new mktplinkfw image code - flags for sysupgrade vs factory were ↵Felix Fietkau2015-04-061-2/+2
| | | | | | | | swapped (fixes #19400) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45281 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix platform device support in the gpio-74x164 driverGabor Juhos2015-03-311-2/+43
| | | | | | | | | Platform device support has been removed from the gpio-74x164 driver in 3.14. Restore that. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45203 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/mikrotik: disable atnoher two non MikroTik boardsGabor Juhos2015-03-311-0/+2
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45177 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/mikrotik: disable non MikroTik boardsGabor Juhos2015-03-311-0/+32
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45176 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/mikrotik: use correct symbol to disable overlayfsGabor Juhos2015-03-311-1/+1
| | | | | | | | The Kconfig symbol has been changed in 3.18. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45175 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/mikrotik: re-enable 4KiB flash sector eraseGabor Juhos2015-03-301-1/+1
| | | | | | | | | | | The setting has been lost during the transition to 3.18. The CONFIG_M25PXX_PREFER_SMALL_SECTOR_ERASE option is not available anymore, so use CONFIG_MTD_SPI_NOR_USE_4K_SECTORS instead. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45161 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: re-enable AR8216_PHY_LEDSGabor Juhos2015-03-301-0/+1
| | | | | | | | The setting has been lost during the transition to 3.18. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45160 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: sync kernel configGabor Juhos2015-03-301-5/+11
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45159 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix model string detection on NETGEAR WNDR3700/3800/WNDRMACJohn Crispin2015-03-291-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | There were a few issues with the existing code to detect the model string: * Always using the string starting with byte 56 would cut off the W of WNDR when the ID starts with 29763654+16+64 instead of 29763654+16+128 * The string contained garbage after the zero byte instead of cutting it off after the zero (which wasn't always visible using busybox tools, but could confuse other scripts) Tested on a WNDR3700v1 and a WNDR3700v2 using the new 29763654+16+64 ID in the ART. Furthermore, tested against ART dumps of a WNDR3700v2 using the old $'\xff...' value and a WNDR3800. The [ -z "$model" ] check was dropped as there is no way to actually hit this unless no ART partition is found at all. The awk command was carefully crafted to work both with gawk and the (horribly broken) busybox awk. Fixes #18992. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45140 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add missing id for WNR2000v3 image (fixes #18959)Felix Fietkau2015-03-271-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45054 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix image size checks for WNDR3700Felix Fietkau2015-03-261-4/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45030 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: move wdr3500/wdr3600/wdr4300 to new building codeFelix Fietkau2015-03-251-6/+33
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45000 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: add tplink device template for new building codeFelix Fietkau2015-03-251-0/+22
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44999 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx/image: add Build/mktplinkfw as buildstep for new build codeFelix Fietkau2015-03-251-0/+20
| | | | | | | | | Use `mktplinkfw sysupgrade` or `mktplinkfw factory` or `mktplinkfw image` Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44998 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix a double dereference in the unaligned access patchFelix Fietkau2015-03-191-5/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44885 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: adjust OM5P profile for the OpenMesh OM5P-AN boardJohn Crispin2015-03-171-2/+2
| | | | | | Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44866 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: enable sysupgrade for the OpenMesh OM5P-ANJohn Crispin2015-03-172-2/+5
| | | | | | Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44863 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add user-space support for the OpenMesh OM5P-ANJohn Crispin2015-03-173-2/+7
| | | | | | Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44862 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add kernel support for the OpenMesh OM5P-AN boardJohn Crispin2015-03-172-0/+97
| | | | | | Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44861 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: detect GL.iNet modelJohn Crispin2015-03-171-0/+14
| | | | | | | | | There are two versions of the GL.iNet, the 6408A and the 6416A. The only difference is the flash size. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44860 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: drop 3.14 supportJohn Crispin2015-03-1684-9375/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44815 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: fix TP-LINK TL-WDR3600/4300 RFKILL switch positionsJohn Crispin2015-03-151-0/+1
| | | | | | | | | | While the switch positions aren't explicitly labeled as on and off, we've heard complaints about them being wrong. This patch changes the handling to match the stock firmware. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44795 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix (invert/revert) Hornet-UB WPS LED stateJohn Crispin2015-03-151-1/+1
| | | | | | | | | | | | | | | My previous patch regarding the Hornet-UB board (commit: beed4d82d6a0154b0cd5f7b84e2180215ace6718) actually causes the WPS led state to be inverted. Practically this meant that value 0 in /sys/class/led/alfa:blue:wps/brightness would turn the LED on and any positive value (1-255) would turn it off. The above of course is confusing and hence reverting this value back to the way it was before beed4d82d6a0154b0cd5f7b84e2180215ace6718. Signed-off-by: Janne Cederberg <janne.cederberg@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44791 3c298f89-4303-0410-b956-a3cf2f4a3e73
* atheros: v3.18: rename ATHEROS_AR231X symbol to ATH25Felix Fietkau2015-03-131-1/+1
| | | | | | | | | | This patch starts upsteam ath25 code backporting. No functional changes. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44706 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Ext LNA patch for TUBE2H and HORNET-UB targetsJohn Crispin2015-03-122-0/+10
| | | | | | Signed-off-by: Christophe Prévotaux <c.prevotaux@rural-networks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44693 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: Hornet UB GPIO WPS/ResetJohn Crispin2015-03-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This problem has existed at least since Attitude Adjustment and is also present in trunk. Basically on the Hornet-UB board the functionality of RESET and WPS have "switched places". There are two tickets about the issue at dev.openwrt.org, The solution suggested on them both is incomplete though and introduces the following proglem: Patching as suggested on #14136/#15282 will result in a situation where simply pressing the RESET button on the bottom will cause FACTORY RESET to be run. This is due to GPIO high/low state being incorrect as a result of the above change and virtually the RESET button is in the pressed-down state the entire time. When it is then physically pressed, that causes the opposite, release, to be triggered and since to the board it seemed that the button was pressed long before it was released, the FACTORY RESET results. The attached patch works as expected. I have verified both the incorrect functionality as well as after fixing the issue as described in the patch and flashing the resulting firmware to a Hornet-UB board. Signed-off-by: Janne Cederberg <janne.cederberg@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44692 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: improve WD's My Net Wi-fi Range Extender image creationJohn Crispin2015-03-112-3/+13
| | | | | | | | | | | | | Previously, the generated images for the My Net Wi-fi Range Extender wouldn't always work (and panic) due to the fixed mtd offsets and sizes for the kernel and rootfs. This patch fixes the problem by utilizing the shared Cybertan's partition parser to recalculate the mtd partitions for every image dynamically everytime. Reported-by: Pascal Paradis <peparadis@yahoo.com> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44665 3c298f89-4303-0410-b956-a3cf2f4a3e73